Procedure to configure NIC bonding in Linux
Edit the Files as follows,
# vi /etc/modprobe.conf
alias bond0 bonding
options bonding miimon=100 mode=1
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:15:17:87:D4:A8
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
MASTER=bond0
SLAVE=yes
# vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
HWADDR=00:15:17:87:D4:A9
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
MASTER=bond0
SLAVE=yes
And create new file as below,
# vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
IPADDR=172.16.0.152
NETMASK=255.255.255.0
USERCTL=no
NETWORK=172.16.0.0
GATEWAY=172.16.0.1
Restart the server. Give ifconfig, you will find bond0 is up with configured IP Address and eth0 and eth1 will be as slave.
Edit the Files as follows,
# vi /etc/modprobe.conf
alias bond0 bonding
options bonding miimon=100 mode=1
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:15:17:87:D4:A8
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
MASTER=bond0
SLAVE=yes
# vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
HWADDR=00:15:17:87:D4:A9
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
MASTER=bond0
SLAVE=yes
And create new file as below,
# vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
IPADDR=172.16.0.152
NETMASK=255.255.255.0
USERCTL=no
NETWORK=172.16.0.0
GATEWAY=172.16.0.1
Restart the server. Give ifconfig, you will find bond0 is up with configured IP Address and eth0 and eth1 will be as slave.
No comments:
Post a Comment