Article Title: bind dual NICs in Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems and open-source systems. use the yast tool to configure the first Nic. In this case, a configuration file (for example, ifcfg-eth-xx: xx)
BONDING_MODULE_OPTS = 'miimon = 100 mode = 1 use_carrier = 0' -- Note: mode = 1 indicates the primary backup of the NIC, and mode = 0 indicates load balancing.
4. Delete the configuration file of the bound Nic under/etc/sysconfig/network (for example, ifcfg-eth-xx: xx)
5. Use rcnetwork restart to restart the service
6. Run the ifconfig-a command to check whether the bond0 has an IP address, but eth0 and eth1 do not.
The simplest method:
A. No Nic is configured, so there is no file similar to ifcfg-eth-xx: xx in the/etc/sysconfig/network directory, you do not need to delete it.
B. In the/etc/sysconfig/network directory, create a file ifcfg-bond0 with the following content:
BOOTPROTO = 'static'
BROADCAST = '1970. 168.23.255'
IPADDR = '192. 168.23.6'
MTU =''
NETMASK = '2017. 255.255.0'
NETWORK = '192. 168.23.0'
REMOTE_IPADDR =''
STARTMODE = 'onboot'
UNIQUE = 'wmhv. + emlitqy0yf'
BONDING_MASTER = yes
BONDING_SLAVE_0 = 'eth0'
BONDING_SLAVE_1 = 'eth1'
C. Run the rcnetwork restart command to restart the service.
D. Use ifconfig-a to view the help result.
If there are two other network card help, copy the ifcfg-bind0 into a ifcfg-bond0, change the IP information and network port information, and then restart the service, OK, very simple.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service