华为eNSP模拟器— telnet实验
作者:互联网
华为eNSP模拟器—telnet实验
一、实验一:
- 路由交换之间实现telnet登陆
- 实验拓扑
- 实验目的:
- 路由器作为 telnet 服务器
- 交换机作为客户端去连接路由器
- 实验步骤:
- 路由器配置
<Huawei>system-view
[Huawei]sysname Route
[Route]interface GigabitEthernet0/0/0
[Route-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[Route-GigabitEthernet0/0/0]quit
[Route]user-interface vty 0 4 (开放端口,最多允许个用户同时登陆)
[Route-ui-vty0-4]authentication-mode password (设置登陆模式为密码认证)
[Route-ui-vty0-4]set authentication password cipher 123456 (设置登陆密码,且为加密的类型)
[Route-ui-vty0-4]user privilege level 3 (设置用户登陆后权限等级为3)
[Route-ui-vty0-4]quit
[Route]telnet server enable (开启 telent 服务)
[Route]return
- 交换机配置
<Huawei>system-view
[Huawei]sysname Switch
[Switch]interface Vlanif 1
[Switch-Vlanif1]ip address 192.168.1.10 24 (需要配上vlan1的地址,否则telnet不上)
[Switch-Vlanif1]return
<Switch>ping 192.168.1.1 (测试与路由器的连通性)
PING 192.168.1.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.1: bytes=56 Sequence=1 ttl=255 time=70 ms
Reply from 192.168.1.1: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 192.168.1.1: bytes=56 Sequence=3 ttl=255 time=50 ms
Reply from 192.168.1.1: bytes=56 Sequence=4 ttl=255 time=50 ms
Reply from 192.168.1.1: bytes=56 Sequence=5 ttl=255 time=30 ms
--- 192.168.1.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/46/70 ms
<Switch>telnet 192.168.1.1 (telent登陆需要在用户视图下连接)
具体演示如下:
- 交换连接:在路由器上 telnet 连接交换机
- 交换机配置
<Switch>system-view
[Switch]user-interface vty 0 4
[Switch-ui-vty0-4]authentication-mode password
[Switch-ui-vty0-4]set authentication password simple abc123 (设置登陆密码,密码为明文方式)
[Switch-ui-vty0-4]user privilege level 3
[Switch-ui-vty0-4]quit
[Switch]telnet server enable
- 在路由器上连接测试
标签:eNSP,1.1,Route,192.168,Switch,telnet,vty0,模拟器 来源: https://www.cnblogs.com/itwangqiang/p/14633258.html