In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.