码迷,mamicode.com
首页 > 系统相关 > 详细

linux双网卡绑定简要步骤

时间:2016-01-26 18:54:43      阅读:203      评论:0      收藏:0      [点我收藏+]

标签:linux   双网卡   步骤   

编辑eth0

DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOTTPROTO=none

编辑eth1


DEVICE=eth1
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOTTPROTO=none

编辑bond0

DEVICE=bond0
BOOTPROTO=static
IPADDR=10.10.128.13
NETMASK=255.255.192.0
GATEWAY=10.10.128.254
ONBOOT=YES
USERCTL=no
添加模块:

[root@foldg network-scripts]# cat /etc/modprobe.d/bonding.conf
alias  bond0 bonding
options bonding miimon=100  mode=1

加载模块:

[root@foldg network-scripts]# modprobe bonding

查看网卡模式:

[root@foldg proc]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 1
Permanent HW addr: 40:f2:e9:b9:ab:68
Slave queue ID: 0

Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 40:f2:e9:b9:ab:69
Slave queue ID: 0


linux双网卡绑定简要步骤

标签:linux   双网卡   步骤   

原文地址:http://7642644.blog.51cto.com/7632644/1738564

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!