- 论坛徽章:
- 5
|
看到网上很多CISCO的多ISP策略路由都是基于源IP的,严格的说这可以叫做是多ISP分流。这显然不能满足我们的要求。现在很多的客户都实现了多ISP接入(具有中国特色的社会主义网络吗)实现策略路由,看到市面上能够有具体的实施方法无非是LINUX,routeros,硬件的多WAN口路由器等,还没有关于CISCO产品如何实现的方法。其实CISCO早在N年前的产品中就已经有了,也许是没有人考虑,也许是大牛们不屑于考虑吧!那就让我考虑一下吧:::
下面是我的具体的配置:
2、 各路由器的主要配置:
1) wangtong:
Current configuration : 939 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname wangtong
!
boot-start-marker
boot-end-marker
!
no aaa new-model
memory-size iomem 5
!
ip cef
no ip domain lookup
!
interface Serial0/0
ip address 10.0.0.1 255.255.255.252
serial restart-delay 0
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
interface FastEthernet1/0
ip address 172.16.0.1 255.255.255.0
duplex auto
speed auto
no keepalive
!
interface FastEthernet2/0
ip address 172.16.1.1 255.255.255.0
duplex auto
speed auto
no keepalive
!
ip http server
!
control-plane
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end
wangtong#
2) dianxian:
Current configuration : 938 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname dianxin
!
boot-start-marker
boot-end-marker
!
no aaa new-model
memory-size iomem 5
!
ip cef
no ip domain lookup
!
!
interface Serial0/0
ip address 10.0.1.1 255.255.255.252
serial restart-delay 0
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
interface FastEthernet1/0
ip address 172.17.0.1 255.255.255.0
duplex auto
speed auto
no keepalive
!
interface FastEthernet2/0
ip address 172.17.1.1 255.255.255.0
duplex auto
speed auto
no keepalive
!
ip http server
!
control-plane
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end
3) liantong:
Current configuration : 939 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname liantong
!
boot-start-marker
boot-end-marker
!
no aaa new-model
memory-size iomem 5
!
ip cef
no ip domain lookup
!
!
interface Serial0/0
ip address 10.0.2.1 255.255.255.252
serial restart-delay 0
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
interface FastEthernet1/0
ip address 172.18.0.1 255.255.255.0
duplex auto
speed auto
no keepalive
!
interface FastEthernet2/0
ip address 172.18.1.1 255.255.255.0
duplex auto
speed auto
no keepalive
!
ip http server
!
control-plane
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end
4) tietong:
Current configuration : 938 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname tietong
!
boot-start-marker
boot-end-marker
!
no aaa new-model
memory-size iomem 5
!
ip cef
no ip domain lookup
!
!
interface Serial0/0
ip address 10.0.3.1 255.255.255.252
serial restart-delay 0
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
interface FastEthernet1/0
ip address 172.19.0.1 255.255.255.0
duplex auto
speed auto
no keepalive
!
interface FastEthernet2/0
ip address 172.19.1.1 255.255.255.0
duplex auto
speed auto
no keepalive
!
ip http server
!
control-plane
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end
5) jiaoyu
Current configuration : 630 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname jiaoyu
!
boot-start-marker
boot-end-marker
!
no aaa new-model
memory-size iomem 5
!
ip cef
no ip domain lookup
!
!
interface FastEthernet0/0
ip address 10.0.4.1 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 100.100.100.1 255.255.255.0
duplex auto
speed auto
no keepalive
!
ip http server
!
control-plane
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
end
6) PR
Current configuration : 2715 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname PR
!
boot-start-marker
boot-end-marker
!
no aaa new-model
memory-size iomem 5
!
ip cef
no ip domain lookup
!
!
interface Serial0/0
ip address 10.0.0.2 255.255.255.252
ip nat outside
ip virtual-reassembly
serial restart-delay 0
!
interface Serial0/1
ip address 10.0.1.2 255.255.255.252
ip nat outside
ip virtual-reassembly
serial restart-delay 0
!
interface Serial0/2
ip address 10.0.2.2 255.255.255.252
ip nat outside
ip virtual-reassembly
serial restart-delay 0
!
interface Serial0/3
ip address 10.0.3.2 255.255.255.252
ip nat outside
ip virtual-reassembly
serial restart-delay 0
!
interface FastEthernet1/0
ip address 192.168.0.254 255.255.255.0
ip nat inside
ip virtual-reassembly
ip policy route-map pr
duplex auto
speed auto
!
interface FastEthernet2/0
ip address 192.168.1.254 255.255.255.0
ip nat inside
ip virtual-reassembly
ip policy route-map pr
duplex auto
speed auto
!
interface FastEthernet3/0
ip address 10.0.4.2 255.255.255.252
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
ip http server
!
ip nat inside source list 101 interface Serial0/0 overload
ip nat inside source list 102 interface Serial0/1 overload
ip nat inside source list 103 interface Serial0/2 overload
ip nat inside source list 104 interface Serial0/3 overload
ip nat inside source route-map jiaoyu interface FastEthernet3/0 overload
!
access-list 1 permit 192.168.0.0 0.0.0.255
access-list 1 permit 192.168.1.0 0.0.0.255
access-list 101 permit ip any 172.16.1.0 0.0.0.255
access-list 101 permit ip any 172.16.0.0 0.0.0.255
access-list 101 permit ip any 10.0.0.0 0.0.0.3
access-list 102 permit ip any 172.17.0.0 0.0.0.255
access-list 102 permit ip any 172.17.1.0 0.0.0.255
access-list 102 permit ip any 10.0.1.0 0.0.0.3
access-list 103 permit ip any 172.18.1.0 0.0.0.255
access-list 103 permit ip any 172.18.0.0 0.0.0.255
access-list 103 permit ip any 10.0.2.0 0.0.0.3
access-list 104 permit ip any 172.19.0.0 0.0.0.255
access-list 104 permit ip any 172.19.1.0 0.0.0.255
access-list 104 permit ip any 10.0.3.0 0.0.0.3
!
route-map jiaoyu permit 10
match interface FastEthernet3/0 #此行可以省略
!
route-map pr permit 10
match ip address 101
set interface Serial0/0
!
route-map pr permit 20
match ip address 102
set interface Serial0/1
!
route-map pr permit 30
match ip address 103
set interface Serial0/2
!
route-map pr permit 40
match ip address 104
set interface Serial0/3
!
route-map pr permit 50
set ip next-hop 10.0.4.1
!
control-plane
!
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
end |
|