RHEL6.5双网卡绑定

 

        RHEL6.5双网卡绑定 

1.创建bond0文件

[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
NM_CONTROLLED=no
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.10.1.80
NETMASK=255.255.255.0
GATEWAY=10.10.1.100
DNS1=8.8.8.8
USERCTL=no
 
2.修改eth0配置文件
[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="static"
HWADDR="3C:08:F6:DA:04:B4"
IPV6INIT="yes"
MTU="1500"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="22a3407e-a95e-4ea8-ab3a-a8855049d9ba"
MASTER=bond0
SLAVE=yes
USERCTL=no
 

3.修改eth1网卡配置文件
[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
HWADDR=3C:08:F6:DA:04:B5
TYPE=Ethernet
UUID=e7073d1b-8b20-4f32-9e79-09e0f4d8ba31
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
MASTER=bond0
SLAVE=yes
USERCTL=no
 
4.创建加载模块
[root@localhost ~]# vim /etc/modprobe.d/bond.conf
alias bond0 bonding
options bond0 miimon=100 mode=1


5、重�⒕W卡

service network restart


本文出自 “�蛉����” 博客,谢绝转载!

你可能感兴趣的:(双网卡绑定,rhel6.5)