LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-22-2017, 07:13 AM   #1
abpostelnicu
LQ Newbie
 
Registered: Jun 2017
Posts: 1

Rep: Reputation: Disabled
Network bonding using LACP


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

Quote:
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:

Quote:
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

Quote:
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Open vSwitch bonding with LACP and VLAN yenn Linux - Networking 2 03-31-2014 10:00 AM
bonding (mode=1) above (mode=4) lacp drManhattan Linux - Networking 3 10-01-2013 10:01 AM
[SOLVED] Centos6.4 - LACP (bonding mode 4) + bridge setup mr.b-o-b Linux - Virtualization and Cloud 1 06-04-2013 03:41 PM
redhat el4 bonding round robin and LACP testin, bad results help? zerobane Linux - Networking 14 12-01-2009 03:17 PM
bonding bonding-xor and bonding-alb Chrysalis Linux - Networking 1 10-24-2009 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration