电工技术基础_电工基础知识_电工之家-电工学习网

欢迎来到电工学习网!

cisco端口映射指令

2017-04-02 14:00分类:电子技术 阅读:

 

cisco端口映射指令
cisco路由器内网接口 s1/0:192.168.1.1 255.255.255.0
外网接口 s1/1:十.0.0.1 255.255.255.0
效劳器IP:192.168.1.1
route#conf t
route(config)#access-list 1 permit 192.168.1.0 255.255.255.0 #树立拜访操控列表预备做net改换
route(config)#ip nat inside source list 1 interface s1/1 #树立net改换,将192.168.1.0 的地址改换为接口s1/1的地址
route(config)#int s1/0 #进入接口办法
route(config-if)#ip nat inside #设定接口办法
route(config-if)#ip nat inside #设定s1/0为nat内部接口
route(config-if)#int s1/1 #进入s1/1的接口办法
route(config-if)#ip nat outside #设定s1/1为nat外部接口
route(config-if)#exit
如今开端端口映射,让外网拜访内网效劳器
route(config)#ip nat inside source static tcp 192.168.1.1 3389 十.0.0.1 3389 extendable
route(config)#ip nat inside source static tcp 192.168.1.1 3389 十.0.0.1 3389 entendable #由于十.0.0.1这个地址现已运用在s1/1接口上并做了nat改换的地址,这儿有必要加上extendable这个要害字,担任报错。假定用别的的外网IP比方十.0.0.2 在这儿就能够不加extendable
route#show ip nat transations #能够检查到端口映射的对应表

上一篇:中兴沟通机vlan差异指令

下一篇:广域网接口与线缆

相关推荐

电工推荐

    电工技术基础_电工基础知识_电工之家-电工学习网
返回顶部