Bind a centos dual-nic to bond0

Source: Internet
Author: User

Tag: blog http OS file 2014 Art

A) copy? And configure Vim/etc/sysconfig/network-scripts/ifcfg-bond0 configuration? (Files will be automatically created)

Device = bond0

Type = Ethernet

Onboot = Yes

Bootproto = static

Ipaddr = XXX. XXX

Netmask = XXX. XXX

Gateway = XXX. XXX

Userctl = No

B) EDIT Em1, EM2/eth0, and eth1? Parts

Vim/etc/sysconfig/network-scripts/ifcfg-em1

Device = Em1

Type = Ethernet

Onboot = Yes

Bootproto = none

Master = bond0

Slave = Yes

Userctl = No

Vim/etc/sysconfig/network-scripts/ifcfg-em2

Device = EM2

Type = Ethernet

Onboot = Yes

Bootproto = none

Master = bond0

Slave = Yes

Userctl = No

C) Configure Vim/etc/modprobe. d/bonding. conf (centos 6.4)

Vim/etc/modprobe. conf (centos 5.9)

Add:

Alias bond0 Bonding

Options bond0 miimon = 100 mode = 0

D. Restart the network.

Service Network restart

Related Article

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.