interface FastEthernet0/0
description *** Internet ***
ip address 218.15.164.100 255.255.255.224
ip nat outside
duplex auto
speed auto
!
interface FastEthernet0/1
description *** Cernet ***
ip address 125.89.154.130 255.255.255.252
ip nat outside
duplex auto
speed auto
!
interface Ethernet1/0
description *** Lan ***
ip address 192.168.254.1 255.255.240.0
ip nat inside
ip policy route-map isp
full-duplex
!
ip nat inside source list 1 interface FastEthernet0/0 overload
ip nat inside source list 2 interface FastEthernet0/1 overload
ip classless
ip route 192.168.0.0 255.255.0.0 192.168.254.2
no ip http server
!
access-list 1 permit any
access-list 2 permit any
access-list 101 permit ip any 218.15.164.96 0.0.0.31
access-list 101 permit ip any 125.59.154.128 0.0.0.3
教育网的IP
access-list 110 permit ip any 203.91.120.0 0.0.7.255
access-list 110 permit ip any 202.38.192.0 0.0.63.255
access-list 110 permit ip any 121.248.0.0 0.3.255.255
...........
........
access-list 120 permit ip any any
route-map isp deny 5
match ip address 101
!
route-map isp permit 10
match ip address 110
set ip next-hop 教育网网关 电信网关
!
route-map isp permit 20
match ip address 120
set ip next-hop 电信网关 教育网网关
本文转自 gehailong 51CTO博客,原文链接:http://blog.51cto.com/gehailong/301139,如需转载请自行联系原作者