Port binding Based on enterchannel in linux)

Source: Internet
Author: User
Based on the enterchannel (Port binding) in linux-Linux Enterprise Application-Linux server application information, the following is a detailed description. Objective: Multiple NICs Virtualize one Nic so that the failure of one Nic does not affect network usage.

Steps:

1. Modify the eth0 and eth1 configuration files
Ifcfg-eth0

DEVICE = eth0
BOOTPROTO = none
ONBOOT = yes
USERCTL = no
MASTER = bond0
SLAVE = yes

Ifcfg-eth1

DEVICE = eth1
BOOTPROTO = none
ONBOOT = yes
USERCTL = no
MASTER = bond0
SLAVE = yes

2. Configure the virtual Nic
Vi/etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE = bond0
BOOTPROTO = none
BROADCAST = 192.168.1.255
IPADDR = 192.168.1.97
NETMASK = 255.255.255.0
NETWORK = 192.168.1.0
ONBOOT = yes
TYPE = Ethernet
GATEWAY = 192.168.1.1
USERCTL = no

3. Edit modules. conf.
Vi/etc/modules. conf
Alias bond0 bonding
Options bond0 miimon = 100 mode = 1 primary = eth0

4. Add rc. local
Modprobe bonding miimon = 100 mode = 1
QUOTE:

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.