1.帮助功能和命令自动补全功能
在系统中输入命令时,问号是通配符,Tab键是自动补全命令的快捷键。
<R1>?
User view commands:
arp-ping ARP-ping
autosave <Group> autosave command group
backup Backup information
<R1>dis?
display Display information
<R1>dis #按TAB键
<R1>display
2.华为路由器的接口默认都是开启的。
1)关闭用户界面的超时断连功能
[R1-ui-console0]idle-timeout 0 0
2)命令用来去使能终端显示信息中心发送信息的功能
<Huawei>undo terminal monitor
3.语言模式
<Huawei>language-mode English
Change language mode, confirm? [Y/N] y
Info: Succeeded to change language mode.
Jan 1 2023 10:19:09-08:00 Huawei %%01CMD/4/LAN_MODE(l)[0]:The user chose Y when deciding whether to change the language mode.
<Huawei>language-mode Chinese
Change language mode, confirm? [Y/N] y
Jan 1 2023 10:19:19-08:00 Huawei %%01CMD/4/LAN_MODE(l)[1]:The user chose Y when deciding whether to change the language mode.
ʽ<Huawei>
真机AR2220不支持修改语言模式
模拟器上所有的路由器上不支持
模拟器上所有的交换机都支持(要使用默认的putty,CRT显示为乱码)
4.修改主机名
<Huawei>system-view #进入系统视图模式
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1 #设置名称
[R1]
5.查看当前视图下的配置
[R1]display this
[V200R003C00]
sysname R1
6.查看当前配置
[R1]display current-configuration
[V200R003C00]
sysname R1
snmp-agent local-engineid 800007DB03000000000000
7.查看最近的10条历史命令
[R1]display history-command
display current-configuration
display this
sysname R1
system-view
quit
return
aaa
user-interface vty 0
vlan 10
acl 2000
8.查看系统日志
[R1]display logbuffer
Logging buffer configuration and contents: enabled
Allowed max buffer size: 1024
Actual buffer size: 512
Channel number: 4, Channel name: logbuffer
9.设置时区、时间
<R1>clock timezone BJ add 08:00:00
<R1>clock datetime 23:08:30 2022-12-31
<R1>display clock
2022-12-31 23:08:39
Saturday
Time Zone(BJ) : UTC+08:00
10.配置标题消息
1)设置用户登录前显示的消息
<R1>system-view
[R1]header login information "Welcome to dsrw.com!"
2)设置用户登录后显示的消息
[R1]header shell information "tel:18129307393"
11.状态信息查询
1)显示系统版本
[R1]display version
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.130 (AR2200 V200R003C00)
Copyright (C) 2011-2012 HUAWEI TECH CO., LTD
Huawei AR2220 Router uptime is 0 week, 0 day, 0 hour, 17 minutes
BKP 0 version information:
1. PCB Version : AR01BAK2A VER.NC
2. If Supporting PoE : No
3. Board Type : AR2220
4. MPU Slot Quantity : 1
5. LPU Slot Quantity : 6
2)显示已连接终端用户
[R1]display users
User-Intf Delay Type Network Address AuthenStatus AuthorcmdFlag
+ 0 CON 0 00:00:00 pass Username : Unspecified
3)显示设备所有状态信息
[R1]display diagnostic-information
12.super命令
1)配置低级别用户切换到高级别用户的认证密码
[R1]super password cipher dsrw.com
2)删除低级别用户切换到高级别用户的认证密码
[R1]undo super password
13.console口密码设置
路由器:
<R1>system-view
[R1]user-interface console 0
[R1-ui-console0]authentication-mode password
Please configure the login password (maximum length 16):dsrw.com
[R1-ui-console0]quit
[R1]quit
<R1>quit
Configuration console exit, please press any key to log on
Login authentication
Password:
<R1>
删除密码:
[R1]user-interface console 0
[R1-ui-console0]undo authentication-mode
交换机:
[Huawei-ui-console0]system-view
[Huawei-ui-console0]user-interface console 0
[Huawei-ui-console0]authentication-mode password
明文密码:
[Huawei-ui-console0]set authentication password simple dsrw.com
删除密码:
[Huawei-ui-console0]undo set authentication password
密文密码:
[Huawei-ui-console0]set authentication password cipher dsrw.com
删除密码:
[Huawei-ui-console0]undo set authentication password
14.Telnet认证
1)普通密码Telnet认证
<R1>system-view
Enter system view, return user view with Ctrl+Z.
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):dsrw.com
[R1-ui-vty0-4]user privilege level 3
2)设置认证模式为aaa认证
<R1>system-view
Enter system view, return user view with Ctrl+Z.
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode aaa
[R1-aaa]local-user dsrw password cipher dsrw.com
Info: Add a new user.
[R1-aaa]local-user dsrw privilege level 3
[R1-aaa]local-user dsrw service-type telnet
[R1-aaa]quit
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 255.255.255.0
<R2>telnet 192.168.1.1
<Huawei>system-view
<Huawei>sysname R2
[R2]interface GigabitEthernet 0/0/0
[R2]IP address 192.168.1.2 255.255.255.0
[R2]quit
<R2>telnet 192.168.1.1
Press CTRL_] to quit telnet mode
Trying 192.168.1.1 ...
Connected to 192.168.1.1 ...
Login authentication
Username:dsrw
Password:
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容