Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
linux:openvswitch [2013/11/01 18:07] a created |
linux:openvswitch [2013/11/01 18:33] (current) a [Configuration in Debian/Ubuntu via /etc/network/interfaces] |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| <note important> | <note important> | ||
| + | |||
| + | ===== Installation/ | ||
| + | |||
| + | ==== Debian / from source / GIT ==== | ||
| + | |||
| + | | ||
| + | | ||
| + | |||
| + | ===== Configuration tips ===== | ||
| + | ==== Configuration in Debian/ | ||
| + | Example: | ||
| + | < | ||
| + | allow-ovs br0 | ||
| + | iface br0 inet manual | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | allow-br0 mgt0 | ||
| + | iface mgt0 inet static | ||
| + | address 10.14.131.34 | ||
| + | netmask 255.255.255.224 | ||
| + | ovs_bridge br0 | ||
| + | ovs_type OVSIntPort | ||
| + | ovs_options vlan_mode=access | ||
| + | ovs_options tag=999 | ||
| + | |||
| + | allow-br0 eth1 | ||
| + | iface eth1 inet manual | ||
| + | ovs_bridge br0 | ||
| + | ovs_type OVSPort | ||
| + | ovs_options vlan_mode=native-untagged | ||
| + | ovs_options trunks=10, | ||
| + | ovs_options tag=999 | ||
| + | |||
| + | allow-br0 eth2 | ||
| + | iface eth2 inet manual | ||
| + | ovs_bridge br0 | ||
| + | ovs_type OVSPort | ||
| + | ovs_options vlan_mode=trunk | ||
| + | ovs_options trunks=30, | ||
| + | </ | ||
| + | |||
| + | ==== Creating GRE tunnel ==== | ||
| + | < | ||
| + | allow-ovs br0 | ||
| + | iface br0 inet manual | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | options: | ||
| + | .... | ||
| + | </ | ||
| + | |||
| + | ===== Frequently use (useful) command ===== | ||
| + | |||
| + | # Dump flows | ||
| + | |||
| + | | ||
| + | |||
| + | # Show mac table | ||
| + | |||
| + | | ||
| + | |||
| + | # Show switch | ||
| + | |||
| + | | ||
| + | |||
| + | # Show datapath | ||
| + | |||
| + | | ||
| + | |||
| + | # Turn debugging on | ||
| + | |||
| + | | ||
| + | |||
| + | ===== Troubleshooting ===== | ||
| + | |||
| + | ==== GRE problem ==== | ||
| + | |||
| + | "You need to unload '' | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||

