REDHAT6 Dual NIC Bindings

Source: Internet
Author: User

Redhat6 dual NIC bindings

I. Environmental situation
1. Operating system: redhat6.4 64-bit

Note: Redhat6 The following versions part of the configuration file is different

2, network card 2 block: eth0 eht1

Second, the Operation procedure

1, need to completely shut down the NetworkManager service, otherwise it will conflict with the bond NIC

service NetworkManager Stop//shutdown NetworkManager Services

Chkconfig NetworkManager off//does not start the service when the system starts

2. Modify the /etc/sysconfig/network-scripts/ifcfg-bond0 configuration file

vi/etc/sysconfig/network-scripts/ifcfg-bond0

in the configuration file, write the following configuration:     

device=bond0

Onboot=yes

Bootproto=static

IPADDR=XXX.XXX.XXX.XXX//write to your IP

NETMASK=XXX.XXX.XXX.XXX//Write your mask

GATEWAY=XXX.XXX.XXX.XXX//write to your gateway

Userctl=no

Type=ethernet

3. Modify the/etc/sysconfig/network-scripts/ifcfg-eth0 configuration file

vi/etc/sysconfig/network-scripts/ifcfg-eth0

written as The following configuration:

Device=eth0

Bootproto=none

Onboot=yes

master=bond0//Connect the network card to Bond0

Slave=yes//Enable dual NIC

Userctl=no

4. Modify the/etc/sysconfig/network-scripts/ifcfg-eth1 configuration file

vi/etc/sysconfig/network-scripts/ifcfg-eth0

In the configuration file, write the following configuration:

device=eth1

Bootproto=none

Onboot=yes

master=bond0//Connect the network card to Bond0

Slave=yes//Enable dual NIC

Userctl=no

5 . Modify kernel file/etc/modprobe.d/dist.conf file add   

vi/etc/mkdprobe.d/dist.conf

        

alias bond0 Bonding

Options Bond0 mode=1 miimon=100

Note 1: Miimon refers to how long it takes to check the network once, in MS (MS),

This means that if one of the networks is disconnected, it will automatically be available within 0.1 seconds.

Note 2:mode=1: Automatic redundancy mode, where one line is disconnected, other lines will be automatically redundant.


6. Restart the network service to take effect

Service Network Restart

At this time, only BOND0 network card has IP address, eth0 and eth1 network card should not have IP on it.

To view the status of the network card running, use the command

Cat/proc/net/boning/bond0

You can see that the NIC is in effect.  


This article is from the "Jasonlee_linux" blog, make sure to keep this source http://ljason.blog.51cto.com/10467405/1669084

REDHAT6 Dual NIC Bindings

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.