Sequence of options in BONDING_OPTS

博客围绕Red Hat Enterprise Linux 5系统展开,指出使用特定绑定选项时出现错误且设置未应用的问题。原因是部分选项需在其他选项设置后才能应用,初始化脚本按给定选项顺序执行。给出诊断步骤,强调选项需按正确顺序指定,如“miimon”启用后才能指定“downdelay”。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://access.redhat.com/solutions/109693

 SOLUTION 已验证 - 已更新 2012年七月10日15:37 - 

English 

环境

  • Red Hat Enterprise Linux 5

问题

We're getting errors and settings are not applied when using the following options for bonding:

Raw

BONDING_OPTS="mode=802.3ad downdelay=300 miimon=100"

Ordering them differently causes no issues:

Raw

BONDING_OPTS="mode=802.3ad miimon=100 downdelay=300"

决议

This behavior is expected as some options can only applied if others are already set. The init script just iterates through the given options. All options need to be specified in the proper order (e.g. "downdelay" can only be specified after enabling "miimon").

诊断步骤

wrong order: downdelay=300 miimon=100

Raw

[root@fiirisp01 network-scripts]# service network start
Bringing up loopback interface:  [  OK  ]
Bringing up interface bond0:  Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
Loading kernel module for a network device with CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev-bond0 instead
bonding: bond0: setting mode to 802.3ad (4).
bonding: bond0: Unable to set down delay as MII monitoring is disabled
/etc/sysconfig/nbonding: bond0: Setting MII monitoring interval to 100.

Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

correct order: miimon=100 downdelay=300

Raw

[root@fiirisp01 network-scripts]# service network start
Bringing up loopback interface:  [  OK  ]
Bringing up interface bond0:  Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
Loading kernel module for a network device with CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev-bond0 instead
bonding: bond0: setting mode to 802.3ad (4).
bonding: bond0: Setting MII monitoring interval to 100.
bonding: bond0: Setting down delay to 300.

Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 300
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值