Dual NIC bindings on CentOS

Source: Internet
Author: User

1. Login System switch Directory:

# cd/etc/sysconfig/network-scripts/

2. Add The configuration of the binding nic bond#

# Vim ifcfg-bond0

Device=bond0

Type=ethernet

Onboot=yes

Bootproto=static

ipaddr=59.151.2.134

netmask=255.255.255.240

gateway=59.151.2.129

# Vim Ifcfg-bond1

Device=bond1

Type=ethernet

Onboot=yes

Bootproto=static

ipaddr=172.16.10.134

netmask=255.255.255.0

3. Modify the original NIC configuration file contents as:

# Cat ifcfg-em*

Device=em1

Onboot=yes

Bootproto=none

Device=em2

Onboot=yes

Bootproto=none

Device=em3

Onboot=yes

Bootproto=none

Device=em4

Onboot=yes

Bootproto=none

4. add in the dist.conf file

# vim/etc/modprobe.d/dist.conf

Alias Bond0bonding

Options bond0miimon=100 mode=6

Alias Bond1bonding

Options bond1miimon=100 mode=6

Alias Net-pf-10off

Alias IPv6 off

5. Add in /etc/rc.local

Ifenslave bond0em1 EM2

Ifenslave bond1em3 EM4


This article is from the "WQH" blog, make sure to keep this source http://wangqh.blog.51cto.com/5367393/1758788

Dual NIC bindings on CentOS

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.