华为交换机基础配置

华为交换机基础配置
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 #打断终端显示 (防止代码)
ping的信息
交换机设置密码 重启恢复出厂设置配置 闲置时间配置
[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 查看基本信息

  • 2
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值