RHEL5下配置网卡绑定
2012-06-11 15:13
405 查看
1,/etc/sysconfig/network-scripts目录下生成如下三个文件
vi ifcfg-bond1
DEVICE=bond1
BOOTPROTO=static
IPADDR=10.4.124.*
NETMASK=255.255.255.224
GATEWAY=10.4.124.*
ONBOOT=YES
TYPE=Ethernet
USERCTL=no
BONDING_OPTS="miimon=100 mode=1"
vi ifcfg-eth4
DEVICE=eth4
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
MASTER=bond1
SLAVE=yes
vi ifcfg-eth5
DEVICE=eth5
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
MASTER=bond1
SLAVE=yes
2,修改modprobe.conf文件按,添加一行
vi /etc/modprobe.conf
alias bond1 bonding
3,重启网络
service network restart
4,查看网络的状态
dtydb2 ~]$ cat /proc/net/bonding/bond2
Ethernet Channel Bonding Driver: v3.4.0 (October 7, 2008)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 5c:f3:fc:da:71:5c
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 5c:f3:fc:da:71:5e
vi ifcfg-bond1
DEVICE=bond1
BOOTPROTO=static
IPADDR=10.4.124.*
NETMASK=255.255.255.224
GATEWAY=10.4.124.*
ONBOOT=YES
TYPE=Ethernet
USERCTL=no
BONDING_OPTS="miimon=100 mode=1"
vi ifcfg-eth4
DEVICE=eth4
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
MASTER=bond1
SLAVE=yes
vi ifcfg-eth5
DEVICE=eth5
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
MASTER=bond1
SLAVE=yes
2,修改modprobe.conf文件按,添加一行
vi /etc/modprobe.conf
alias bond1 bonding
3,重启网络
service network restart
4,查看网络的状态
dtydb2 ~]$ cat /proc/net/bonding/bond2
Ethernet Channel Bonding Driver: v3.4.0 (October 7, 2008)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 5c:f3:fc:da:71:5c
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 5c:f3:fc:da:71:5e
相关文章推荐
- 如何在rhel5环境下配置网卡绑定
- RHEL6.4双网卡绑定配置诀窍
- RHEL6子接口及双网卡绑定配置
- RHEL5系统配置双网卡绑定
- rhel5下双网卡绑定做failover脚本
- RHEL5下ipw2100无线网卡驱动安装及配置
- rh436 - 网卡重命名/网卡绑定(rhel5.5)
- linux配置bond双网卡绑定
- RHEL7/CentOS7双网卡绑定-Network Teaming
- LAB_RHEL5下sendmail+dovecot+openwebmail邮件系统配置
- Centos7 / RHEL 7 双网卡绑定
- 网卡绑定配置
- RHEL5下unixODBC 与 sqliteodbc 连接配置
- linux系统配置网卡绑定
- Linux环境下配置虚拟ip,方法2:单网卡绑定多IP
- Linux网卡配置与绑定
- RHEL5下Squid+IPtables经典案例(透明代理+防火墙配置)
- Windows Server 2012 R2配置双网卡绑定
- Linux网卡配置与绑定
- RHEL6和RHEL5中的网卡配置的差异-NetworkManager