华为交换机常用命令(一)

it2025-06-02  7

历史命名查询 display history-command

配置主机名 sys sysname xxx

状态信息查询 display version display users

进入接口模式并查看信息 int g0/0/1 dis this

配置文件管理命令 display saved-configuration #是显示当前保存的配置信息 display current-configuration #是显示当前交换机的配置信息 reset saved-configuration #恢复出厂配置 compare configuration #比较当前配置信息与储存设备中的保存文件是否一致

关闭华为的信息提示中心 undo info-center enable 或者 undo terminal monitor

永不超时 user-interface console 0 idle-timeout 0 0

配置双工及速率命令 sys int g0/0/1 undo negotiation auto #关闭自动协商 speed 100 #速率调至100M duplex full #调至全双工模式,full-Duplex(全双工模式) Half-Duplex(半双工模式)

保存配置 save

设置远程登陆密码 user-interface vty 0 4 #0是初始值,4是结束值。表示可同时打开5个会话进入交换机去配置命令 authenticatin-mode password set authentication password simple 222 user privilege level 3 dis this

最新回复(0)