当前位置: 代码迷 >> 交换机/路由器 >> 请问:路由器端口映射有关问题
  详细解决方案

请问:路由器端口映射有关问题

热度:450   发布时间:2016-04-29 05:09:03.0
请教:路由器端口映射问题
1个H3C的路由器,2个公网IP(100.100.100.2和100.100.100.3),其中100.100.100.2的IP做为内网用户上外网使用,也是路由器的外网IP地址。现在想将100.100.100.3的IP做为内网WEB和FTP服务器的公网访问地址,WEB服务器内网IP为192.168.10.2,FTP服务器的内网IP为192.168.10.3,请教高手,路由器上应该如何设置?

------解决方案--------------------
nat server protocol tcp global 100.100.100.3 www inside 192.168.19.2 www
nat server protocol tcp global 100.100.100.3 ftp inside 192.168.10.3 ftp
------解决方案--------------------
ip add 100.100.100.2 29
ip add 100.100.100.3 29 sub 
在接口上配个子地址就行了