Network bonding using LACP

Kernels & Hardware, configuring network, installing services

Network bonding using LACP

Postby abpostelnicu » 2017-06-22 08:56

Hello all,

A while back I've configured network bonding on my linux machine and it worked fine,yesterday I wasn't able to access the linux box from the same subnet with the ip specified in the bond0 config, looking further it seems that the problem is with eth0, part of bond0, that it gets a separate ip address.
My configuration is as follows:

/etc/network/interfaces

auto lo
iface lo inet loopback

auto bond0
iface bond0 inet static
bond-slaves all
bond-mode 4
bond-miimon 100
bond-xmit-hash-policy layer2+3
bond-primary eth0 eth1
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8

Doing and ifconfig for bond0, eth0 and eth1 i see:

bond0 Link encap:Ethernet HWaddr 3c:a8:2a:a0:77:99
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:8495 errors:0 dropped:0 overruns:0 frame:0
TX packets:6287 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1697302 (1.6 MiB) TX bytes:1421783 (1.3 MiB)

eth0 Link encap:Ethernet HWaddr 3c:a8:2a:a0:77:99
inet addr:169.254.105.211 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:7678 errors:0 dropped:0 overruns:0 frame:0
TX packets:1695 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1602672 (1.5 MiB) TX bytes:490070 (478.5 KiB)
Interrupt:16

eth1 Link encap:Ethernet HWaddr 3c:a8:2a:a0:77:99
inet addr:192.168.1.91 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:908 errors:0 dropped:0 overruns:0 frame:0
TX packets:4681 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:103396 (100.9 KiB) TX bytes:942131 (920.0 KiB)
Interrupt:17

Dumping /proc/net/bonding/bond0

Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2+3 (2)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

802.3ad info
LACP rate: slow
Min links: 0
Aggregator selection policy (ad_select): stable
Active Aggregator Info:
Aggregator ID: 1
Number of ports: 2
Actor Key: 17
Partner Key: 66
Partner Mac Address: f0:9f:c2:0f:19:6e

Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 3c:a8:2a:a0:77:99
Aggregator ID: 1
Slave queue ID: 0

Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 3c:a8:2a:a0:77:98
Aggregator ID: 1
Slave queue ID: 0

I think my problems are because eth1 gets assigned: 192.168.1.91

Is there anything else that i can debug to solve this problem?
abpostelnicu
 
Posts: 1
Joined: 2017-06-22 08:47

Return to System configuration

Who is online

Users browsing this forum: Hip and 5 guests

fashionable