• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
    • 軟件測試技術
    • 軟件測試博客
    • 軟件測試視頻
    • 開源軟件測試技術
    • 軟件測試論壇
    • 軟件測試沙龍
    • 軟件測試資料下載
    • 軟件測試雜志
    • 軟件測試人才招聘
      暫時沒有公告

    字號: | 推薦給好友 上一篇 | 下一篇

    VRF Selection using by source ip

    發布: 2007-6-23 19:14 | 作者:   | 來源:   | 查看: 17次 | 進入軟件測試論壇討論

    領測軟件測試網

       

    使用了這個feature后,就不需要在接口上應用ip vrf forwarding了,pe會根據上來數據包的源地址把數據包劃分到相應的vrf中,當然這樣做帶來了方便,但性能上的下降也相當大。還有一種方法就是用route-map來實現vrf selection,這樣更靈活,甚至可以根據ip precedence來劃分vrf了。不過cisco的ios沒有同時支持使用source ip和route-map做vrf selection的。

    VRF Selection using by source ip

    R1
    hostname R1
    !
    interface Loopback10
    description SiteA
    ip address 172.16.10.1 255.255.255.255
    no ip directed-broadcast
    !
    interface Loopback20
    description SiteB
    ip address 172.16.20.1 255.255.255.255
    no ip directed-broadcast
    !
    interface Ethernet1/2
    ip address 192.168.12.1 255.255.255.0
    no ip directed-broadcast
    full-duplex
    !
    ip route 0.0.0.0 0.0.0.0 192.168.12.2

    R2
    hostname R2
    !
    ip cef
    ip vrf SiteA
    rd 100:100
    route-target export 100:100
    route-target import 100:100
    !        
    ip vrf SiteB
    rd 100:200
    route-target export 100:200
    route-target import 100:200
    !
    mpls label protocol ldp
    vrf selection source 172.16.10.0 255.255.255.0 vrf SiteA
    vrf selection source 172.16.20.0 255.255.255.0 vrf SiteB
    !
    interface Loopback0
    ip address 2.2.2.2 255.255.255.255
    no ip directed-broadcast
    !
    interface Ethernet1/1
    ip vrf select source
    ip vrf receive SiteA
    ip vrf receive SiteB
    ip address 192.168.12.2 255.255.255.0
    no ip directed-broadcast
    full-duplex
    !
    interface Ethernet1/3
    ip address 192.168.23.2 255.255.255.0
    no ip directed-broadcast
    full-duplex
    tag-switching ip
    !        
    router ospf 100
    router-id 2.2.2.2
    log-adjacency-changes
    network 2.2.2.2 0.0.0.0 area 0
    network 192.168.23.0 0.0.0.255 area 0
    !
    router bgp 100
    no synchronization
    bgp router-id 2.2.2.2
    bgp log-neighbor-changes
    neighbor 4.4.4.4 remote-as 100
    neighbor 4.4.4.4 update-source Loopback0
    no auto-summary
    !
    address-family vpnv4
    neighbor 4.4.4.4 activate
    neighbor 4.4.4.4 send-community both
    exit-address-family
    !
    address-family ipv4 vrf SiteB
    redistribute static
    no synchronization
    exit-address-family
    !
    address-family ipv4 vrf SiteA
    redistribute static
    no synchronization
    exit-address-family
    !
    ip route vrf SiteA 172.16.10.1 255.255.255.255 192.168.12.1
    ip route vrf SiteB 172.16.20.1 255.255.255.255 192.168.12.1
    !
    tag-switching tdp router-id Loopback0

    R3
    hostname R3
    !
    ip cef
    mpls label protocol ldp
    !
    interface Loopback0
    ip address 3.3.3.3 255.255.255.255
    no ip directed-broadcast
    !
    interface Ethernet1/2
    ip address 192.168.23.3 255.255.255.0
    no ip directed-broadcast
    full-duplex
    tag-switching ip
    !
    interface Ethernet1/4
    ip address 192.168.34.3 255.255.255.0
    no ip directed-broadcast
    full-duplex
    tag-switching ip
    !
    router ospf 100
    router-id 3.3.3.3
    log-adjacency-changes
    network 3.3.3.3 0.0.0.0 area 0
    network 192.168.23.0 0.0.0.255 area 0
    network 192.168.34.0 0.0.0.255 area 0
    !
    tag-switching tdp router-id Loopback0

    R4
    hostname R4
    !
    ip cef
    ip vrf SiteA
    rd 100:100
    route-target export 100:100
    route-target import 100:100
    !        
    ip vrf SiteB
    rd 100:200
    route-target export 100:200
    route-target import 100:200
    !
    mpls label protocol ldp
    vrf selection source 172.16.10.0 255.255.255.0 vrf SiteA
    vrf selection source 172.16.20.0 255.255.255.0 vrf SiteB
    !
    interface Loopback0
    ip address 4.4.4.4 255.255.255.255
    no ip directed-broadcast
    !
    interface Ethernet1/3
    ip address 192.168.34.4 255.255.255.0
    no ip directed-broadcast
    full-duplex
    tag-switching ip
    !
    interface Ethernet1/5
    ip vrf select source
    ip vrf receive SiteA
    ip vrf receive SiteB
    ip address 192.168.45.4 255.255.255.0
    no ip directed-broadcast
    full-duplex
    !
    router ospf 100
    router-id 4.4.4.4
    log-adjacency-changes
    network 4.4.4.4 0.0.0.0 area 0
    network 192.168.34.0 0.0.0.255 area 0
    !
    router bgp 100
    no synchronization
    bgp router-id 4.4.4.4
    bgp log-neighbor-changes
    neighbor 2.2.2.2 remote-as 100
    neighbor 2.2.2.2 update-source Loopback0
    no auto-summary
    !
    address-family vpnv4
    neighbor 2.2.2.2 activate
    neighbor 2.2.2.2 send-community both
    exit-address-family
    !
    address-family ipv4 vrf SiteB
    redistribute static
    no synchronization
    exit-address-family
    !
    address-family ipv4 vrf SiteA
    redistribute static
    no synchronization
    exit-address-family
    !
    ip route vrf SiteA 172.16.10.5 255.255.255.255 192.168.45.5
    ip route vrf SiteB 172.16.20.5 255.255.255.255 192.168.45.5
    !
    tag-switching tdp router-id Loopback0

    R5
    hostname R5
    !
    interface Loopback10
    description SiteA
    ip address 172.16.10.5 255.255.255.255
    no ip directed-broadcast
    !
    interface Loopback20
    description SiteB
    ip address 172.16.20.5 255.255.255.255
    no ip directed-broadcast
    !
    interface Ethernet1/4
    ip address 192.168.45.5 255.255.255.0
    no ip directed-broadcast
    full-duplex
    !        
    ip route 0.0.0.0 0.0.0.0 192.168.45.4

    延伸閱讀

    文章來源于領測軟件測試網 http://www.kjueaiud.com/


    關于領測軟件測試網 | 領測軟件測試網合作伙伴 | 廣告服務 | 投稿指南 | 聯系我們 | 網站地圖 | 友情鏈接
    版權所有(C) 2003-2010 TestAge(領測軟件測試網)|領測國際科技(北京)有限公司|軟件測試工程師培訓網 All Rights Reserved
    北京市海淀區中關村南大街9號北京理工科技大廈1402室 京ICP備2023014753號-2
    技術支持和業務聯系:info@testage.com.cn 電話:010-51297073

    軟件測試 | 領測國際ISTQBISTQB官網TMMiTMMi認證國際軟件測試工程師認證領測軟件測試網

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>