Monday, November 23, 2015

Bonding and Bridging Configuration in RHEL

Simple steps to configure Bonding and Bridging in RHEL:

A. Bonding configuration:

1. Create new file at below location:
# vim /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
TYPE=Ethernet
IPADDR=
NETMASK=
GATEWAY=
BONDING_OPTS="mode=1 miimon=100"

2. Edit 1st NIC conf file as below:
# vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
TYPE=Ethernet
MASTER=bond0
SLAVE=yes

3. Edit 2nd NIC conf file as below:
# vim /etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth2
ONBOOT=yes
BOOTPROTO=none
TYPE=Ethernet
MASTER=bond0
SLAVE=yes

4. Create or modify file as mentioned below:
# vim /etc/modeprobe.d/modprobe.conf
alias bond0 bonding

5. Stop NetworkManager service and start network service:
# /etc/init.d/NetworkManager stop
# /etc/init.d/network restart

#################################################################################

B. Bridging Configuration:

1. Create new file at below location:
# vim /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
ONBOOT=yes
BOOTPROTO=none
TYPE=Bridge
IPADDR=
NETMASK=
GATEWAY=

2. Edit 1st NIC conf file as below:
# vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
BRIDGE=br0

3. Stop NetworkManager service and start network service:
# /etc/init.d/NetworkManager stop
# /etc/init.d/network restart

No comments:

Post a Comment