绑定网络还原

来源:互联网 发布:梯级水电站优化调度 编辑:程序博客网 时间:2024/06/05 12:48
1、删除/etc/modprobe.d/dist.conf中
最后几行:
alias bondx bonding
options bondx mode=x miimon=100
如果没有可以忽略
2、删除所有跟bonx有关的网卡配置文件
开发、测试环境一般保留ifcfg-bond0:**,用作外网连接
3、还原所有被绑定网卡的配置文件
配置文件的备份一般是ifcfg-emx.bak
如果没有,要进入文件查看是否存在如下内容
MASTER="bondx"
SLAVE="yes"
如果有,请删除
4、执行如下命令
echo -bondx > /sys/class/net/bonding_masters
5、重启网络
service network restart
原创粉丝点击