安装好eNSP后,点击菜单,工具,注册设备,勾选前三个,点击注册。
打开防火墙,允许应用通过windows防火墙,点击更改设置,把开头为eNSP的都勾上,右边的专用,公用也勾,确定。
路由器操作
操作 | 命令 |
---|---|
从用户视图进入系统视图 | system-view |
从系统视图返回用户视图 | quit |
从任意非用户视图返回用户视图 | return |
从系统视图进入接口试图 | int 接口 |
命令在线帮助 | ?或 关键字 ? |
功能键盘 | 功能 |
---|---|
普通按键 | 字符输入 |
退格键 Backspace | 删除光标位置的前一个字符 |
左光标键或Ctrl+B组合键 | 光标向左移动一个字符位置 |
右光标键或Ctrl+F组合键 | 光标向右移动一个字符位置 |
删除键 Delete | 删除光标位置字符 |
上下光标键 | 显示历史命令 |
Tab键 | 输入不完整的关键字后按Tab键,系统自动执行部分帮助 |
display history-command | 显示历史命令 |
设置路由器主机名 | sysname |
状态信息查询命令
操作 | 命令 |
---|---|
显示系统版本 | display version |
显示已连接的终端用户 | display users |
显示当前视图的运行配置 | display this |
显示设备所有状态信息 | display diagnostic-information |
配置文件管理命令
操作 | 命令 |
---|---|
查看已保存的路由器配置 | display saved-configuration |
查看当前的路由器配置 | display current-configuration |
保存当前配置 | save |
擦除存储设备中路由器配置文件 | reset saved-configuration |
比较配置文件 | compare configuration |
更改ip
<Huawei>sys
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 192.168.1.100 255.255.255.0
打开接口
[Huawei-GigabitEthernet0/0/0]undo shutdown
关闭接口
[Huawei-GigabitEthernet0/0/0]shutdown
通过Telnet进行本地或远程配置
路由器配置
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):123.com #明文密码
[Huawei-ui-vty0-4]set authentication password cipher 456.com #密文密码
[Huawei-ui-vty0-4]user privilege level 3
pc机
Connecting to 192.168.1.100:23...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Login authentication
Password:456.com 密文密码
<Huawei>
练习
配置ip
pc1
AR1
[Huawei-GigabitEthernet0/0/0]ip add 192.168.1.100 255.255.255.0
Jul 15 2020 11:12:00-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
IP on the interface GigabitEthernet0/0/0 has entered the UP state. int
Clound1
直接找一台192.168.1.20的虚拟机打开,并把网关设置为192.168.1.100
ping测试
pc1
PC>ping 192.168.1.20
Ping 192.168.1.20: 32 data bytes, Press Ctrl_C to break
From 192.168.1.20: bytes=32 seq=1 ttl=64 time=63 ms
From 192.168.1.20: bytes=32 seq=2 ttl=64 time=31 ms
From 192.168.1.20: bytes=32 seq=3 ttl=64 time=16 ms
From 192.168.1.20: bytes=32 seq=4 ttl=64 time=31 ms
From 192.168.1.20: bytes=32 seq=5 ttl=64 time=31 ms
Clound1
[root@localhost ~]# ping 192.168.1.10
PING 192.168.1.10 (192.168.1.10) 56(84) bytes of data.
64 bytes from 192.168.1.10: icmp_seq=1 ttl=128 time=65.4 ms
64 bytes from 192.168.1.10: icmp_seq=2 ttl=128 time=29.8 ms
64 bytes from 192.168.1.10: icmp_seq=3 ttl=128 time=37.3 ms
64 bytes from 192.168.1.10: icmp_seq=4 ttl=128 time=24.6 ms
路由器配置远程vty
AR1
<Huawei>sys
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):123.com
[Huawei-ui-vty0-4]set authentication password cipher 123.com
[Huawei-ui-vty0-4]user privilege level 3