显示版本:display version
显示时钟:display clock
设置时钟:clockc datetime 16:00:00 2021-04-22
显示历史命令:display history-command
显示二层所有接口信息:display interface
显示二层某个接口信息:display interface GE0/0/0
显示二层接口缩略信息:display interface brief
显示三层接口缩略信息:display ip interface brief(使用频率很高的)
显示当前模式下的配置:display this(使用频率很高的)
显示当前配置文件:display current-configuration
显示保存配置文件:display saved-configuration
保存配置:save
重启设备:reboot
修改登录标语: [R1]header shell information "welcome to R1"
配置接口ip:[R1] interface g0/0/0
[R1-g0/0/0]ip address 12.1.1.1/24
登录命令:
1.本地password登录
[R1]user-interface console 0
authentication-mode password
set authentication password cipher/simple huawei
idle-time 1 15
2.本地aaa登录
[R1]user-interface console 0
authentication-mode aaa
idle-timeout 1 15
[R1]aaa
[R1-aaa]local-user admin password cipher/simple huawei
[R1-aaa]local-user admin service-type terminal
3.vty远程登录
(1)vty密码认证
[R1]user-interface vty 0 4
authentication-mode password
set authentication password cipher huawei
User privilige level 3
idle-timeout 1 15
(2)vty aaa认证
[R1]user-interface vty 0 4
authentication-mode aaa
User privilige level 3
idle-timeout 1 15
[R1]aaa
[R1-aaa]local-user admin password cipher/simple huawei
[R1-aaa]local-user admin service-type telnet terminal
在R2上面修改R1的配置:<R2>telnet (R1的接口ip地址,交换机则是vlanif接口的ip地址)