Wiki examples does not work on 4-17

czbg

New Member
Dec 4, 2015
5
0
1
Hi,

I am struggling with this a few days already. I want to have eth0 and eth1 bonded and available to host and VM. I've taken example from wiki, but the problem is that on boot only eth0 and eth1 are set up, nothing else. This happens with almost any example from wiki. Now I've just discovered that a simple "/etc/init.d/networking restart" makes everything work as expected. What could be the problem here? How to set up two bonded NICs so that they work?

Here is my config:

Code:
allow-ovs vmbr0


allow-vmbr0 vlan1
iface vlan1 inet static
        address  10.1.1.67
        netmask  255.255.255.0
        gateway  10.1.1.1
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options vlan_mode=access
        ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif


auto lo
iface lo inet loopback


auto eth0
iface eth0 inet manual


auto eth1
iface eth1 inet manual


allow-vmbr0 bond0
iface bond0 inet manual
        ovs_bonds eth0 eth1
        ovs_type OVSBond
        ovs_bridge vmbr0
        ovs_options vlan_mode=native-untagged bond_mode=active-backup


auto vmbr0
iface vmbr0 inet manual
        ovs_type OVSBridge
        ovs_ports bond0 vlan1

Thank you very much in advance and best regards