码迷,mamicode.com
首页 > 其他好文 > 详细

外网用户远程控制内部网络设备

时间:2019-05-13 22:45:23      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:账号   .com   def   protoc   acl   global   网络   net   prot   

外网用户远程控制内部网络设备 SW1,用eNSP模拟内外网简易模式,新建拓扑如下
技术图片
思路:
1.配置SW1的telnet服务,账号,密码;
2.配置SW1的管理IP和默认路由;
3.配置R1的easy IP和NAT server;
4.在R2通过telnet验证;

步骤:
Sw1:
[sw1]vl 10
[sw1-vlan10]q
[sw1]port-group group-member g0/0/1 to g0/0/3
[sw1-port-group]port link-type access
[sw1-port-group]port default vlan 10
[sw1-port-group]q
[sw1]user-interface vty 0 4
[sw1-ui-vty0-4]user privilege level 3
[sw1-ui-vty0-4]authentication-mode aaa
[sw1-ui-vty0-4]aaa
[sw1-aaa]local-user 123 password cipher 666
[sw1-aaa]local-user 123 service-type telnet
[sw1-aaa]int vl 10
[sw1-Vlanif10]ip add 192.168.10.100 24
[sw1-Vlanif10]q
[sw1]ip route-static 0.0.0.0 0.0.0.0 192.168.10.254

Ar1:
[ar1]acl 2000
[ar1-acl-basic-2000]rule 10 permit source 192.168.10.0 0.0.0.255
[ar1-acl-basic-2000]int g0/0/1
[ar1-GigabitEthernet0/0/1]nat outbound 2000
[ar1-GigabitEthernet0/0/1]nat server protocol tcp global 100.1.1.10 2587 inside
192.168.10.100 23

Ar2:
<ar2>telnet 100.1.1.10 2587

外网用户远程控制内部网络设备

标签:账号   .com   def   protoc   acl   global   网络   net   prot   

原文地址:https://blog.51cto.com/14310020/2394028

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!