问题描述:
静态外网IP:219.222.82.210 网关219.222.82.214
内网共享IP:192.168.200段
内网网关:192.168.200.252
看看下面有错误吗?
配置命令
en
conf t
interface FastEthernet0/0 (外网配置)
ip address 219.222.82.210 255.255.255.248
ip nat outside
half-duplex
interface FastEthernet0/1 (内网配置)
ip address 192.168.200.252 255.255.255.0
ip nat inside
speed auto
ip nat pool GOOD 219.222.82.210 219.222.82.210 netmask 255.255.255.248 (设置外网可用地址池,只有一个IP也可以)
ip nat inside source list 1 pool GOOD overload (允许GOOD被复用)
ip classless
ip route 0.0.0.0 0.0.0.0 219.222.82.214(设置网关)
access-list 1 permit 192.168.200.0 0.0.0.255 (设置内网网段)
exit
end
问题解答:
学习学习
别忘了端口no shutdown