标签:pat nat
PAT(port address translation,端口地址转换)是NAT(network address translation,网络地址转换)最常用的一种实现 方式。NAT通过将企业内部的私有IP地址转换为全球唯一的公网IP地址,使内部网络可以连接外网(internet),而PAT可以 在上述转换过程中,实现企业内网的多个私有IP对一个或是多个IP复用,从而实现IP地址的节约.
#Route0上配置 int g0/0 ip add 192.168.1.254 255.255.255.0 no shutdown ip nat inside int g0/1 ip add 76.74.174.166 255.255.255.0 no shutdown ip nat outside ip route 0.0.0.0 0.0.0.0 g0/1 access-list 1 permit 192.168.1.0 0.0.0.255 ip nat inside source list 1 interface g0/0 overload ip nat inside source static tcp 192.168.1.10 80 76.74.174.166 80 ip nat inside source static tcp 192.168.1.20 21 76.74.174.166 21
本文出自 “吴善强” 博客,请务必保留此出处http://shanqiangwu.blog.51cto.com/8067564/1651605
标签:pat nat
原文地址:http://shanqiangwu.blog.51cto.com/8067564/1651605