In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Today's dual network card experiment is part of the realization of high availability network. There are two modes about the use of dual network cards: active / standby mode and load balancing mode. Literally, we can understand how dual network cards work.
Dual network card driver module bonding network card alias bond0
The following is the basic idea of the editor to realize the dual network card (active / standby mode):
1. Find out the module bonding needed for the network card binding and edit the dependency between the virtual network card bond0 and the module bonding as well as the selection and configuration of mode options in the / etc/modprobe.conf file.
2. Generate a file ifcfg-bond0 in the / etc/sysconfig/network-scripts/ directory and edit the file
3. Declare the binding of the virtual network card bond0 to the network card eth0 eth2 in the boot script (/ etc/rc.d/rc.local)
4. Load module modprobe bonding
[root@rhel5 network-scripts] # vim / etc/modprobe.conf
/ / mode=1 indicates active / standby mode, while mode=0 indicates that the load is in a very mode.
[root@rhel5 ~] # vim / etc/sysconfig/network-scripts/ifcfg-eth0
/ / change eth0,eth2 to automatic address acquisition mode, and turn on automatic detection.
[root@rhel5 ~] # vim / etc/sysconfig/network-scripts/ifcfg-eth2
[root@rhel5 ~] # lsmod | grep bond*
[root@rhel5 network-scripts] # cp ifcfg-eth0 ifcfg-bond0
[root@rhel5 network-scripts] # vim ifcfg-bond0
/ / bond0 is equipped with a static address, which can be automatically detected when powered on.
[root@rhel5 net] # vim / etc/rc.d/rc.local
/ / declare the binding of virtual network card bond0 to network card eth0 and eth2 in the boot script
[root@rhel5 ~] # modprobe bonding
/ / load bonding module
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.