Linux System network card binding tutorial

Source: Internet
Author: User

Brief introduction

A port binding is the binding of multiple physical network cards to a logical network card; Depending on the pattern, the function of the NIC binding can be divided into two main functions of lifting throughput and hot backup, which is generally to improve throughput. Additional support for bonding kernel modules is required.

Configuration

Mount Module

Modify module mount configuration file vim/etc/modprobe.conf

Alias Bond0 Bonding

Options Bond0 mode=balance-alb miimon=100 use_carrier=0

Modify Network card parameters

Add BOND0 configuration Vim/etc/sysconfig/network-script/ifcfg-bond0

Device=bond0
Userctl=no
Bootproto=none
Onboot=yes
ipaddr=192.168.110.2
network=192.168.110.0
netmask=255.255.255.0
gateway=192.168.110.1

Add slave configuration Vim/etc/sysconfig/network-script/ifcfg-eth1

Device=eth1
Userctl=no
Onboot=yes
Master=bond0
Slave=yes
Bootproto=none

Restart Network

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.