Linux Network first quarter OPS 001

Source: Internet
Author: User

  1. The purpose of the experiment is to bind the two NICs, and solve the load balancing and automatic switching.

  2. Linux operating system 6.5,bond0,eth1,eth2.

  3. Bond0 10.10.9.126 eth1 no eth2.

  4. The configuration is as follows:

  5. cd/etc/sysconfig/network-scripts//Enter the network configuration file

  6. CP ifcfg-eth0 ifcfg-bond0/Copy ifcfg-eth0 renamed to ifcfg-bond0 the original Ifcfg-eth0 continues to exist

  7. Configure IFCFG-BOND0

    Device=bond0
    Bootproto=none
    Onboot=yes
    ipaddr=10.10.9.126
    dns=202.106.196.115
    netmask=255.255.255.0
    gateway=10.10.9.3
    Type=ethernet

  8. Configure Ifcfg-eth1

    Type=ethernet
    Device=eth1
    Bootproto=static
    Onboot=yes

  9. Configure Ifcfg-eth2

    Device=eth2
    Bootproto=static
    Onboot=yes

  10. Configure Vi/etc/rc.d/rc.local


    Ifenslave bond0 eth2 eth1
    Route Add-net 10.10.0.0. netmask 255.255.255.0 bond0

  11. Configure etc/moprobe.conf

    Alias Eth2 e1000
    Alias Eth1 e1000
    Alias Bond0 Bonding
    Option bond0 miimon=100 mode=0/mode parameter has 0,1,2,3

    0= load Balancing mode, both NICs are working

    1 = Only one NIC works and the other is backed up

  12. Save the end. Restart the NIC. Ok

This article is from the "opportunity to prepare the person von." Blog, declined reprint!

Linux Network first quarter OPS 001

Related Article

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.