1

I have two linux servers. Each have 2 ethernet ports. I connect port-to-port with straight-through ethernet cables between the 2 servers (there is no network switches involved). I want to bond the 2 interfaces on each side so I have one interface with the sum total of bandwidth. When I use balance-alb for bond, a ping will only work from one side to the other but not vice versa. When I down one of the two slave interfaces then i can ping both directions suddenly. Is it possible what I am trying to do ? I know it works when I use active-backup but that is not what I want. Would multi-pathing do what I want perhaps ? This is what my config looks like at the moment.

[root@cmet1 network-scripts]# cat ifcfg-eth0
DEVICE=eth0                                 
HWADDR=D8:9D:67:20:2C:28                    
TYPE=Ethernet                               
UUID=e34ac205-edae-4983-ac66-4479a8727a49   
ONBOOT=yes                                  
NM_CONTROLLED=no                            
BOOTPROTO=none                              
MASTER=bond0
SLAVE=yes

[root@cmet1 network-scripts]# cat ifcfg-eth1
DEVICE=eth1
HWADDR=D8:9D:67:20:2C:2C
TYPE=Ethernet
UUID=766df09e-2eb8-435a-bdc1-046d12cbd390
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
MASTER=bond0
SLAVE=yes

[root@cmet1 network-scripts]# cat ifcfg-bond0
DEVICE=bond0
IPADDR=10.0.0.1
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
BONDING_OPTS="miimon=1000 mode=balance-alb"
Waslap
  • 173

1 Answers1

0

Buy a $10 switch off eBay, or a refurbished managed Layer 2 Cisco if you're a business.

This is not what bonding is meant for, nobody develops or tests for this. Link monitoring may or may not work depending on your NIC.

Get a switch.

suprjami
  • 3,626