1.网络拓扑图:
2.网卡绑定:配置文件位置
Bonding interface configuration files /etc/sysconfig/network-scripts
1)touch /etc/sysconfig/network-scripts/ifcfg-bond0
ifcfg-bond0: 文件内容如下:
DEVICE=bond0
IPADDR=192.168.150.18
NETMASK=255.255.255.0
GATEWAY=192.168.150.254
ONBOOT=yes
BOOTPROTO=static
2)touch /etc/sysconfig/network-scripts/ifcfg-eth0
ifcfg-eth0文件内容如下:
DEVICE=eth0
MASTER=bond0
SLAVE=yes
ONBOOT=yes
BOOTPROTO=static
3)touch /etc/sysconfig/network-scripts/ifcfg-eth1
ifcfg-eth1文件内容如下:
DEVICE=eth1
MASTER=bond0
SLAVE=yes
ONBOOT=yes
BOOTPROTO=static3.修改网卡绑定模式:
vim /etc/modprobe.d/bonding.conf
alias bond0 bonding
options bond0 mode=1 miimon=100
0:round-robin
1:active-backup
2:fault tolerance and load balancing
3:broadcast a broadcast mode for fault tolerance
4:802.3ad IEE802.3ad LACP
cat /proc/net/bonding/bond0 查看状态
此文出自东方瑞通邓宏伟老师,转载需注明出处。