On Thu, Nov 06, 2014 at 09:54:57AM +0100, Arthur Van Kleef wrote: > 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.
I guess that for bridges the ovs_options are passed to the add-br command, which doesn't accept options like a tag setting. > 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 I think that's a reasonable approach too. _______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
