-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello everybody,
I am looking for the correct way to use /etc/network/interfaces to create an openvswitch bridge/bond with a vlan. Using /etc/network/interfaces is important, because the order of start-up scripts is honoured and it is the Debian way to go. (the iscsi and kvm systems need a reliable shutdown and boot order). As work around I put everything in /etc/rc.local root@kimberly:~# cat /etc/rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. ovs-vsctl del-port bond0 ovs-vsctl del-br ovsbr1 ifconfig eth0 up ifconfig eth1 up ovs-vsctl add-br ovsbr1 ovs-vsctl add-bond ovsbr1 bond0 eth0 eth1 bond_fake_iface=false\ bond_mode=balance-slb lacp=active other_config:lacp-time=fast\ bond_updelay=400 bond_downdelay=400\ ovs-vsctl set port ovsbr1 tag=2 ifconfig ovsbr1 up dhclient ovsbr1 /etc/init.d/open-iscsi start ### This will boot up my system correctly note: /etc/init.d/open-iscsi start Is something we do NOT want. How can I implement the above rc.local in /etc/network/interfaces: root@kimberly:~# cat /etc/network/interfaces /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet manual auto eth1 iface eth1 inet manual allow-ovs ovsbr1 iface ovsbr1 inet dhcp ovs_type OVSBridge ovs_ports bond0 allow-ovsbr1 bond0 iface bond0 inet manual ovs_bridge ovsbr1 ovs_type OVSBond ovs_bonds eth0 eth1 ovs_options bond_mode=balance-slb lacp=active tag=2 openvswitch-switch 1.9.3+git20131029-1.1 root@kimberly:~# modinfo openvswitch filename: /lib/modules/3.13-1-amd64/kernel/net/openvswitch/openvswitch.ko license: GPL description: Open vSwitch switching datapath depends: libcrc32c,vxlan,gre intree: Y vermagic: 3.13-1-amd64 SMP mod_unload modversions Kind regards, Jelle de Jong -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iJwEAQECAAYFAlN2BycACgkQ1WclBW9j5Hk8vwP9F04F2DiS2PBYHxwWmRZb5nQM GfkGq9nhl5istPUndqFqAhsbd0ow9zrc+OyY7+1oqgUiBCyma4EYbZZFt/Zw1e73 zBWlVIS2VnKPPn4o/apofzSbl3xBnAdwoaN0SeRjGH1zgoKPymjcZvc8i3x9Q0JR BSqx+0OQcpevxUY1+3g= =HfR0 -----END PGP SIGNATURE----- _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss