Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:openvswitch [2013/11/01 18:13]
a [Installation/compile]
linux:openvswitch [2013/11/01 18:33] (current)
a [Configuration in Debian/Ubuntu via /etc/network/interfaces]
Line 11: Line 11:
  
 ===== Configuration tips ===== ===== Configuration tips =====
 +==== Configuration in Debian/Ubuntu via /etc/network/interfaces ====
 +Example:
 +<code|/etc/network/interfaces>
 +allow-ovs br0
 +iface br0 inet manual
 +   ovs_type OVSBridge
 +   ovs_ports mgt0 eth1 eth2
 +   ovs_extra set Bridge br0 stp_enable=true
 +  
 +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,20,30,40
 +    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,40
 +</code>
 +
 +==== Creating GRE tunnel ====
 +<code|/etc/network/interfaces>
 +allow-ovs br0
 +iface br0 inet manual
 +   ovs_type OVSBridge
 +   ovs_ports mgt0 eth1 
 +   ovs_extra set Bridge br0 stp_enable=true
 +   post-up ovs-vsctl add-port br0 vgre0 -- set interface vgre0 type=gre \
 + options:remote_ip=10.0.0.1
 +....
 +</code>
  
 ===== Frequently use (useful) command ===== ===== Frequently use (useful) command =====
Line 34: Line 78:
  
    ovs-appctl vlog/set dbg    ovs-appctl vlog/set dbg
 +
 +===== Troubleshooting =====
 +
 +==== GRE problem ====
 +
 +"You need to unload ''**ip_gre**'' and ''**gre**'' module, openvswitch GRE does not work along with kernel GRE module for now."
 +
  
  
linux/openvswitch.1383326035.txt.gz ยท Last modified: 2013/11/01 18:13 by a
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready