Most documentation I found was incorrect and thought I'll share this.
To setup bonded interfaces you would also need to configure your switch. This is usually by truncating two ports. The protocol I use on my bonding is 803.3ad / mode=4.
Goto /etc/sysconfig/network-scripts
I renamed my interfaces back to ifcfg-eth0 and ifcfg-eth1
We first need to setup a working bond0 interface and install a few tools before we can continue with setting up a bridge interface.
ifcfg-eth0
Code: Select all
device=eth0
BOOTPROTO=none
HWADDR=ab:ac:aa:00:03:e0
ONBOOT=yes
SLAVE=yes
TYPE=Ethernet
MASTER=bond0
NAME=eth0
NOTE:If you renamed your interface name you would need to update the "NAME=" to the same name used. I my case I made both eth0
ifcfg-eth1
Code: Select all
DEVICE=eth1
BOOTPROTO=none
HWADDR=ab:ac:aa:00:01:30
ONBOOT=yes
SLAVE=yes
TYPE=Ethernet
MASTER=bond0
NAME=eth1
NOTE:If you renamed your interface name you would need to update the "NAME=" to the same name used. I my case I made both eth1
Create file ifcfg-bond0
ifcfg-bond0
Code: Select all
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
NM_CONTROLLED=no
IPV6INIT=no
USERCTL=no
TYPE=Bond
BONDING_OPTS="mode=4 miimon=100 updelay=12000 downdelay=0"
IPADDR0=x.x.x.x
PREFIX0=24
GATEWAY=x.x.x.x
DNS1=x.x.x.x
DOMAIN=lcoal.localdomain
DEFROUTE=yes
NOTE: IPADDR0 and PREFIX0 use "0" but GATEWAY should not have a "0".I understand this 0 as identifying the entering of multiple IP address for an interface. The next IP address you would like to enter on the interface could be IPADDR1=x.x.x.x and PREFIX1=25
Restart your network:
Code: Select all
systemctl restart network
Status of your network
Code: Select all
systemctl status network
Confirm your default gateway is correct
Code: Select all
netstat -rn
Test
Code: Select all
ip a
ifconfig
ping www.google.com
If all is working install:
Code: Select all
yum install bridge-utils bind-utils tuned-utils-systemtap
Now we can continue to setting up a bridge interface: Create file ifcfg-br0
ifcfg-br0
Code: Select all
DEVICE=br0
BOOTPROTO=none
ONBOOT=yes
TYPE=Bridge
USERCTL=no
NM_CONTROLLED=no
IPADDR0=x.x.x.x
PREFIX0=24
GATEWAY=x.x.x.x
DNS1=x.x.x.x
DOMAIN=lcoal.localdomain
DEFROUTE=yes
NAME=br0
Make changes to ifcfg-bond0
Code: Select all
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
NM_CONTROLLED=no
IPV6INIT=no
USERCTL=no
TYPE=Bond
BRIDGE=br0
BONDING_OPTS="mode=4 miimon=100 updelay=12000 downdelay=0"
NOTE:I removed IPADDR0, PREFIX0, GATEWAY, DNS1, DOMAIN, DEFROUTE. Added "BRIDGE=br0"
Restart your network:
Code: Select all
systemctl restart network
Status of your network
Code: Select all
systemctl status network
Confirm your default gateway is correct
Code: Select all
netstat -rn
Test
Code: Select all
ping www.google.com
Hope this will help.