In RHEL5, dual NICs use bonding-Linux Enterprise Application-Linux server application information. The following is a detailed description. The so-called bonding means to bind multiple NICs to the same IP address to provide external services, which can achieve high availability or load balancing. Of course, it is impossible to directly set the same IP address for the two NICs. Through bonding, a virtual network card provides external connections, and the physical network card is changed to the same MAC address. Kernels 2.4.12 and later versions both provide bonding modules. Previous versions can be implemented through patch.
1. Check the network adapter you are currently using and check the files starting with ifcfg-in the/etc/sysconfig/network-scripts directory. They should be eth0, eth1...
2. Configure the virtual network card bond0
You can use DHCP or static IP. It is best to edit the configuration file through vi.
4. Add the newly added bond0 device to modprobe. conf for kernel recognition. Add the Setting Parameter. The value of miimon indicates the time when two NICs monitor each other, in ms. The mode value is work mode, which can be set to high availability or load balancing. 0 is high availability (default), 1 is Server Load balancer, and an XOR mode is also available.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.