配置如下:
Router(config)#int f0/0
Router(config-if)#ip add 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
Router(config-if)#exi
Router(config)#int f1/0
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
Router(config-if)#exi
Router(config)#int f7/0
Router(config-if)#ip address 192.168.3.1 255.255.255.0
Router(config-if)#ip nat inside
Router(config-if)#no shutdown
Router(config-if)#exi
Router(config)#int s2/0
Router(config-if)#ip address 202.192.32.1 255.255.255.0
Router(config-if)#ip nat outside
Router(config)#int s2/0
Router(config-if)#no shutdown
Router(config-if)#ex
Router(config)#ip nat pool nat 202.192.32.1 202.192.32.13 netmask 255.255.255.240
Router(config)#access-list 10 permit 192.168.1.0 0.0.0.255
Router(config)#access-list 10 permit 192.168.2.0 0.0.0.255
Router(config)#access-list 10 permit 192.168.3.0 0.0.0.255
Router(config)#ip nat inside source list 10 pool nat overload
Router(config)#ip dhcp pool 1
Router(dhcp-config)#network 192.168.1.0 255.255.255.0
Router(dhcp-config)#exi
Router(config)#ip dhcp pool 1
Router(dhcp-config)#network 192.168.1.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.1.1
Router(config)#ip dhcp pool 2
Router(dhcp-config)#net
Router(dhcp-config)#network 192.168.2.0 255.255.255.0
Router(dhcp-config)#de
Router(dhcp-config)#default-router 192.168.2.1
Router(dhcp-config)#exi
Router(config)#ip dh
Router(config)#ip dhcp po
Router(config)#ip dhcp pool 3
Router(dhcp-config)#ne
Router(dhcp-config)#network 192.168.3.0 255.255.255.0
Router(dhcp-config)#'de
Router(dhcp-config)#de
Router(dhcp-config)#default-router 192.168.3.1
Router(dhcp-config)#ex
Router(config)#ip ro
Router(config)#ip route 0.0.0.0 0.0.0.0 202.192.32.14
转载于:https://blog.51cto.com/3502539/983850