拓扑图
路由器设置
Router#sh run
Building configuration...
Current configuration : 883 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
no aaa new-model
memory-size iomem 5
!
ip cef
ip name-server 192.168.121.210
!
interface FastEthernet0/0
ip address 172.16.0.1 255.255.0.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 192.168.121.233 255.255.255.0
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
no ip http server
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 192.168.121.1
!
ip nat pool Net1 192.168.121.250 192.168.121.254 netmask 255.255.255.0
ip nat inside source list 1 pool Net1
!
access-list 1 permit 172.16.0.0 0.0.0.255
!
control-plane
!
line con 0
line aux 0
line vty 0 4
login
!
end
本文转自daniel8294 51CTO博客,原文链接:http://blog.51cto.com/acadia627/773293,如需转载请自行联系原作者