用这台电脑同console线登别的交换机没有问题,登这个交换机一直刷 Automatic configuration attempt: 1824.Interface used: Vlan-interfacel.Enable DHcP client on Vlan-interfacelSet DHcP client identifier: 4ce9e47582ee-VLANo001Vlan-interfacel failed to obtain IP address.Waiting for the next. Automatic configuration attempt: 1825Interface used: Vlan-interfacel.Enable DHcP client on Vlan-interfacelSet DHcP client identifier: 4ce9e47582ee-VLAN0001Vlan-interfacel failed to obtain IP addresswaiting for the next. Automatic configuration attempt: 1826Interface used: Vlan-interfacel.Enable DHcP client on Vlan-interfacelSet DHcP client identifier: 4ce9e47582ee-VLANo001Van-interfacel failed to obtain IP address.Waiting for the next.
S5130 Console 不断打印 Automatic configuration attempt 问题
现象根因
交换机没有下次启动配置文件(startup‑config.cfg 丢失),触发 H3C 自动配置 (Auto‑Config) 功能,反复在 Vlan‑interface1 去 DHCP 请求获取配置文件,疯狂刷屏,把正常命令提示符淹没,你看不到设备提示符,无法输入命令。
Console 线、波特率参数是正常的,你同一条线登别的设备没问题,排除串口硬件问题。
立刻终止刷屏(现场操作)
在 console 界面,看到刷屏的时候,直接敲:
Ctrl+C 或者 Ctrl+D,终止自动配置循环,马上就会出现 <H3C> 用户视图提示符。
⚠️注意:要在串口窗口直接按快捷键,不要复制粘贴。
如果快捷键没反应:敲回车多按几次,再按Ctrl+C。
进入设备之后检查
shell
#查看启动文件,大概率没有下次启动配置文件
display startup
#查看flash存储
dir flash:
两种情况:
情况 1:flash 里面没有 startup‑config.cfg
设备相当于出厂空配置。
shell
#关闭自动配置功能,防止重启再次循环刷屏
system‑view
undo auto‑config enable
save
情况 2:flash 里面有配置文件,但是没有设置为下次启动文件
shell
#指定配置文件作为下次启动
startup saved‑configuration flash:/startup‑config.cfg
system‑view
undo auto‑config enable
save
完整处理步骤总结
Console 窗口,按Ctrl+C终止自动配置刷屏,出现<H3C>提示符。
display startup确认下次启动配置文件状态。
如果有配置文件,设置为下次启动文件;没有配置文件就直接关闭 auto‑config。
全局关闭自动配置:undo auto‑config enable,保存配置save。
重启设备测试:reboot,确认不再跑 DHCP 自动配置。
补充:为什么会出现这个现象
Flash 故障 / 异常断电,startup‑config.cfg配置文件丢失;
之前执行过reset saved‑configuration删除配置,重启后触发自动配置;
版本 BUG,部分 S5130 版本空配置启动后自动配置不会自动超时退出。
⚠️如果 dir flash: 发现 flash 损坏,无法读写,需要处理存储故障,否则 save 保存不了,重启还会复现。
验证命令
shell
display auto‑config
输出显示Automatic configuration is disabled代表关闭成功。
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论