After boot, why do I need to restart networking to bring my network interfaces online?

219 篇文章 2 订阅

 

After boot, why do I need to restart networking to bring my network interfaces online?

 SOLUTION 已验证 - 已更新 2014年七月18日17:18 - 

English 

环境

  • Red Hat Enterprise Linux
  • Manually managed network switch

问题

  • When booting a system running Red Hat Enterprise Linux, the system will be unable to connect to the network or obtain an IP address until the interface is restarted either by a service network restart or ifup ethX, where X is equivalent to the number of the interface.

决议

  • Ensure that portfast mode has been enabled on the switch. If it is not, enable it - typically during the boot process the network initialization process occurs earlier than the switch will allow traffic to pass through to other hosts, and therefore fails before any network connectivity is established. With portfast mode enabled, the switch will allow traffic to flow at a faster rate.
  • To configure your switch to allow this, please refer to your switch's documentation or support organization.

诊断步骤

  • Assuming Cisco IOS, you can check from the switch the portfast mode which should have similar output:

Raw

Port      Vlan  Port-State     Cost   Priority  Fast-Start  Group-Method
--------  ----  -------------  -----  --------  ----------  ------------
 0/1      1     forwarding        19        32  disabled
  • In the above example, the Fast-Start section is disabled, indicating that portfast mode is currently not applied.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值