Page 1 of 1

Problem with bonding

Posted: 2017/08/27 16:21:35
by keyvanik
Hi i have create a bond on centos 7 but now work
i have two ethernet with 1gb bandwith and i want to bond them to give me 2gb bandwith
this is my config :

Code: Select all

DEVICE=bond0
TYPE=Bond
NAME=bond0
BONDING_MASTER=yes
BOOTPROTO=none
ONBOOT=yes
IPADDR=*.*.*.*
NETMASK=255.255.255.240
GATEWAY=*.*.*.*
DNS1=217.218.127.127
DOMAIN=8.8.8.8
BONDING_OPTS="mode=0 miimon=100"

Code: Select all

TYPE=Ethernet
BOOTPROTO=none
DEVICE=eno1
ONBOOT=yes
HWADDR="0c:c4:7a:7c:55:56"
MASTER=bond0
SLAVE=yes

Code: Select all

TYPE=Ethernet
BOOTPROTO=none
DEVICE=eno2
ONBOOT=yes
HWADDR="0c:c4:7a:7c:55:57"
MASTER=bond0
SLAVE=yes

Re: Problem with bonding

Posted: 2017/08/27 17:13:33
by TrevorH
Do you get errors in /var/log/messages? What is the content of /proc/net/bonding/bond0? What is the output from uname -r ?

Re: Problem with bonding

Posted: 2017/08/27 17:31:38
by keyvanik
TrevorH wrote:Do you get errors in /var/log/messages? What is the content of /proc/net/bonding/bond0? What is the output from uname -r ?
no i didnt recive any error but i cant use 2gp just i can use 1gb but my bond is ok i dont know how can fix it

Re: Problem with bonding

Posted: 2017/08/27 20:15:15
by hunter86_bg
balance-rr or 0 — Sets a round-robin policy for fault tolerance and load balancing. Transmissions are received and sent out sequentially on each bonded slave interface beginning with the first one available.
802.3ad or 4 — Sets an IEEE 802.3ad dynamic link aggregation policy. Creates aggregation groups that share the same speed and duplex settings. Transmits and receives on all slaves in the active aggregator. Requires a switch that is 802.3ad compliant.
I think that you need mode 4 (IEEE 802.3ad) and support from the switch you are connected to.

Re: Problem with bonding

Posted: 2017/08/28 04:32:58
by jlehtone
keyvanik wrote:no i didnt recive any error but i cant use 2gp just i can use 1gb but my bond is ok i dont know how can fix it
A single connection cannot probably use more than one link.