linux重启bond丢失

linux重启bond丢失,第1张

linux重启bond丢失

linux重启bond丢失IP

可以尝试重新配置bond,重启网络服务:

1. 首先,编辑/etc/sysconfig/network-scripts/ifcfg-bond0文件,添加如下内容:

DEVICE=bond0

BOOTPROTO=none

ONBOOT=yes

USERCTL=no

IPADDR=192.168.1.100

NETMASK=255.255.255.0

TYPE=Ethernet

BONDING_OPTS=\"mode=1 miimon=100\"

2. 编辑/etc/sysconfig/network-scripts/ifcfg-eth0文件,添加如下内容:

DEVICE=eth0

BOOTPROTO=none

ONBOOT=yes

MASTER=bond0

SLAVE=yes

USERCTL=no

3. 编辑/etc/sysconfig/network-scripts/ifcfg-eth1文件,添加如下内容:

DEVICE=eth1

BOOTPROTO=none

ONBOOT=yes

MASTER=bond0

SLAVE=yes

USERCTL=no

4. 重启网络服务:

# service network restart

[root@localhost ~]# service network restart

Shutting down interface bond0: ERROR: [ipv6_test_device_status] Missing parameter 'device' (arg 1)

[ OK ]

Shutting down interface em2: [ OK ]

Shutting down loopback interface: [ OK ]

Bringing up loopback interface:[ OK ]

Bringing up interface bond0: Device does not seem to be present, delaying initialization.

[FAILED]

Bringing up interface em2: Determining if ip address 10.16.20.157 is already in use for device em2...

解决:

加载bonding模块

modprobe bonding

查看模块是否加载成功:

lsmod | grep bonding

再次重启网卡

service network restart


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/7546518.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-07
下一篇 2023-04-07

发表评论

登录后才能评论

评论列表(0条)

保存