Linux redundant IP configuration, which has passed the test on the AS4 System

Source: Internet
Author: User
Linux redundant IP configuration, which has been tested on the AS4 system-Linux Enterprise Application-Linux server application information. The following is a detailed description. On the Solaris platform, dual-nic redundancy, we all know that you can use the IPNM (mutipath) mechanism to implement redundant IP addresses (floating IP addresses) for NICs. For Linux, bonding can also be used to configure redundant IP addresses, as described below:

1) vi/etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE = bond0
IPADDR = 192.168.1.235
NETMASK = 255.255.255.0
NETWORK = 192.168.1.0
BROADCAST = 192.168.1.255
GATEWAY = 192.168.1.254
ONBOOT = yes
BOOTPROTO = none
USERCTL = no
TYPE = Ethernet
IPV6INIT = no

2) vi/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE = eth0
USERCTL = no
ONBOOT = yes
MASTER = bond0
SLAVE = yes
BOOTPROTO = none
TYPE = Ethernet
IPV6INIT = no

3) vi/etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE = eth1
USERCTL = no
ONBOOT = yes
MASTER = bond0
SLAVE = yes
BOOTPROTO = none
TYPE = Ethernet
IPV6INIT = no

4] Add at the end of the/etc/modprobe. conf file
Alias bond0 bonding
Options bond0 mode = 1 miimon = 100 updelay = 200 downdelay = 200

5. Restart the OS.
Shutdown-r now
(Service network restart can also be used as mentioned in linux share/doc, but it does not seem to work)

6. view the bonding status:
Cat/proc/net/bonding/bond0

The above test is successful on the red hat AS 4 system.
Determine whether the linux system supports bonding: grep ifenslave/sbin/ifup

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.