Add and bind linux Nic aliases RHEL6

Source: Internet
Author: User

Nic alias Configuration:

 

This is similar to changing the ip address of the NIC temporarily in ifconfig. It's all temporary. You just need to restart your computer.

With a permanent ip alias:

Cp ifcfg-eth0 ifcfg-eth0: 0

 

Vim ifcfg-eth0: 0

 

This can also be done, right?

Restart the network.

Nic binding: the VM has two NICs, one eth0 and one eth1.

Linux allows you to bind multiple physical NICs to a logical Nic and bind two or more network interfaces as one network interface to increase bandwidth and/or provide redundancy.

Select Linux Ethernet binding mode

Mode 0 (balanced round robin)-Round Robin policy, which is used by all interfaces. Use the round robin method to transmit packets in all Slave; any

Slave can receive.

Mode 1 (active backup)-fault tolerance. Only one Slave interface can be used at a time, but if this interface fails, the other Slave

Will replace it.

Mode 3 (broadcast)-fault tolerance. All packets are broadcast through all Slave interfaces.

Other binding modes are described in the kernel documentation networking/bonding.txt.

Nic configuration file:

Which of the following network interfaces and logical network interfaces are configured?

Logical NIC:

 

 

Configure the system to load the bonding module:

 

Attach the slave interface to bond0

/Etc/rc. d/rc. local

Ifenslave bond0 eth0 eth1

Reboot system

View bonding status:

Cat/proc/net/bonding/bond0

 

If ifdown eth0 is used, eth1 is immediately topped when eth0 is bad.

 

Kernel network parameter adjustment:

Cd/proc/sys/net/ipv4 prevent others from pinging

Allow other hosts to ping

 

 

 

 

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.