Network Card Redundancy in Linux

Source: Internet
Author: User
Article Title: Nic redundancy in Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems and open-source systems. 1. Add bonding devices to/etc/modules. conf.

Alias bond0 bonding

2. edit/etc/sysconfig/network-scripts/ifcfg-ethX for eth0 and eth1. The content of these two files is identical except for the DEVICE field.

DEVICE = ethX

USERCTL = no

ONBOOT = yes

MASTER = bond0

SLAVE = yes

BOOTPROTO = none

This will make ethX (replace X with the number of the Ethernet device, such as eth0 and eth1) from the bond0 master device

3. Create a network script for the bonding device (for example:/etc/sysconfig/network-scripts/ifcfg-bond0), similar to the following example

DEVICE = bond0

USERCTL = no

ONBOOT = yes

BROADCAST = 192.168.1.255

NETWORK = 192.168.1.0

NETMASK = 255.255.255.0

GATEWAY = 192.168.1.1

IPADDR = 192.168.1.10

4. reboot the system to make the change take effect. You can also manually restart the network. For example:

/Sbin/service network restart

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.