cisco路由器端口映射 让外网用户能够访问内部网站服务器
发布:大通cms 来源:天津理工大学信息门户 日期:2019年11月11日 阅读:0
尝试怒目 的:
外网用户可以或许拜候内乱部网站办事器
尝试拓扑如下:
R1路由器设置装备摆设如下:
R1>en #进入特权形式
R1#config t #进入全局设置装备摆设形式
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#access-list 1 permit 192.168.1.0 0.0.0.255 #成立拜候操纵列表
R1(config)#ip nat inside source list 1 interface S0/3/0 #成立NAT转换
R1(config)#inter f0/0 #进入接口形式
R
R1(config-if)#inter s0/3/0
R1(config-if)#ip nat outside #设定NAT外部接口
R1(config-if)#exit #退出接口形式
R1(config)#ip nat inside source static tcp 192.168.1.200 80 10.0.0.1 80 #将192.168.1.200 80端口 映射到10.0.0.1 80端口
R1(config)#do show ip nat tra #检查NAT转换环境
Pro Inside global Inside local Outside local Outside global
tcp 10.0.0.1:80 192.168.1.200:80 --- ---
测试成果如下: