[ovs-discuss] Setting tag for default ovs internal port fails
Arthur Van Kleef
arthur.vankleef at gmail.com
Thu Nov 6 08:54:57 UTC 2014
Hi,
When setting up a bridge on Debian I want the default internal port to have
a vlan tag. The bridge has an uplink port eth0 that is connected to a trunk
port, so I configured /etc/network/interfaces like this:
allow-ovs ovsbr0
iface ovsbr0 inet static
ovs_type OVSBridge
ovs_ports eth0
ovs_options tag=702
address 172.16.1.1
netmask 255.255.255.0
allow-ovsbr0 eth0
iface eth0 inet manual
ovs_bridge ovsbr0
ovs_type OVSPort
pre-up ip link set dev $IFACE up
post-down ip link set dev $IFACE down
Unfortunately this approach fails:
# ifup ovsbr0
ovs-vsctl: 'add-br' command takes exactly 1 or 3 arguments
ovs-vsctl: no bridge named ovsbr0
Cannot find device "ovsbr0"
Failed to bring up ovsbr0.
When I set up the bridge like this:
allow-ovs ovsbr0
iface ovsbr0 inet static
ovs_type OVSBridge
ovs_ports eth0
address 172.16.1.1
netmask 255.255.255.0
post-up ovs-vsctl set Port $IFACE tag=702
The internal port is configured and working as I intended:
# ovs-vsctl show
9fa31491-67f0-43f7-96e1-2c78505b79f5
Bridge "ovsbr0"
Port "ovsbr0"
tag: 702
Interface "ovsbr0"
type: internal
Port "eth0"
Interface "eth0"
ovs_version: "2.3.0"
I think I'm hitting a bug in the 1st approach, if not I'm also fine using
the 2nd approach.
Cheers,
Arthur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20141106/4810e274/attachment-0002.html>
More information about the discuss
mailing list