I have a server with a 4-ports network card.
I set up bonding and bridge.
Everything works as it should.
I only have a small problem because each interface has a lot of drops.
Results below:
Code: Select all
Device Received Sent Err/Drop
bond0 3.85 GiB 11.76 GiB 0/1400
br0 3.45 GiB 11.28 GiB 0/5277
em1 7.47 MiB 4.54 MiB 0/5137
lo 6.25 MiB 6.25 MiB 0/0
p3p1 2.92 GiB 7.54 GiB 0/686
p3p2 957.60 MiB 4.23 GiB 0/15
root@host01 network-scripts]# cat ifcfg-p3p1
Code: Select all
DEVICE=p3p1
TYPE=Ethernet
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
NM_CONTROLLED=no
MASTER=bond0
SLAVE=yes
Code: Select all
DEVICE=p3p2
TYPE=Ethernet
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
NM_CONTROLLED=no
MASTER=bond0
SLAVE=yes
Code: Select all
DEVICE=bond0
NAME=bond0
TYPE=Bond
ONBOOT=yes
BRIDGE=br0
BOOTPROTO=none
NM_CONTROLLED=no
BONDING_OPTS="mode=0 miimon=100"
Code: Select all
DEVICE=br0
TYPE=Bridge
BOOTPROTO=none
IPADDR=192.168.1.200
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=192.168.1.10
DNS2=192.168.1.245
DNS3=8.8.8.8
ONBOOT=yes
Code: Select all
[root@host01 network-scripts]# uptime
13:31:48 up 5:49, 2 users, load average: 0.51, 0.55, 0.57