策略路由之雙出口配置實(shí)例(2)
作者:佚名 
  策略路由大體上分為兩種:一種是根據(jù)路由的目的地址來進(jìn)行的策略稱為:目的地址路由;另一種是根據(jù)路由源地址來進(jìn)行策略實(shí)施的稱為:源地址路由;隨著策略路由的發(fā)展現(xiàn)在有了第三種路由方式:智能均衡的策略方式。
 策略路由雙出口配置調(diào)試
- R2#sh ip policy //顯示應(yīng)用的策略
 - Interface Route map
 - Fa0/0 isp-acc
 - R2#sh route-map isp-test //顯示配置的路由映射圖
 - route-map isp-test, permit, sequence 10
 - Match clauses:
 - ip address (access-lists): 101
 - Set clauses: feedom.net
 - ip default next-hop 123.0.0.3
 - Policy routing matches: 0 packets, 0 bytes
 - route-map isp-test, permit, sequence 20
 - Match clauses:
 - bitscn.com
 - ip address (access-lists): 102
 - Set clauses:
 - ip default next-hop 223.0.0.3
 - Policy routing matches: 0 packets, 0 bytes
 - route-map isp-test, permit, sequence 30 feedom.net
 - Match clauses:
 - Set clauses:
 - default interface Null0
 - Policy routing matches: 0 packets, 0 bytes
 
- R1#traceroute //路由跟蹤
 - Protocol [ip]: //ip流量
 - Target IP address: 100.100.100.100 //目標(biāo)地
 - Source address: 192.168.1.1 //源地址為子網(wǎng)一的***臺(tái)主機(jī)
 - Numeric display [n]: bitscn.com
 - Timeout in seconds [3]:
 - Probe count [3]:
 - Minimum Time to Live [1]:
 - Maximum Time to Live [30]:
 - Port Number [33434]:
 - Loose, Strict, Record, Timestamp, Verbose[none]:
 - Type escape sequence to abort.
 - Tracing the route to 100.100.100.100
 - 1 12.0.0.2 72 msec 216 msec 276 msec
 - 2 123.0.0.3 288 msec 360 msec * //ISP1入口
 - -------------------------------------------------------------------------------
 
- R1# traceroute
 - Protocol [ip]:
 - Target IP address: 100.100.100.100
 - Source address: 192.168.1.2 //源地址為子網(wǎng)一的第二臺(tái)主機(jī)
 - Numeric display [n]:
 - Timeout in seconds [3]:
 - Probe count [3]:
 - Minimum Time to Live [1]:
 - Maximum Time to Live [30]:
 - Port Number [33434]:
 - Loose, Strict, Record, Timestamp, Verbose[none]:
 - Type escape sequence to abort.
 - Tracing the route to 100.100.100.100
 - 1 12.0.0.2 92 msec 188 msec 52 msec
 - 2 123.0.0.3 416 msec 436 msec * //ISP1入口
 - ----------------------------------------------------------------------------------
 
- R1#traceroute
 - Protocol [ip]:
 - Target IP address: 100.100.100.100
 - Source address: 192.168.2.1 //源地址為子網(wǎng)二的***臺(tái)主機(jī)
 - Numeric display [n]:
 - Timeout in seconds [3]:
 - Probe count [3]:
 - Minimum Time to Live [1]:
 - Maximum Time to Live [30]:
 - Port Number [33434]:
 - Loose, Strict, Record, Timestamp, Verbose[none]:
 - Type escape sequence to abort.
 - Tracing the route to 100.100.100.100
 - bitscn.com
 - 1 12.0.0.2 136 msec 40 msec 144 msec
 - 2 223.0.0.3 356 msec * 132 msec //ISP2入口
 - ---------------------------------------------------------
 
- R1#traceroute
 - Protocol [ip]:
 - Target IP address: 100.100.100.100 bitscn.com
 - Source address: 192.168.2.2 //源地址為子網(wǎng)二中第二臺(tái)主機(jī)
 - Numeric display [n]:
 - Timeout in seconds [3]:
 - Probe count [3]:
 - Minimum Time to Live [1]:
 - Maximum Time to Live [30]:
 - Port Number [33434]:
 - Loose, Strict, Record, Timestamp, Verbose[none]:
 - Type escape sequence to abort.
 - Tracing the route to 100.100.100.100
 - 1 12.0.0.2 28 msec 104 msec 200 msec
 - 2 223.0.0.3 300 msec * 196 msec //ISP2入口
 - -----------------------------------------------------
 
策略路由雙出口配置總結(jié)
策略路由雙出口配置實(shí)驗(yàn)就為大家介紹完了,通過以上實(shí)驗(yàn),可以看到子網(wǎng)一(192.168.1.0/24)的流量都經(jīng)過R2-R3的上一條鏈路選擇了ISP1鏈路,子網(wǎng)二(192.168.2.0/24)的流量都經(jīng)過R2-R3的下一條鏈路選擇了ISP2鏈路。所以通過策略路由實(shí)現(xiàn)基于源的供應(yīng)商選擇和網(wǎng)絡(luò)的負(fù)載均衡。
【編輯推薦】
責(zé)任編輯:佚名 
                    來源:
                    Cisco技術(shù)網(wǎng)
 














 
 
 
 
 
 
 