激情五月天婷婷,亚洲愉拍一区二区三区,日韩视频一区,a√天堂中文官网8

<ul id="buwfs"><strike id="buwfs"><strong id="buwfs"></strong></strike></ul>
    <output id="buwfs"></output>
  • <dfn id="buwfs"><source id="buwfs"></source></dfn>
      <dfn id="buwfs"><td id="buwfs"></td></dfn>
      <div id="buwfs"><small id="buwfs"></small></div>
      <dfn id="buwfs"><source id="buwfs"></source></dfn>
      1. <dfn id="buwfs"><td id="buwfs"></td></dfn>
        始創(chuàng)于2000年 股票代碼:831685
        咨詢熱線:0371-60135900 注冊有禮 登錄
        • 掛牌上市企業(yè)
        • 60秒人工響應(yīng)
        • 99.99%連通率
        • 7*24h人工
        • 故障100倍補(bǔ)償
        全部產(chǎn)品
        您的位置: 網(wǎng)站首頁 > 幫助中心>文章內(nèi)容

        策略路由之雙出口配置實例

        發(fā)布時間:  2012/7/4 19:13:59

        策略路由是一種比基于目標(biāo)網(wǎng)絡(luò)進(jìn)行路由更加靈活的數(shù)據(jù)包路由轉(zhuǎn)發(fā)機(jī)制。應(yīng)用了策略路由,路由器將通過路由圖決定如何對需要路由的數(shù)據(jù)包進(jìn)行處理,路由圖決定了一個數(shù)據(jù)包的下一跳轉(zhuǎn)發(fā)路由器。 下面讓我們通過一個實驗來看一下雙出口配置是怎樣的過程。

        策略路由實驗拓樸:

        策略路由實驗要求:

        1、R1連接本地子網(wǎng),R2為邊緣策略路由器,R3模擬雙ISP接入的Internet環(huán)境。

        2、要求R1所連接的局域網(wǎng)部分流量走R2-R3間上條鏈路(ISP1鏈路),部分流量走R2-R3間下條鏈路(ISP2鏈路)從而實現(xiàn)基于源的供應(yīng)商鏈路選擇和網(wǎng)絡(luò)負(fù)載均衡。

        各路由器配置如下:

         

        1. R1#sh run            //路由器R1的配置  
        2.  
        3. interface Loopback0                                               //模擬子網(wǎng)一:192.168.1.0/24  
        4.  
        5. ip address 192.168.1.1 255.255.255.0                     //模擬子網(wǎng)中第一臺億恩科技主機(jī)  
        6.  
        7. ip address 192.168.1.2 255.255.255.0 secondary    //模擬子網(wǎng)中第二臺億恩科技主機(jī)  
        8.  
        9. !  
        10.  
        11. interface Loopback2                                              //模擬子網(wǎng)二:192.168.2.0/24  
        12.  
        13. ip address 192.168.2.1 255.255.255.0  
        14.  
        15. ip address 192.168.2.2 255.255.255.0 secondary  
        16.  
        17. !  
        18.  
        19. interface FastEthernet0/0  
        20.  
        21. ip address 12.0.0.1 255.255.255.0  
        22.  
        23. bitscn.com  
        24.  
        25. !  
        26.  
        27. !  
        28.  
        29. router rip                            //通過RIP協(xié)議配置網(wǎng)絡(luò)的連通性  
        30.  
        31. version 2 bitscn.com  
        32.  
        33. network 192.168.1.0  
        34.  
        35. network 192.168.1.0  
        36.  
        37. network 12.0.0.0  
        38.  
        39. R3#sh run                           //路由器R3的配置  
        40.  
        41. Building configuration  
        42.  
        43. interface Loopback0                 //模擬一個連接目標(biāo)  
        44.  
        45. description to internet  
        46.  
        47. ip address 100.100.100.100 255.255.255.0  
        48.  
        49. !  
        50.  
        51. interface Serial1/1                    //模擬ISP1的接入端口  
        52.  
        53. ip address 123.0.0.3 255.255.255.0  
        54.  
        55. serial restart-delay 0  
        56.  
        57. !  
        58.  
        59. interface Serial1/3                  //模擬ISP2的接入端口  
        60.  
        61. bitscn.com  
        62.  
        63. ip address 223.0.0.3 255.255.255.0  
        64.  
        65. serial restart-delay 0  
        66.  
        67. !  
        68.  
        69. router rip  
        70.  
        71. version 2  
        72.  
        73. network 100.0.0.0  
        74.  
        75. network 123.0.0.0  
        76.  
        77. network 223.0.0.0  
        78.  
        79. no auto-summary  
        80.  
        81. !  
        82.  
        83. end  
        84.  
        85. R2#sh run                      //策略路由器R2的配置  
        86.  
        87. Building configuration...  
        88.  
        89. interface FastEthernet0/0  
        90.  
        91. ip address 12.0.0.2 255.255.255.0  
        92.  
        93. ip policy route-map isp-test      //在接口上啟用策略路由isp-test進(jìn)行流量控制  
        94.  
        95. duplex half  
        96.  
        97. !  
        98.  
        99. interface Serial1/1  
        100.  
        101. ip address 123.0.0.1 255.255.255.0  
        102.  
        103. serial restart-delay 0  
        104.  
        105. ! bitscn_com  
        106.  
        107. interface Serial1/3  
        108.  
        109. ip address 223.0.0.1 255.255.255.0 bitscn.com  
        110.  
        111. serial restart-delay 0  
        112.  
        113. router rip  
        114.  
        115. version 2  
        116.  
        117. network 12.0.0.0  
        118.  
        119. network 123.0.0.0  
        120.  
        121. network 223.0.0.0  
        122.  
        123. no auto-summary  
        124.  
        125. logging alarm informational  
        126.  
        127. access-list 101 permit ip 192.168.1.0 0.0.0.255 host 100.100.100.100   //訪問控制列表101,用于過濾原地址,允許子網(wǎng)192.168.1.0流量通過 */  
        128.  
        129. access-list 102 permit ip 192.168.2.0 0.0.0.255 host 100.100.100.100   //訪問控制列表102,用于過濾原地址,允許子網(wǎng)192.168.2.0流量通過 */  
        130.  
        131. !  
        132.  
        133. route-map isp-test permit 10            //定義route-map,取名為isp-test,序列為10  
        134.  
        135. match ip address 101                        //檢查源地址,匹配acl 101  
        136.  
        137. set ip default next-hop 123.0.0.3     //指定下一跳地址  
        138.  
        139. !  
        140.  
        141. feedom.net  
        142.  
        143. route-map isp-test permit 20            //定義isp-test的第二條語句,序列號為20  
        144.  
        145. match ip address 102                        //檢查源地下,匹配acl102  
        146.  
        147. set ip default next-hop 223.0.0.3  
        148.  
        149. !  
        150.  
        151. route-map isp-test permit 30            //定義isp-test的第三條語句,序列號為30  
        152.  
        153. set default interface Null0                //丟棄不匹配規(guī)定標(biāo)準(zhǔn)的包  
        154.  
        155. end  
        156.  
        157. --------------------------------------------------------------------------------- 

        策略路由的內(nèi)容不僅僅局限于以上介紹的內(nèi)容,我們還會在以后的文章中繼續(xù)向大家介紹。


        本文出自:億恩科技【mszdt.com】

        服務(wù)器租用/服務(wù)器托管中國五強(qiáng)!虛擬主機(jī)域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]

      2. 您可能在找
      3. 億恩北京公司:
      4. 經(jīng)營性ICP/ISP證:京B2-20150015
      5. 億恩鄭州公司:
      6. 經(jīng)營性ICP/ISP/IDC證:豫B1.B2-20060070
      7. 億恩南昌公司:
      8. 經(jīng)營性ICP/ISP證:贛B2-20080012
      9. 服務(wù)器/云主機(jī) 24小時售后服務(wù)電話:0371-60135900
      10. 虛擬主機(jī)/智能建站 24小時售后服務(wù)電話:0371-60135900
      11. 專注服務(wù)器托管17年
        掃掃關(guān)注-微信公眾號
        0371-60135900
        Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權(quán)所有  地址:鄭州市高新區(qū)翠竹街1號總部企業(yè)基地億恩大廈  法律顧問:河南亞太人律師事務(wù)所郝建鋒、杜慧月律師   京公網(wǎng)安備41019702002023號
          0
         
         
         
         

        0371-60135900
        7*24小時客服服務(wù)熱線