华为eNSP--7Telnet远程登陆配置实验

eNSP模拟—Telnet远程访问–文件下载连接

华为eNSP--7Telnet远程登陆配置实验_第1张图片

pc1和pc2的DHCP地址配置

R1配置

sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo in en
[Huawei]sys XTT-R1

//接口地址分配
[XTT-R1]int e0/0/1
[XTT-R1-Ethernet0/0/1]ip add 192.168.2.10 24
[XTT-R1-Ethernet0/0/1]int e0/0/0
[XTT-R1-Ethernet0/0/0]ip add 192.168.1.10 24
[XTT-R1-Ethernet0/0/0]int g0/0/0
[XTT-R1-GigabitEthernet0/0/0]ip add 192.168.12.1 24

//为PC1网段创建地址池
[XTT-R1-GigabitEthernet0/0/0]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[XTT-R1]ip pool blue
Info:It's successful to create an IP address pool.
[XTT-R1-ip-pool-blue]network 192.168.1.0 mask 24
[XTT-R1-ip-pool-blue]gateway 192.168.1.10
[XTT-R1-ip-pool-blue]dns-list 192.168.2.100
[XTT-R1-ip-pool-blue]int e0/0/0
[XTT-R1-Ethernet0/0/0]dhcp select global
[XTT-R1-Ethernet0/0/0]dhcp enable

//为PC2网段创建地址池
[XTT-R1]ip pool net2
Info:It's successful to create an IP address pool.
[XTT-R1-ip-pool-net2]network 192.168.3.0 mask 24
[XTT-R1-ip-pool-net2]gateway 192.168.3.10
[XTT-R1-ip-pool-net2]dns-list 192.168.2.100
[XTT-R1-ip-pool-net2]int g0/0/0
[XTT-R1-GigabitEthernet0/0/0]dhcp select global

//将PC2网段地址静态分配给路由器R2与R1路由器连接的  R2路由器的e0/0/0接口
[XTT-R1-GigabitEthernet0/0/0]ip route-static 192.168.3.0 24 192.168.12.2

R2配置

sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo in en
Info: Information center is disabled.

//接口地址分配
[Huawei]int e0/0/0
[Huawei-Ethernet0/0/0]ip add 192.168.12.2 24
[Huawei-Ethernet0/0/0]int e0/0/1
[Huawei-Ethernet0/0/1]ip add 192.168.3.10 24

//在R2的e0/0/1接口上开启转功能
[Huawei-Ethernet0/0/1]dhcp enable
[Huawei]int e0/0/1
[Huawei-Ethernet0/0/1]dhcp select relay
[Huawei-Ethernet0/0/1]dhcp relay server-ip 192.168.12.1

//将R1的所有地址转到R1的g0/0/1接口上
[Huawei-Ethernet0/0/1]ip route-static 0.0.0.0 0.0.0.0 192.168.12.1

连接成功测试

华为eNSP--7Telnet远程登陆配置实验_第2张图片
华为eNSP--7Telnet远程登陆配置实验_第3张图片
华为eNSP--7Telnet远程登陆配置实验_第4张图片
华为eNSP--7Telnet远程登陆配置实验_第5张图片
华为eNSP--7Telnet远程登陆配置实验_第6张图片

Telnet远程配置

R2配置

[Huawei-ui-vty0-4]telnet server enable
[Huawei]aaa
[Huawei-aaa]local-user lz password cipher lz123   //设置user:lz   ; password: lz123
[Huawei-aaa]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode aaa

测试

华为eNSP--7Telnet远程登陆配置实验_第7张图片

数据抓包

  1. 我们的消息是通过R1的g0/0/0或者 R2的e0/0/0对这两个接口抓包都可
  2. 是先打开抓包程序,再发送消息才能够抓取成功
    华为eNSP--7Telnet远程登陆配置实验_第8张图片
    华为eNSP--7Telnet远程登陆配置实验_第9张图片
    华为eNSP--7Telnet远程登陆配置实验_第10张图片
    华为eNSP--7Telnet远程登陆配置实验_第11张图片

你可能感兴趣的:(华为认证)