nat address-group 1 61.155.59.115 61.155.59.119 //定义地址池
acl number 3000 //定义访问控制列表
rule 1 permit ip
interface Ethernet0/0 //外网
ip address 61.155.59.114 255.255.255.240
nat outbound 3000 address-group 1 // 设置为外 NAT接口 和访问控制
nat server protocol tcp global 61.155.59.116 www inside 172.17.50.116 www
interface Ethernet0/1 //内网
ip address 172.16.50.254 255.255.255.0
access-list 1 permit any
interface FastEthernet 1/0
ip address 222.189.206.70 255.255.255.248
ip nat outside //
no shut
exit
!
interface FastEthernet 1/1
ip address 172.16.0.254 255.255.255.0
ip nat inside //
ip nat inside source list 1 interface FastEthernet 1/0 overload //NAT 转换