How to set up Linux system network card bindings

Source: Internet
Author: User

How to set up Linux system network card bindings

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

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.