华为网络设备使用的操作系统-----VRP通用路由平台
<Huawei>----------------------------
用户视图,只具备查看和调试的权限
<Huawei>system-view-----------
进入系统视图
[Huawei]-----------------------------
系统视图,具备了完整的配置权限
[Huawei]interface GigabitEthernet 0/0/1-----
进入
G0/0/1
接口
[Huawei-GigabitEthernet0/0/1]-----
接口视图
GigabitEthernet-----1000M
FastEthernet---------100M
Ethernet---------------10M
quit----------------------------------
返回上一级
tab-----------------------------------
补全或切换命令
?--------------------------------------
查看帮助
display------------------------------
显示配置、协议的状态等等
display current-configuration--
显示当前正在运行的配置
<SW1>save-------------------------
保存配置(否则设备掉电未保存的所有配置会被清空)
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:<Enter>
Aug 20 2018 14:32:15-08:00 SW1 %%01CFM/4/SAVE(l)[0]:The user chose Y when decidi
ng whether to save the configuration to the device.
Now saving the current configuration to the slot 0.
Save the configuration successfully.
熟练之后可以多使用简写命令,例如:
<Huawei>sy-----system-view
但是需要注意,如果简写对应命令不止唯一一条,可能会无法使用
推荐进入系统视图后首先修改设备的主机名:
[SW1]
常用快捷键:
Ctrl+z-----------------
快速回到用户视图
Ctrl+w----------------
删除一段命令
Ctrl+u-----------------
删除整行命令
—————————————————————————————————————————————
Console
接口加密
防止他人利用
Console
登录方式篡改配置
[SW1]user-interface console 0
[SW1-ui-console0]authentication-mode password
[SW1-ui-console0]set authentication password <simple/cipher> HCNA---------------------HCNA
为登录密码
simple---------
密码以明文方式存储于设备配置中,可能会被他人看见,安全性不高
测试:
Please Press ENTER.
Login authentication
Password:<输入密码>
PS:
输入密码时,光标没有回显
路由器配置:
[R1]user-interface console 0
[R1-ui-console0]authentication-mode password
Please configure the login password (maximum length 16):HCNA
路由器会自动跳出输入密码的提示,输入后自动补上set authentication password这条命令
路由器的密文存储方式只有cipher
①首先需要保证网络设备和终端设备可以正常通信
[R1-GigabitEthernet0/0/0]ip address 192.168.10.1 255.255.255.0
[PC-GigabitEthernet0/0/0]ip address 192.168.10.2 24-------------------(24=255.255.255.0)
PING 192.168.10.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.10.1: bytes=56 Sequence=1 ttl=255 time=140 ms
Reply from 192.168.10.1: bytes=56 Sequence=2 ttl=255 time=10 ms
Reply from 192.168.10.1: bytes=56 Sequence=3 ttl=255 time=10 ms
Reply from 192.168.10.1: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 192.168.10.1: bytes=56 Sequence=5 ttl=255 time=20 ms
[R1]user-interface vty 0 4--------------------------------------------------------0 4
表示最多同时开放
5
个接口提供登录
[R1-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):HCNA
测试:
<PC>telnet 192.168.10.1
Press CTRL_] to quit telnet mode
Trying 192.168.10.1 ...
Connected to 192.168.10.1 ...
Login authentication
HCNA-R&S第一天
2018
年
8
月
20
日
星期一
,
分区
8.20HCNA
的第
1
页
江苏省南京市中山北路26号新晨国际大厦23楼 联系人:冷老师 QQ:2623640877
评论0