Example Analysis of binding of Redhat AS 4.0dual Network Card
Editor to share with you the example analysis of Redhat AS 4.0 dual network card binding, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
1. Environment description
My RedHat Linux Enterprise AS 4 installs a dual-port Intel Gigabit network card, and I can see eth0 and eth2 network cards through the ifconfig-a command.
2. Binding steps for dual Nic:
2.1 modify / etc/sysconfig/network-scripts/ifcfg-eth0 configuration document, the modified content is as follows:
DEVICE=eth0
ONBOOT=yes # automatically enables the device when the system starts up
BOOTPROTO=none # starts without any protocol
2.2 modify the / etc/sysconfig/network-scripts/ifcfg-eth2 configuration document as follows:
DEVICE=eth2
ONBOOT=yes # automatically enables the device when the system starts up
BOOTPROTO=none # starts without any protocol
2.3 create a configuration document / etc/sysconfig/network-scripts/ifcfg-bond0 that binds to the network port, as follows:
DEVICE=bond0 # Virtual Network Card name
BOOTPROTO=static
IPADDR=192.168.254.38 # IP address
NETMASK=255.255.255.0 # Subnet Mask
GATEWAY=192.168.254.254 # Gateway
BORADCAST=192.168.254.255# broadcast address
ONBOOT=yes
TYPE=Ethernet
2.4 modify / etc/modprobe.conf, configure the binding model, and add the following:
Alias bond0 bonding
Options bond0 millmon=100 mode=0
# option millmon specifies how often the link is monitored, in ms.
# option mode is the working mode that indicates the binding port. There are 7 modes from 0 to 7. The commonly used modes are 0 and 1. Mode=0 means "round-robin" strategy. Two cards work in load balance at the same time.
State. Mode=1 stands for "active-backup" strategy, with a backup status of one card and one backup.
2.5 what is modified is / etc/rc.local, which is responsible for binding the virtual Nic to two physical NICs when the system starts up, adding the following:
Ifenslave bond0 eth0 eth2
The above is all the contents of this article "sample Analysis of Redhat AS 4. 0 double Network Card binding". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!