Linux测试网卡绑定

1.脚本

#! /bin/bash
modprobe -r bonding
modprobe bonding mode=$1
ifconfig bond0 10.10.10.100 netmask 255.255.255.0 up
ifenslave bond0 em3 em4
cat /proc/net/bonding/bond0

2.执行sh XXX.sh #mode

#mode是网卡绑定的模式,无须重起系统,按自己需求修改脚本,加入到/etc/rc.local中可实现网卡bond!


###############################################

迷途小运维原创

转载请注明出处

作者:JOHN

你可能感兴趣的:(Zlinux服务篇)