双ISP

dx>enable
dx #conf t
dx (config)#interface s0/0
dx (config-if)#ip add 202.101.224.1 255.255.255.252
dx (config-if)#no shut
dx (config)#interface s0/1
dx (config-if)#ip add 202.101.225.1 255.255.255.252
dx (config-if)#no shut
dx (config)#interface lo0
dx (config-if)#ip add 1.1.1.1 255.255.255.0
dx (config-if)#no shut
dx (config-if)#router ospf 1
dx (config-router)#net 202.101.224.1 0.0.0.0 area 0
dx (config-router)#net 202.101.225.1 0.0.0.0 area 0
 
wt>enable
wt #conf t
wt (config)#interface s0/0
wt (config-if)#ip add 202.101.226.1 255.255.255.252
wt (config-if)#no shut
wt (config)#interface s0/1
wt (config-if)#ip add 60.1.1.1 255.255.255.252
wt (config-if)#no shut
wt (config)#interface lo0
wt (config-if)#ip add 2.2.2.2 255.255.255.0
wt (config-if)#no shut
wt (config-if)#router ospf 1
wt (config-router)#net 60.1.1.1 0.0.0.0 area 0
wt (config-router)#net 202.101.226.1 0.0.0.0 area 0
 
 
 
R4>enable
R4#conf t
R4(config)#interface s0/0
R4(config-if)#ip add 202.101.226.2 255.255.255.252
R4(config-if)#no shut
R4(config)#interface s0/1
R4(config-if)#ip add 202.101.225.2 255.255.255.252
R4(config-if)#no shut
R4(config)#interface lo0
R4(config-if)#ip add 4.4.4.4 255.255.255.0
R4(config-if)#no shut
R4(config-if)#router ospf 1
R4(config-router)#net 202.101.225.2 0.0.0.0 area 0
R4(config-router)#net 202.101.226.2 0.0.0.0 area 0
 
 
来源:(http://blog.sina.com.cn/s/blog_6319e27f0100izrd.html) - 双ISP_qiutianming_新浪博客
R3>enable
R3#conf t
R3(config)#interface s0/0
R3(config-if)#ip add 202.101.224.2 255.255.255.252
R3(config-if)#no shut
R3(config)#interface s0/1
R3(config-if)#ip add 60.1.1.2 255.255.255.252
R3(config-if)#no shut
R3(config)#interface f1/0
R3(config-if)#ip add 192.168.1.254 255.255.255.0
R3(config-if)#no shut
R3(config-if)#exit
R3(config)#ip route 0.0.0.0 0.0.0.0 202.101.224.1
R3(config)#ip route 0.0.0.0 0.0.0.0 60.1.1.1
R3(config)#access-list 1 permit 192.168.1.0 0.0.0.255
R3(config)#inter s0/0
R3(config-if)#ip nat outside
R3(config-if)#inter s0/1
R3(config-if)#ip nat outside
R3(config-if)#inter f1/0
R3(config-if)#ip nat inside
R3(config-if)#exit
R3(config)#route-map dx permit 10
R3(config-toute-map)#match ip address 1
R3(config-toute-map)#match interface s0/0
R3(config-toute-map)#exit
R3(config-if)#route-map wt permit 20
R3(config-toute-map)#match ip address 1
R3(config-toute-map)#match interface s0/1
R3(config-toute-map)#exit
R3(config)#ip nat inside source route-map dx interface s0/0 overload
R3(config)#ip nat inside source route-map wt interface s0/1 overload
 
 
 
R5>enable
R5#conf t
R5(config)#inter f0/0
R5(config-if)#ip address 192.168.1.1 255.255.255.0
R5(config-if)#no shut
R5(config-if)#exit
R5(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.254