<div dir="ltr"><div>Hello everyone,</div><div>I set up bonding, here's the config</div><div><br></div><div>root@host:/etc/network# cat interfaces</div><div># This file describes the network interfaces available on your system</div><div># and how to activate them. For more information, see interfaces(5).</div><div><br></div><div>source /etc/network/interfaces.d/*</div><div><br></div><div># The loopback network interface</div><div>auto lo</div><div>iface lo inet loopback</div><div># eth0</div><div>auto eth0</div><div>  iface eth0 inet manual</div><div>  bond-master bond0</div><div>  bond-primary eth0</div><div><br></div><div># eth1</div><div>auto eth1</div><div>  iface eth1 inet manual</div><div>  pre-up sleep 5</div><div>  bond-master bond0</div><div><br></div><div><br></div><div># bond0</div><div>auto bond0</div><div>iface bond0 inet static</div><div>  address 192.168.56.208</div><div>  gateway 192.168.56.1</div><div>  netmask 255.255.255.0</div><div>  bond-mode 1</div><div>  bond-miimon 100</div><div>  bond-slaves none</div><div>root@host:/etc/network#</div><div><br></div><div><br></div><div><br></div><div>eth0 becomes master by default and works just fine, when I unplug the cable from eth0, the logs tell me that eth1 now is master and eth0 is down. But I cannot ping, ssh to the machine. Also machine cannot ping def gw after that. </div><div><br></div><div>before wire unplugged,</div><div><br></div><div>root@host:/etc/network# cat /proc/net/bonding/bond0</div><div>Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)</div><div><br></div><div>Bonding Mode: fault-tolerance (active-backup)</div><div>Primary Slave: eth0 (primary_reselect always)</div><div>Currently Active Slave: eth0</div><div>MII Status: up</div><div>MII Polling Interval (ms): 100</div><div>Up Delay (ms): 0</div><div>Down Delay (ms): 0</div><div><br></div><div>Slave Interface: eth0</div><div>MII Status: up</div><div>Speed: 1000 Mbps</div><div>Duplex: full</div><div>Link Failure Count: 2</div><div>Permanent HW addr: 08:00:27:99:b8:97</div><div>Slave queue ID: 0</div><div><br></div><div>Slave Interface: eth1</div><div>MII Status: up</div><div>Speed: 1000 Mbps</div><div>Duplex: full</div><div>Link Failure Count: 0</div><div>Permanent HW addr: 08:00:27:2b:f0:2f</div><div>Slave queue ID: 0</div><div><br></div><div>after </div><div><br></div><div>root@host:/etc/network# cat /proc/net/bonding/bond0</div><div>Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)</div><div><br></div><div>Bonding Mode: fault-tolerance (active-backup)</div><div>Primary Slave: eth0 (primary_reselect always)</div><div>Currently Active Slave: eth1</div><div>MII Status: up</div><div>MII Polling Interval (ms): 100</div><div>Up Delay (ms): 0</div><div>Down Delay (ms): 0</div><div><br></div><div>Slave Interface: eth0</div><div>MII Status: down</div><div>Speed: Unknown</div><div>Duplex: Unknown</div><div>Link Failure Count: 3</div><div>Permanent HW addr: 08:00:27:99:b8:97</div><div>Slave queue ID: 0</div><div><br></div><div>Slave Interface: eth1</div><div>MII Status: up</div><div>Speed: 1000 Mbps</div><div>Duplex: full</div><div>Link Failure Count: 0</div><div>Permanent HW addr: 08:00:27:2b:f0:2f</div><div>Slave queue ID: 0</div><div><br></div><div>Any thoughts?</div><div>Thank you</div></div>