Linux network card binding setting method

  

In order to more convenient Internet access, we usually let our computer bind the network card. However, compared to the simple operation of binding the network card in the Windows system. The operation steps of binding a network card in a Linux system are complicated. Let's take a look at the specific setup steps with Xiaobian.

Introduction

is bound to multiple physical ports bound to a logic card NIC; depending on the mode of the card can be bound to a certain lifting effect can be divided into thermal and backup The two main roles are generally to increase throughput. In addition, support for the bonding kernel module is required.

Configuring

Mounting Modules

Modifying Module Mounting Configuration Files vim /etc/modprobe.conf

alias bond0 bonding

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

Modify NIC 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 the network

service network restart

The above is the setting method of the binding network card in the Linux system. If you want to bind the network card to your own computer, use it. This method is designed It.

Copyright © Windows knowledge All Rights Reserved