system-view #进去系统视图
[Huawei]sysname lsw1 #修改交换机名称
[lsw1]interface GigabitEthernet 0/0/1 #进去接口视图
[lsw1-GigabitEthernet0/0/1]shutdown # 关闭接口
Ping 192.168.1.2 ping不通
[lsw1-GigabitEthernet0/0/1]undo shutdown #开启接口
Ping 192.168.1.2 ping 通
[lsw1-GigabitEthernet0/0/1]quit #退出系统视图
display current-configuration #查看配置
save #保存交换机配置
The current configuration will be written to the device.
Are you sure to continue?[Y/N] Y
查看是否PING通两台主机
Ping 192.168.1.2
undo terminal monitor #打断终端显示 (防止代码)
交换机设置密码 重启恢复出厂设置配置 闲置时间配置
[lsw1]user-interface console 0 #进去接口视图
[lsw1-ui-console0]set authentication password cipher Taren1 #设置终端密码为Tarenl
[lsw1-ui-console0]quit #快速退出系统视图
Password: Taren1 #输入配置密码
[lsw1]user-interface console 0 #进去(console口)接口视图
[lsw1-ui-console0]idle-timeout 2880 #将闲置时间设置为2880分钟
reset saved-configuration 恢复出厂设置
根据提示输入Y
reboot #重新启动它
第一次保存输入N
第二次输入Y
#成功恢复出厂设置
display version 查看基本信息
华为交换机基础配置
最新推荐文章于 2024-07-19 11:20:14 发布