CISCO 1760 NAT 共享上网设置
假设
外网IP 58.51.A.54 255.255.255.128 58.51.A.1
内网IP 192.168.0.0 255.255.255.0 192.168.0.1
interface Ethernet0/0 (外网配置)
ip address 58.51.A.54 255.255.255.128
ip nat outside
half-duplex
!
interface FastEthernet0/0 (内网配置)
ip address 192.168.0.1 255.255.255.0
ip nat inside
speed auto
!
ip nat pool GOOD58.51.A.54 58.51.A.54 netmask 255.255.255.128 (设置外网可用地址池,只有一个IP也可以)
ip nat inside source list 1 pool GOOD overload (允许GOOD被复用)
ip classless
ip route 0.0.0.0 0.0.0.0 58.51.A.1(设置网关)
no ip http server
!
access-list 1 permit 192.168.0.0 0.0.0.255 (设置内网网段)
!
service dhcp
ip dhcp pool 192.168.0.0/24
network 192.168.0.0 255.255.255.0
default-router 192.168.1.1
dns-server 202.103.0.A
exit
end
line con 0
line aux 0
line vty 0 4