当前位置:网站首页 > 网络设备调试 正文 网络设备调试

华为交换机基础命令

frank 2025-09-01 22:32:26 网络设备调试 1 ℃ 0 评论

1. 修改时间

clock datetime 12:00:00 2024-04-16

2.配置时区

clock timezone BJ add 08:00:00

3.查看时区和时间

display clock 或者dis clock

4.配置交换机远程ip地址

sys #进入用户界面(system-view)
int Vlanif 1
ip add 192.168.10.254 24

5.关闭配置时的弹出信息

undo info-center enable

6.关闭干扰消息

undo terminal monitor  #用户视图下执行

7.配置交换机console口永不超时

#在系统视图下执行
user-interface console 0  #配置console 0
idle-timeout 0 #配置永不超时

8. 配置console口的密码

#系统视图下执行
user-interface console 0
authentication-mode password

华为交换机基础命令

9.设置3A认证模式

sys #首先进入系统视图
user-interface console 0  #进入console 0
authentication-mode aaa #设置aaa模式
quit #退出到系统视图
aaa #进入aaa模式
local-user admin password simple 123456 #创建用户和密码
local-user admin service-type terminal #允许进入终端

华为交换机基础命令

10. 配置端口带宽以及端口全双工

华为交换机基础命令

11. 查看MAC地址表

display mac-address

华为交换机基础命令

华为交换机基础命令

12. 绑定mac地址

mac-address static 5489-98F9-10B8 Ethernet 0/0/1 vlan 1

华为交换机基础命令

13. 保存配置

save #在用户视图执行

华为交换机基础命令

14.查询保存的配置

display current-configuration

版权说明:如非注明,本站文章均为 扬州驻场服务-网络设备调试-监控维修-南京泽同信息科技有限公司 原创,转载请注明出处和附带本文链接

请在这里放置你的在线分享代码
«    2025年9月    »
1234567
891011121314
15161718192021
22232425262728
2930
搜索
最新留言
    文章归档
    网站收藏
    友情链接