"Adding and binding of Linux NIC aliases" RHEL6

Source: Internet
Author: User
Tags aliases

Configuration of NIC aliases:

This and ifconfig temporarily modify the network card IP is similar, but not the same. Are temporary, just restart the computer will be gone.

With permanent IP aliases:

CP Ifcfg-eth0 ifcfg-eth0:0

Vim ifcfg-eth0:0

This is going to work out, right?

Restart the network, it's OK.

NIC binding: The virtual machine is a 2 nic, a eth0 piece of eth1.

Linux supports the bundling of multiple physical network cards into a single logical network card, which allows two or more network interfaces to be used as a single networking interface, thereby increasing bandwidth and/or providing redundancy.

Select Linux Ethernet Binding Mode

?

Mode 0 (Balanced round robin)-round robin, all interfaces are used. Use round robin to transfer packets in all Slave;

Slave can be received.

?

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

will replace it.

?

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

Additional binding modes are described in the kernel document Networking/bonding.txt file.

Configuration file for Nic:

Below is the configuration of which 2 NICs are configured and the logical NIC

Logical NIC:

Configure the system to load the bonding module:

Additional slave interface to bond0

/etc/rc.d/rc.local

Ifenslave bond0 eth0 eth1

Reboot restart System

View bonding Status:

Cat/proc/net/bonding/bond0

Using Ifdown eth0 will find that the eth1 will be on top immediately when the eth0 is bad.

Tuning of kernel network parameters:

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.