RHEL6.3 X86(64位)网卡做bonding
来源:互联网 发布:linux 解压zip 重命名 编辑:程序博客网 时间:2024/06/05 06:11
1. 网卡做bond
本次是将eth0和eth6做成一个bond0
1. Bond0
[root@EDEVAPP3 ~]# more /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.137.134
NETMASK=255.255.255.192
GATEWAY=192.168.137.190
2. Eth0
[root@EDEVAPP3 ~]# more /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
HWADDR=08:9E:01:62:9F:AA
MASTER=bond0
SLAVE=yes
3. Eth6
[root@EDEVAPP3 ~]# more /etc/sysconfig/network-scripts/ifcfg-eth6
DEVICE=eth6
BOOTPROTO=none
HWADDR="68:05:CA:05:B6:D4"
ONBOOT=yes
MASTER=bond0
SLAVE=yes
4. 修改下面参数
[root@EDEVAPP3 ~]#vi /etc/modprobe.d/dist.conf
增加
alias bond0 bonding
options bond0 miimon=100 mode=1
--如果是双主交换机,且是主备模式的,两块网卡接到两个交换机上时,最好用mode=1,即主备模式,如果是load balance模式(mode=0)的话,可能会出现丢包的情况。
[root@EDEVAPP3 etc]# vi /etc/rc.d/rc.local
增加
ifenslave bond0 eth0 eth6
5. 将 NetworkManager服务关闭
[root@EDEVAPP2 network-scripts]# service NetworkManager stop
[root@EDEVAPP2 network-scripts]#Chkconfig –level 2345 NetworkManager off
--防火墙也需要设置好,可以关闭,selinux可以禁用掉。
6. 重启机器
配置完成后必须重启机器才能生效。
7. 一些检查
root@EDEVAPP3 etc]# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000003 (3)
Link detected: yes
[root@EDEVAPP3 etc]# service network status
Configured devices:
lo bond0 eth0 eth1 eth2 eth3 eth4 eth5 eth6 eth7
Currently active devices:
lo eth0 eth6 bond0
[root@JTE7DEVAPP2 ~]# more /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth6
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: 0
Permanent HW addr: 08:9e:01:62:98:f6
Slave queue ID: 0
Slave Interface: eth6
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 68:05:ca:05:b5:cc
Slave queue ID: 0
[root@JTE7DEVAPP2 ~]#
- RHEL6.3 X86(64位)网卡做bonding
- Linux bonding(网卡绑定)
- 网卡bonding
- 在rhel6.3 x86-64系统上安装lsscsi包
- linux channel bonding(3)(linux 双网卡绑定(3))
- linux 多网卡bonding
- XenServer网卡Bonding
- 网卡bonding过程介绍
- 网卡bonding模式
- Linux多网卡绑定(Channel Bonding Interfaces)
- 64位RHEL6.3上安装虚拟机Vbox 4.2.8
- 磊科(NetCore) nw330 usb无线网卡 win7 x86 驱动程序 (for windows7 32位)
- 配置linux双网卡bonding
- suse linux配置网卡bonding
- Linux双网卡bonding举例
- Linux下网卡绑定(bonding)
- linux 下配置网卡bonding
- ubuntu快速配置网卡bonding
- 深入理解Oracle表(2):驱动表的那些事儿
- apache2启动失败的解决方法
- [LeetCode] Subsets
- waiting for
- CakePHP 2.x CookBook 中文版 第四章 CakePHP 概述
- RHEL6.3 X86(64位)网卡做bonding
- hdu 2191 悼念512汶川大地震遇难同胞——珍惜现在,感恩生活 (背包问题)
- java关键字大全集
- ADO.NET中的DataReader与DataSet
- WinCE中的Data/ Prefetch Abort异常定位
- 自己学写爬虫之----CS240EXCEPTION(一)
- C语言数据结构之单向链表(已经调试可以实现相应的功能了,可是还是有几个问题现在还是不大理解,希望大家能够一起探讨)
- Oracle 11GR2-RAC环境下修改主机名
- YII 中使用Ueditor