I connected a wire to my eth0 physical port that has trunked vlans:
vlan1 and vlan2. The vlan1 is an internal network that I want to give
an IP address to in order to access the hypervisor on the machine as
well as connect to VMs in Xen. vlan2 is a vlan for connecting machines
directly visible to the internet. This is what I came up with for the
interfaces file in Debian. It works, but I hacked my way through it. I
don't fully understand how the stanzas work in the Debian interfaces file.


allow-ovs br0
iface br0 inet manual 
   ovs_type  OVSBridge
   ovs_ports eth0 


allow-ovs vlan1
iface vlan1 inet dhcp
    ovs_bridge br0
    ovs_ports eth0 
    ovs_type OVSPort
    ovs_options tag=1
    ovs_extra set interface vlan1 type=internal

allow-br0 eth0
iface eth0 inet manual
   ovs_bridge br0
   ovs_type OVSPort


-- 
Brian Lavender
http://www.brie.com/brian/

"There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies."

Professor C. A. R. Hoare
The 1980 Turing award lecture
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to