0

I have a pretty standard 4 NIC bonding config:

/etc/network/interfaces:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# eth0
auto eth0
iface eth0 inet manual
  bond-master bond0

# eth1
auto eth1
iface eth1 inet manual
  bond-master bond0

# eth2
auto eth2
iface eth2 inet manual
  bond-master bond0

# eth3
auto eth3
iface eth3 inet manual
  bond-master bond0

# bond
auto bond0
iface bond0 inet static

        address 192.168.1.145
        netmask 255.255.255.0
        gateway 192.168.1.1
        dns-nameservers 8.8.8.8 8.8.4.4

        #bond 5 Settings
        bond-mode 5
        bond-miimon 100
        bond-slaves none
        bond-downdelay 0
        bond-updelay 0

But upon reboot, the network is down and all the slave interfaces still have ip addresses assigned, despite working as slaves :

ifconfig:

bond0: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST>  mtu 1500
        inet 192.168.1.145  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::215:5dff:fe3c:6a03  prefixlen 64  scopeid 0x20<link>
        ether 00:15:5d:3c:6a:03  txqueuelen 1000  (Ethernet)
        RX packets 33470  bytes 16441811 (16.4 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5570  bytes 2466881 (2.4 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1500
        inet 192.168.1.162  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::1284:e8d5:9b0:1f11  prefixlen 64  scopeid 0x20<link>
        ether 00:15:5d:3c:6a:01  txqueuelen 1000  (Ethernet)
        RX packets 6022  bytes 681072 (681.0 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1054  bytes 53372 (53.3 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1500
        inet 192.168.1.163  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::3f0c:a610:4c6e:57da  prefixlen 64  scopeid 0x20<link>
        ether 00:15:5d:3c:6a:02  txqueuelen 1000  (Ethernet)
        RX packets 5404  bytes 519892 (519.8 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 335  bytes 25284 (25.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth2: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1500
        inet 192.168.1.164  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::725d:2a46:a4c6:c287  prefixlen 64  scopeid 0x20<link>
        ether 00:15:5d:3c:6a:03  txqueuelen 1000  (Ethernet)
        RX packets 16645  bytes 14721805 (14.7 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3908  bytes 2368250 (2.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth3: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1500
        inet 192.168.1.165  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::345:b686:a3df:4b0c  prefixlen 64  scopeid 0x20<link>
        ether 00:15:5d:3c:6a:04  txqueuelen 1000  (Ethernet)
        RX packets 5399  bytes 519042 (519.0 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 273  bytes 19975 (19.9 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 1879  bytes 432110 (432.1 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1879  bytes 432110 (432.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

If I flush the ip addresses from the interfaces using:

sudo ip addr flush eth0 && sudo ip addr flush eth1 && sudo ip addr flush eth2 && sudo ip addr flush eth3

Then everything starts working okay. Any ideas why when the NICs are bonded the slaves aren't dropping their IPs?

  • 1
    I figured it out, I had dhcpcd5 installed. Removing the package fixed it: – Andrew Scott Mar 2 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.