Linux under the binding of multiple network card configuration detailed

Source: Internet
Author: User

Suppose the binding Nic Eth0 and eth1 are bond0

Creating BOND0 Files

Cp/etc/sysconfig/network-scripts/ifcfg-eth0 ifcfg-bond0
Vim/etc/sysconfig/network-scripts/ifcfg-bond0

# # #文件内容 ###
Device=bond0
Bootproto=static
ipaddr=10.0.0.9
netmask=255.255.255.0
gateway=10.0.0.1
Onboot=yes
Type=ethernet

modifying eth0 and Eth1 files

# # #eth0文件 ###
Device=eth0
Bootproto=none
Master=bond0
Slave=yes
Userctl=no

# # #eth1文件 ###
Device=eth1
Bootproto=none
Master=bond0
Slave=yes
Userctl=no

modifying module files

Vim/etc/modprobe.d/jh.conf #自行创建

# # #文件内容 ###
Alias Bond0 Bonding
Options Bond0 miimon=100 mode=1 # mode=1 for redundancy mode

Restart Network

/etc/init.d/network restart

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.