今天咱们简单讲解一下内网服务器一对一映射教程,希望对您有所帮助。以下IP地址及映射地址均为举例说明。
内网服务器ip:192.168.1.1
内网网关ip:192.168.1.100
外网映射的ip:222.222.222.222
interface f0/0
ip address 192.168.1.100 255.255.255.0
no shutdown
ip nat inside
interface f0/1
ip address 222.222.222.222 255.255.255.0
ip nat outside
no shutdown
ip nat inside source static 192.168.1.1 222.222.222.222
下面是以80端口为例,配置iP及接口设置一对一映射:
ip nat inside source tcp 192.168.1.1 80 222.222.222.222 80
本文地址:http://www.45fan.com/a/Router/2710.html