linux双网卡绑定简要步骤
2016-01-26 11:53
471 查看
编辑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
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 socket 初步
- Linux Kernel 4.0 RC5 发布!
- linux lsof详解
- linux 文件权限
- Linux 执行数学运算
- 10 篇对初学者和专家都有用的 Linux 命令教程
- Linux 与 Windows 对UNICODE 的处理方式
- Ubuntu12.04下QQ完美走起啊!走起啊!有木有啊!
- 解決Linux下Android开发真机调试设备不被识别问题
- 运维入门
- 运维提升
- Linux 自检和 SystemTap
- Ubuntu Linux使用体验
- c语言实现hashmap(转载)
- Linux 信号signal处理机制
- linux下mysql添加用户
- Scientific Linux 5.5 图形安装教程
- Linux 下无损图片压缩小工具介绍