• BGP团体属性的应用案例


    XRV1

    =====================================================================

    version 15.5
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no platform punt-keepalive disable-kernel-core
    platform console serial
    !
    hostname XRV1
    !
    boot-start-marker
    boot-end-marker
    !
    !
    enable secret 5 $1$9RNm$rUz.MHwERzXpqEom.vYs7.
    !

    interface Loopback0
    ip address 192.168.1.1 255.255.255.255
    ip router isis 100
    !
    interface GigabitEthernet1
    ip address 10.10.1.1 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    interface GigabitEthernet2
    ip address 10.10.1.9 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    interface GigabitEthernet3
    ip address 10.10.1.17 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    interface GigabitEthernet4
    ip address 10.10.1.29 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    router isis 100
    net 49.0000.1921.6811.00
    is-type level-2-only
    !
    router bgp 65000
    bgp router-id 192.168.1.1
    bgp cluster-id 192.168.1.1
    bgp log-neighbor-changes
    bgp graceful-restart restart-time 120
    bgp graceful-restart stalepath-time 360
    bgp graceful-restart
    network 192.168.1.1 mask 255.255.255.255
    neighbor internal peer-group
    neighbor internal password cisco
    neighbor internal update-source Loopback0
    neighbor internal route-reflector-client
    neighbor internal send-community
    neighbor 192.168.1.3 remote-as 65000
    neighbor 192.168.1.3 peer-group internal
    neighbor 192.168.1.4 remote-as 65000
    neighbor 192.168.1.4 peer-group internal
    neighbor 192.168.1.5 remote-as 65000
    neighbor 192.168.1.5 peer-group internal
    neighbor 192.168.1.6 remote-as 65000
    neighbor 192.168.1.6 peer-group internal
    !

    XRV2

    =====================================================================

    !
    hostname XRV2
    !
    boot-start-marker
    boot-end-marker
    !
    !
    enable secret 5 $1$TOpV$AHmKhW4qP7Gxu593nv6dq.
    !

    !
    license udi pid CSR1000V sn 98QG15XTNUA
    !
    spanning-tree extend system-id
    !
    !
    redundancy
    !

    !
    interface Loopback0
    ip address 192.168.1.2 255.255.255.255
    ip router isis 100
    !
    interface GigabitEthernet1
    ip address 10.10.1.5 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    interface GigabitEthernet2
    ip address 10.10.1.13 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    isis priority 10
    !
    interface GigabitEthernet3
    ip address 10.10.1.21 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    interface GigabitEthernet4
    ip address 10.10.1.25 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    router isis 100
    net 49.0000.1921.6812.00
    is-type level-2-only
    !
    router bgp 65000
    bgp router-id 192.168.1.2
    bgp cluster-id 192.168.1.1
    bgp log-neighbor-changes
    bgp graceful-restart restart-time 120
    bgp graceful-restart stalepath-time 360
    bgp graceful-restart
    network 192.168.1.2 mask 255.255.255.255
    neighbor internal peer-group
    neighbor internal password cisco
    neighbor internal update-source Loopback0
    neighbor internal route-reflector-client
    neighbor internal send-community
    neighbor 192.168.1.3 remote-as 65000
    neighbor 192.168.1.3 peer-group internal
    neighbor 192.168.1.4 remote-as 65000
    neighbor 192.168.1.4 peer-group internal
    neighbor 192.168.1.5 remote-as 65000
    neighbor 192.168.1.5 peer-group internal
    neighbor 192.168.1.6 remote-as 65000
    neighbor 192.168.1.6 peer-group internal
    !

    XRV3

    =====================================================================

    hostname XRV3
    !
    boot-start-marker
    boot-end-marker
    !
    !
    enable secret 5 $1$bqIs$Qh54oCqd.ZSerXUqCgzi11
    !
    no aaa new-model
    no process cpu autoprofile hog
    !

    license udi pid CSR1000V sn 9YECD7QQCUZ
    !
    spanning-tree extend system-id
    !

    interface Loopback0
    ip address 192.168.1.3 255.255.255.255
    ip router isis 100
    !
    interface Loopback10
    ip address 123.103.15.129 255.255.255.255
    !
    interface Loopback20
    ip address 222.128.73.1 255.255.255.255
    !
    interface GigabitEthernet1
    ip address 10.10.1.2 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    interface GigabitEthernet2
    ip address 10.10.1.14 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    isis priority 10
    !
    interface GigabitEthernet3
    no ip address
    shutdown
    negotiation auto
    !
    interface GigabitEthernet4
    no ip address
    shutdown
    negotiation auto
    !
    router isis 100
    net 49.0000.1921.6813.00
    is-type level-2-only
    !
    router bgp 65000
    bgp router-id 192.168.1.3
    bgp log-neighbor-changes
    bgp graceful-restart restart-time 120
    bgp graceful-restart stalepath-time 360
    bgp graceful-restart
    network 0.0.0.0
    network 123.103.15.129 mask 255.255.255.255
    network 192.168.1.3 mask 255.255.255.255
    neighbor internal peer-group
    neighbor internal password cisco
    neighbor internal update-source Loopback0
    neighbor internal next-hop-self
    neighbor 192.168.1.1 remote-as 65000
    neighbor 192.168.1.1 peer-group internal
    neighbor 192.168.1.2 remote-as 65000
    neighbor 192.168.1.2 peer-group internal
    !

    XRV4

    =====================================================================

    !
    hostname XRV4
    !
    boot-start-marker
    boot-end-marker
    !
    !
    enable secret 5 $1$efgR$7lQCR/GGkDzepm/BtWRu.0

    !
    license udi pid CSR1000V sn 9SZZ47EAE0B
    !
    spanning-tree extend system-id
    !
    !
    redundancy
    !
    !
    !
    !
    !
    cdp run
    !
    interface Loopback0
    ip address 192.168.1.4 255.255.255.255
    ip router isis 100
    !
    interface Loopback10
    ip address 61.135.142.1 255.255.255.255
    !
    interface GigabitEthernet1
    ip address 10.10.1.6 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    interface GigabitEthernet2
    ip address 10.10.1.10 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    interface GigabitEthernet3
    no ip address
    shutdown
    negotiation auto
    !
    interface GigabitEthernet4
    no ip address
    shutdown
    negotiation auto
    !
    router isis 100
    net 49.0000.1921.6814.00
    is-type level-2-only
    !
    router bgp 65000
    bgp router-id 192.168.1.4
    bgp log-neighbor-changes
    bgp graceful-restart restart-time 120
    bgp graceful-restart stalepath-time 360
    bgp graceful-restart
    network 61.135.142.1 mask 255.255.255.255
    network 192.168.1.4 mask 255.255.255.255
    neighbor internal peer-group
    neighbor internal password cisco
    neighbor internal update-source Loopback0
    neighbor internal next-hop-self
    neighbor internal send-community
    neighbor 192.168.1.1 remote-as 65000
    neighbor 192.168.1.1 peer-group internal
    neighbor 192.168.1.2 remote-as 65000
    neighbor 192.168.1.2 peer-group internal
    !

    XRV5

    =====================================================================

    hostname XRV5
    !
    boot-start-marker
    boot-end-marker
    !
    !
    enable secret 5 $1$To5s$VL/Sa6yndJpj6wNBDG5q4.
    !
    license udi pid CSR1000V sn 9EFKHPSPUHX
    !
    spanning-tree extend system-id
    !
    interface Loopback0
    ip address 192.168.1.5 255.255.255.255
    ip router isis 100
    !
    interface GigabitEthernet1
    ip address 10.10.1.18 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    interface GigabitEthernet2
    ip address 10.10.1.26 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    interface GigabitEthernet3
    ip address 10.201.1.1 255.255.255.252
    negotiation auto
    cdp enable
    bfd interval 500 min_rx 250 multiplier 3
    !
    interface GigabitEthernet4
    ip address 10.201.1.9 255.255.255.252
    negotiation auto
    cdp enable
    bfd interval 500 min_rx 250 multiplier 3
    !
    interface GigabitEthernet5
    no ip address
    shutdown
    negotiation auto
    !
    interface GigabitEthernet6
    no ip address
    shutdown
    negotiation auto
    !
    interface GigabitEthernet7
    no ip address
    shutdown
    negotiation auto
    !
    interface GigabitEthernet8
    no ip address
    shutdown
    negotiation auto
    !
    router isis 100
    net 49.0000.1921.6815.00
    is-type level-2-only
    !
    router bgp 65000
    bgp router-id 192.168.1.5
    bgp log-neighbor-changes
    bgp graceful-restart restart-time 120
    bgp graceful-restart stalepath-time 360
    bgp graceful-restart
    network 192.168.1.5 mask 255.255.255.255
    neighbor internal peer-group
    neighbor internal password cisco
    neighbor internal update-source Loopback0
    neighbor internal next-hop-self
    neighbor internal send-community
    neighbor internal route-map as65000-import-yewu out
    neighbor 10.201.1.2 remote-as 65001
    neighbor 10.201.1.2 password cisco
    neighbor 10.201.1.2 fall-over bfd
    neighbor 10.201.1.2 send-community
    neighbor 10.201.1.10 remote-as 65002
    neighbor 10.201.1.10 password cisco
    neighbor 10.201.1.10 fall-over bfd
    neighbor 10.201.1.10 send-community
    neighbor 192.168.1.1 remote-as 65000
    neighbor 192.168.1.1 peer-group internal
    neighbor 192.168.1.2 remote-as 65000
    neighbor 192.168.1.2 peer-group internal
    !
    !
    virtual-service csr_mgmt
    !
    ip forward-protocol nd
    !
    ip bgp-community new-format
    no ip http server
    no ip http secure-server
    !
    !
    ip prefix-list as65000-import-yewu seq 1 permit 10.133.1.0/24
    ip prefix-list as65000-import-yewu seq 2 permit 10.133.2.0/24
    ip prefix-list as65000-import-yewu seq 3 permit 10.133.3.0/24
    ip prefix-list as65000-import-yewu seq 4 permit 10.133.4.0/24
    ip prefix-list as65000-import-yewu seq 5 permit 10.133.5.0/24
    ip prefix-list as65000-import-yewu seq 6 permit 10.133.6.0/24
    ip prefix-list as65000-import-yewu seq 7 permit 10.133.7.0/24
    ip prefix-list as65000-import-yewu seq 8 permit 10.133.8.0/24
    ip prefix-list as65000-import-yewu seq 9 permit 10.133.9.0/24
    ip prefix-list as65000-import-yewu seq 10 permit 10.133.10.0/24
    ip prefix-list as65000-import-yewu seq 11 permit 10.133.11.0/24
    ip prefix-list as65000-import-yewu seq 12 permit 10.133.12.0/24
    ip prefix-list as65000-import-yewu seq 13 permit 10.133.13.0/24
    ip prefix-list as65000-import-yewu seq 14 permit 10.133.14.0/24
    ip prefix-list as65000-import-yewu seq 15 permit 10.133.15.0/24
    ip prefix-list as65000-import-yewu seq 16 permit 10.133.16.0/24
    !
    route-map as65 permit 10
    !
    route-map as65000-import-yewu permit 10
    match ip address prefix-list as65000-import-yewu
    set metric +5000
    !
    route-map as65000-import-yewu permit 20
    !

    XRV6

    =====================================================================

    !
    hostname XRV6
    !
    boot-start-marker
    boot-end-marker
    !
    !
    enable secret 5 $1$x5iH$JEJppJrhUPHImCWVd5ipe/
    !
    subscriber templating
    !
    license udi pid CSR1000V sn 9TAFF5BOQIV
    !
    spanning-tree extend system-id
    !
    interface Loopback0
    ip address 192.168.1.6 255.255.255.255
    ip router isis 100
    !
    interface GigabitEthernet1
    ip address 10.10.1.22 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    interface GigabitEthernet2
    ip address 10.10.1.30 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    interface GigabitEthernet3
    ip address 10.201.1.5 255.255.255.252
    negotiation auto
    cdp enable
    bfd interval 500 min_rx 250 multiplier 3
    !
    interface GigabitEthernet4
    ip address 10.201.1.13 255.255.255.252
    negotiation auto
    bfd interval 500 min_rx 250 multiplier 3
    !
    interface GigabitEthernet5
    no ip address
    shutdown
    negotiation auto
    !
    interface GigabitEthernet6
    no ip address
    shutdown
    negotiation auto
    !
    interface GigabitEthernet7
    no ip address
    shutdown
    negotiation auto
    !
    interface GigabitEthernet8
    no ip address
    shutdown
    negotiation auto
    !
    router isis 100
    net 49.0000.1921.6816.00
    is-type level-2-only
    !
    router bgp 65000
    bgp router-id 192.168.1.6
    bgp log-neighbor-changes
    bgp graceful-restart restart-time 120
    bgp graceful-restart stalepath-time 360
    bgp graceful-restart
    network 192.168.1.6 mask 255.255.255.255
    neighbor internal peer-group
    neighbor internal password cisco
    neighbor internal update-source Loopback0
    neighbor internal next-hop-self
    neighbor internal send-community
    neighbor 10.201.1.6 remote-as 65001
    neighbor 10.201.1.6 password cisco
    neighbor 10.201.1.6 fall-over bfd
    neighbor 10.201.1.6 send-community
    neighbor 10.201.1.14 remote-as 65002
    neighbor 10.201.1.14 password cisco
    neighbor 10.201.1.14 fall-over bfd
    neighbor 10.201.1.14 send-community
    neighbor 192.168.1.1 remote-as 65000
    neighbor 192.168.1.1 peer-group internal
    neighbor 192.168.1.2 remote-as 65000
    neighbor 192.168.1.2 peer-group internal
    !

    XRV7

    =====================================================================

    !
    hostname XRV7
    !
    boot-start-marker
    boot-end-marker
    !
    !
    enable secret 5 $1$l8mC$SBMv.vPh3qQPT9yZJwZ9Z1
    !
    no aaa new-model
    no process cpu autoprofile hog
    !
    license udi pid CSR1000V sn 983FEOO3JQF
    !
    spanning-tree extend system-id
    !
    interface Loopback0
    ip address 192.168.1.7 255.255.255.255
    ip router isis 100
    !
    interface GigabitEthernet1
    ip address 10.201.1.2 255.255.255.252
    negotiation auto
    cdp enable
    bfd interval 500 min_rx 250 multiplier 3
    !
    interface GigabitEthernet2
    ip address 10.10.2.1 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    interface GigabitEthernet3
    ip address 10.10.2.5 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    interface GigabitEthernet4
    no ip address
    shutdown
    negotiation auto
    !
    router isis 100
    net 49.0000.1921.6817.00
    is-type level-2-only
    !
    router bgp 65001
    bgp router-id 192.168.1.7
    bgp log-neighbor-changes
    bgp graceful-restart restart-time 120
    bgp graceful-restart stalepath-time 360
    bgp graceful-restart
    network 192.168.1.7 mask 255.255.255.255
    neighbor internal peer-group
    neighbor internal password cisco
    neighbor internal update-source Loopback0
    neighbor internal next-hop-self
    neighbor internal send-community
    neighbor internal route-map as65001-import-bangong in
    neighbor 10.201.1.1 remote-as 65000
    neighbor 10.201.1.1 password cisco
    neighbor 10.201.1.1 fall-over bfd
    neighbor 10.201.1.1 send-community
    neighbor 192.168.1.8 remote-as 65001
    neighbor 192.168.1.8 peer-group internal
    neighbor 192.168.1.11 remote-as 65001
    neighbor 192.168.1.11 peer-group internal
    !
    !
    virtual-service csr_mgmt
    !
    ip forward-protocol nd
    !
    ip bgp-community new-format
    no ip http server
    no ip http secure-server
    !
    !
    ip prefix-list as65001-import-yewu seq 1 permit 10.95.1.0/24
    ip prefix-list as65001-import-yewu seq 2 permit 10.95.2.0/24
    ip prefix-list as65001-import-yewu seq 3 permit 10.95.3.0/24
    ip prefix-list as65001-import-yewu seq 4 permit 10.95.4.0/24
    ip prefix-list as65001-import-yewu seq 5 permit 10.95.5.0/24
    ip prefix-list as65001-import-yewu seq 6 permit 10.95.6.0/24
    ip prefix-list as65001-import-yewu seq 7 permit 10.95.7.0/24
    ip prefix-list as65001-import-yewu seq 8 permit 10.95.8.0/24
    ip prefix-list as65001-import-yewu seq 9 permit 10.95.9.0/24
    ip prefix-list as65001-import-yewu seq 10 permit 10.95.10.0/24
    ip prefix-list as65001-import-yewu seq 11 permit 10.95.11.0/24
    ip prefix-list as65001-import-yewu seq 12 permit 10.95.12.0/24
    ip prefix-list as65001-import-yewu seq 13 permit 10.95.13.0/24
    ip prefix-list as65001-import-yewu seq 14 permit 10.95.14.0/24
    ip prefix-list as65001-import-yewu seq 15 permit 10.95.15.0/24
    ip prefix-list as65001-import-yewu seq 16 permit 10.95.16.0/24
    !
    route-map as65001-import-bangong permit 10
    match ip address prefix-list as65001-import-yewu
    set as-path prepend 65001 65001 65001
    !
    route-map as65001-import-bangong permit 20
    !

    XRV8

    =====================================================================

    !
    hostname XRV8
    !
    boot-start-marker
    boot-end-marker
    !
    !
    enable secret 5 $1$cQjY$Jo1M5A66qmIVyIjt9A2yN1
    !
    no aaa new-model
    no process cpu autoprofile hog
    !
    subscriber templating
    !
    multilink bundle-name authenticated
    !
    license udi pid CSR1000V sn 9DQ9QILO1PL
    !
    spanning-tree extend system-id
    !
    interface Loopback0
    ip address 192.168.1.8 255.255.255.255
    ip router isis 100
    !
    interface GigabitEthernet1
    ip address 10.201.1.6 255.255.255.252
    negotiation auto
    cdp enable
    bfd interval 500 min_rx 250 multiplier 3
    !
    interface GigabitEthernet2
    ip address 10.10.2.2 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    interface GigabitEthernet3
    ip address 10.10.2.9 255.255.255.252
    ip router isis 100
    negotiation auto
    cdp enable
    isis circuit-type level-2-only
    !
    interface GigabitEthernet4
    no ip address
    shutdown
    negotiation auto
    !
    router isis 100
    net 49.0000.1921.6818.00
    is-type level-2-only
    !
    router bgp 65001
    bgp router-id 192.168.1.8
    bgp log-neighbor-changes
    bgp graceful-restart restart-time 120
    bgp graceful-restart stalepath-time 360
    bgp graceful-restart
    network 192.168.1.8 mask 255.255.255.255
    neighbor internal peer-group
    neighbor internal password cisco
    neighbor internal update-source Loopback0
    neighbor internal next-hop-self
    neighbor internal route-map as65001-import-yewu in
    neighbor 10.201.1.5 remote-as 65000
    neighbor 10.201.1.5 password cisco
    neighbor 10.201.1.5 fall-over bfd
    neighbor 10.201.1.5 send-community
    neighbor 192.168.1.7 remote-as 65001
    neighbor 192.168.1.7 peer-group internal
    neighbor 192.168.1.11 remote-as 65001
    neighbor 192.168.1.11 peer-group internal
    !
    !
    virtual-service csr_mgmt
    !
    ip forward-protocol nd
    !
    ip bgp-community new-format
    no ip http server
    no ip http secure-server
    !
    !
    ip prefix-list as65001-import-bangong seq 1 permit 10.28.1.0/24
    ip prefix-list as65001-import-bangong seq 2 permit 10.28.2.0/24
    ip prefix-list as65001-import-bangong seq 3 permit 10.28.3.0/24
    ip prefix-list as65001-import-bangong seq 4 permit 10.28.4.0/24
    ip prefix-list as65001-import-bangong seq 5 permit 10.28.5.0/24
    ip prefix-list as65001-import-bangong seq 6 permit 10.28.6.0/24
    ip prefix-list as65001-import-bangong seq 7 permit 10.28.7.0/24
    ip prefix-list as65001-import-bangong seq 8 permit 10.28.8.0/24
    ip prefix-list as65001-import-bangong seq 9 permit 10.28.9.0/24
    ip prefix-list as65001-import-bangong seq 10 permit 10.28.10.0/24
    ip prefix-list as65001-import-bangong seq 11 permit 10.28.11.0/24
    ip prefix-list as65001-import-bangong seq 12 permit 10.28.12.0/24
    ip prefix-list as65001-import-bangong seq 13 permit 10.28.13.0/24
    ip prefix-list as65001-import-bangong seq 14 permit 10.28.14.0/24
    ip prefix-list as65001-import-bangong seq 15 permit 10.28.15.0/24
    ip prefix-list as65001-import-bangong seq 16 permit 10.28.16.0/24
    !
    route-map as65001-import-yewu permit 10
    match ip address prefix-list as65001-import-bangong
    set as-path prepend 65001 65001 65001
    !
    route-map as65001-import-yewu permit 20
    !

    XRV9

    =====================================================================

    !
    hostname XRV10
    !
    boot-start-marker
    boot-end-marker
    !
    !
    enable secret 5 $1$guyZ$I7ZXdyPUzZ1iFnrSHcZb4/
    !
    no aaa new-model
    no process cpu autoprofile hog
    !

    !
    license udi pid CSR1000V sn 9AK4YQFWZ3P
    !
    spanning-tree extend system-id
    !

    !
    interface Loopback0
    ip address 192.168.1.10 255.255.255.255
    ip router isis 100
    !
    interface GigabitEthernet1
    ip address 10.201.1.14 255.255.255.252
    negotiation auto
    bfd interval 500 min_rx 250 multiplier 3
    !
    interface GigabitEthernet2
    ip address 10.10.3.2 255.255.255.252
    ip router isis 100
    negotiation auto
    isis circuit-type level-2-only
    !
    interface GigabitEthernet3
    ip address 10.10.3.9 255.255.255.252
    ip router isis 100
    negotiation auto
    isis circuit-type level-2-only
    !
    interface GigabitEthernet4
    no ip address
    shutdown
    negotiation auto
    !
    router isis 100
    net 49.0000.1921.6810.00
    is-type level-2-only
    !
    router bgp 65002
    bgp router-id 192.168.1.10
    bgp log-neighbor-changes
    bgp graceful-restart restart-time 120
    bgp graceful-restart stalepath-time 360
    bgp graceful-restart
    neighbor internal peer-group
    neighbor internal password cisco
    neighbor internal update-source Loopback0
    neighbor internal next-hop-self
    neighbor internal send-community
    neighbor 10.201.1.13 remote-as 65000
    neighbor 10.201.1.13 password cisco
    neighbor 10.201.1.13 fall-over bfd
    neighbor 10.201.1.13 send-community
    neighbor 10.201.1.13 route-map as65002-import-yewu in
    neighbor 192.168.1.9 remote-as 65002
    neighbor 192.168.1.9 peer-group internal
    neighbor 192.168.1.12 remote-as 65002
    neighbor 192.168.1.12 peer-group internal
    !
    !
    virtual-service csr_mgmt
    !
    ip forward-protocol nd
    !
    ip bgp-community new-format
    no ip http server
    no ip http secure-server
    !
    !
    ip prefix-list as65002-import-bangong seq 1 permit 10.158.1.0/24
    ip prefix-list as65002-import-bangong seq 2 permit 10.158.2.0/24
    ip prefix-list as65002-import-bangong seq 3 permit 10.158.3.0/24
    ip prefix-list as65002-import-bangong seq 4 permit 10.158.4.0/24
    ip prefix-list as65002-import-bangong seq 5 permit 10.158.5.0/24
    ip prefix-list as65002-import-bangong seq 6 permit 10.158.6.0/24
    ip prefix-list as65002-import-bangong seq 7 permit 10.158.7.0/24
    ip prefix-list as65002-import-bangong seq 8 permit 10.158.8.0/24
    ip prefix-list as65002-import-bangong seq 9 permit 10.158.9.0/24
    ip prefix-list as65002-import-bangong seq 10 permit 10.158.10.0/24
    ip prefix-list as65002-import-bangong seq 11 permit 10.158.11.0/24
    ip prefix-list as65002-import-bangong seq 12 permit 10.158.12.0/24
    ip prefix-list as65002-import-bangong seq 13 permit 10.158.13.0/24
    ip prefix-list as65002-import-bangong seq 14 permit 10.158.14.0/24
    ip prefix-list as65002-import-bangong seq 15 permit 10.158.15.0/24
    ip prefix-list as65002-import-bangong seq 16 permit 10.158.16.0/24
    !
    route-map as65002-import-yewu permit 10
    match ip address prefix-list as65002-import-bangong
    set as-path prepend 65002 65002 65002
    !
    route-map as65002-import-yewu permit 20
    !

    XRV11

    =====================================================================

    !
    interface Vlan1
    ip address 10.158.1.254 255.255.255.0
    !
    interface Vlan2
    ip address 10.158.2.254 255.255.255.0
    !
    interface Vlan3
    ip address 10.158.3.254 255.255.255.0
    !
    interface Vlan4
    ip address 10.158.4.254 255.255.255.0
    !
    interface Vlan5
    ip address 10.158.5.254 255.255.255.0
    !
    interface Vlan6
    ip address 10.158.6.254 255.255.255.0
    !
    interface Vlan7
    ip address 10.158.7.254 255.255.255.0
    !
    interface Vlan8
    ip address 10.158.8.254 255.255.255.0
    !
    interface Vlan9
    ip address 10.158.9.254 255.255.255.0
    !
    interface Vlan10
    ip address 10.158.10.254 255.255.255.0
    !
    interface Vlan11
    ip address 10.158.11.254 255.255.255.0
    !
    interface Vlan12
    ip address 10.158.12.254 255.255.255.0
    !
    interface Vlan13
    ip address 10.158.13.254 255.255.255.0
    !
    interface Vlan14
    ip address 10.158.14.254 255.255.255.0
    !
    interface Vlan15
    ip address 10.158.15.254 255.255.255.0
    !
    interface Vlan16
    ip address 10.158.16.254 255.255.255.0
    !
    interface Vlan17
    ip address 10.133.1.254 255.255.255.0
    !
    interface Vlan18
    ip address 10.133.2.254 255.255.255.0
    !
    interface Vlan19
    ip address 10.133.3.254 255.255.255.0
    !
    interface Vlan20
    ip address 10.133.4.254 255.255.255.0
    !
    interface Vlan21
    ip address 10.133.5.254 255.255.255.0
    !
    interface Vlan22
    ip address 10.133.6.254 255.255.255.0
    !
    interface Vlan23
    ip address 10.133.7.254 255.255.255.0
    !
    interface Vlan24
    ip address 10.133.8.254 255.255.255.0
    !
    interface Vlan25
    ip address 10.133.9.254 255.255.255.0
    !
    interface Vlan26
    ip address 10.133.10.254 255.255.255.0
    !
    interface Vlan27
    ip address 10.133.11.254 255.255.255.0
    !
    interface Vlan28
    ip address 10.133.12.254 255.255.255.0
    !
    interface Vlan29
    ip address 10.133.13.254 255.255.255.0
    !
    interface Vlan30
    ip address 10.133.14.254 255.255.255.0
    !
    interface Vlan31
    ip address 10.133.15.254 255.255.255.0
    !
    interface Vlan32
    ip address 10.133.16.254 255.255.255.0
    !
    interface Vlan100
    ip address 10.10.2.6 255.255.255.252
    ip router isis 100
    isis circuit-type level-2-only
    !
    interface Vlan200
    ip address 10.10.2.10 255.255.255.252
    ip router isis 100
    isis circuit-type level-2-only
    !
    router isis 100
    net 49.0000.1025.5255.1100.00
    is-type level-2-only
    !
    router bgp 65001
    bgp router-id 192.168.1.11
    bgp log-neighbor-changes
    bgp graceful-restart restart-time 120
    bgp graceful-restart stalepath-time 360
    bgp graceful-restart
    network 10.133.1.0 mask 255.255.255.0
    network 10.133.2.0 mask 255.255.255.0
    network 10.133.3.0 mask 255.255.255.0
    network 10.133.4.0 mask 255.255.255.0
    network 10.133.5.0 mask 255.255.255.0
    network 10.133.6.0 mask 255.255.255.0
    network 10.133.7.0 mask 255.255.255.0
    network 10.133.8.0 mask 255.255.255.0
    network 10.133.9.0 mask 255.255.255.0
    network 10.133.10.0 mask 255.255.255.0
    network 10.133.11.0 mask 255.255.255.0
    network 10.133.12.0 mask 255.255.255.0
    network 10.133.13.0 mask 255.255.255.0
    network 10.133.14.0 mask 255.255.255.0
    network 10.133.15.0 mask 255.255.255.0
    network 10.133.16.0 mask 255.255.255.0
    network 10.158.1.0 mask 255.255.255.0
    network 10.158.2.0 mask 255.255.255.0
    network 10.158.3.0 mask 255.255.255.0
    network 10.158.4.0 mask 255.255.255.0
    network 10.158.5.0 mask 255.255.255.0
    network 10.158.6.0 mask 255.255.255.0
    network 10.158.7.0 mask 255.255.255.0
    network 10.158.8.0 mask 255.255.255.0
    network 10.158.9.0 mask 255.255.255.0
    network 10.158.10.0 mask 255.255.255.0
    network 10.158.11.0 mask 255.255.255.0
    network 10.158.12.0 mask 255.255.255.0
    network 10.158.13.0 mask 255.255.255.0
    network 10.158.14.0 mask 255.255.255.0
    network 10.158.15.0 mask 255.255.255.0
    network 10.158.16.0 mask 255.255.255.0
    network 192.168.1.11 mask 255.255.255.255
    neighbor internal peer-group
    neighbor internal password cisco
    neighbor internal update-source Loopback0
    neighbor internal send-community
    neighbor internal route-map as65001-export out
    neighbor 192.168.1.7 remote-as 65001
    neighbor 192.168.1.7 peer-group internal
    neighbor 192.168.1.7 route-map as65001-import-bangong in
    neighbor 192.168.1.8 remote-as 65001
    neighbor 192.168.1.8 peer-group internal
    neighbor 192.168.1.8 route-map as65001-import-yewu in
    maximum-paths ibgp 2
    !
    ip forward-protocol nd
    !
    ip bgp-community new-format
    no ip http server
    no ip http secure-server
    !
    !
    !
    !
    ip prefix-list as65001-bangong seq 1 permit 10.158.1.0/24
    ip prefix-list as65001-bangong seq 2 permit 10.158.2.0/24
    ip prefix-list as65001-bangong seq 3 permit 10.158.3.0/24
    ip prefix-list as65001-bangong seq 4 permit 10.158.4.0/24
    ip prefix-list as65001-bangong seq 5 permit 10.158.5.0/24
    ip prefix-list as65001-bangong seq 6 permit 10.158.6.0/24
    ip prefix-list as65001-bangong seq 7 permit 10.158.7.0/24
    ip prefix-list as65001-bangong seq 8 permit 10.158.8.0/24
    ip prefix-list as65001-bangong seq 9 permit 10.158.9.0/24
    ip prefix-list as65001-bangong seq 10 permit 10.158.10.0/24
    ip prefix-list as65001-bangong seq 11 permit 10.158.11.0/24
    ip prefix-list as65001-bangong seq 12 permit 10.158.12.0/24
    ip prefix-list as65001-bangong seq 13 permit 10.158.13.0/24
    ip prefix-list as65001-bangong seq 14 permit 10.158.14.0/24
    ip prefix-list as65001-bangong seq 15 permit 10.158.15.0/24
    ip prefix-list as65001-bangong seq 16 permit 10.158.16.0/24
    !
    ip prefix-list as65001-import-bangong seq 1 permit 10.28.1.0/24
    ip prefix-list as65001-import-bangong seq 2 permit 10.28.2.0/24
    ip prefix-list as65001-import-bangong seq 3 permit 10.28.3.0/24
    ip prefix-list as65001-import-bangong seq 4 permit 10.28.4.0/24
    ip prefix-list as65001-import-bangong seq 5 permit 10.28.5.0/24
    ip prefix-list as65001-import-bangong seq 6 permit 10.28.6.0/24
    ip prefix-list as65001-import-bangong seq 7 permit 10.28.7.0/24
    ip prefix-list as65001-import-bangong seq 8 permit 10.28.8.0/24
    ip prefix-list as65001-import-bangong seq 9 permit 10.28.9.0/24
    ip prefix-list as65001-import-bangong seq 10 permit 10.28.10.0/24
    ip prefix-list as65001-import-bangong seq 11 permit 10.28.11.0/24
    ip prefix-list as65001-import-bangong seq 12 permit 10.28.12.0/24
    ip prefix-list as65001-import-bangong seq 13 permit 10.28.13.0/24
    ip prefix-list as65001-import-bangong seq 14 permit 10.28.14.0/24
    ip prefix-list as65001-import-bangong seq 15 permit 10.28.15.0/24
    ip prefix-list as65001-import-bangong seq 16 permit 10.28.16.0/24
    !
    ip prefix-list as65001-import-yewu seq 1 permit 10.95.1.0/24
    ip prefix-list as65001-import-yewu seq 2 permit 10.95.2.0/24
    ip prefix-list as65001-import-yewu seq 3 permit 10.95.3.0/24
    ip prefix-list as65001-import-yewu seq 4 permit 10.95.4.0/24
    ip prefix-list as65001-import-yewu seq 5 permit 10.95.5.0/24
    ip prefix-list as65001-import-yewu seq 6 permit 10.95.6.0/24
    ip prefix-list as65001-import-yewu seq 7 permit 10.95.7.0/24
    ip prefix-list as65001-import-yewu seq 8 permit 10.95.8.0/24
    ip prefix-list as65001-import-yewu seq 9 permit 10.95.9.0/24
    ip prefix-list as65001-import-yewu seq 10 permit 10.95.10.0/24
    ip prefix-list as65001-import-yewu seq 11 permit 10.95.11.0/24
    ip prefix-list as65001-import-yewu seq 12 permit 10.95.12.0/24
    ip prefix-list as65001-import-yewu seq 13 permit 10.95.13.0/24
    ip prefix-list as65001-import-yewu seq 14 permit 10.95.14.0/24
    ip prefix-list as65001-import-yewu seq 15 permit 10.95.15.0/24
    ip prefix-list as65001-import-yewu seq 16 permit 10.95.16.0/24
    !
    ip prefix-list as65001-yewu seq 1 permit 10.133.1.0/24
    ip prefix-list as65001-yewu seq 2 permit 10.133.2.0/24
    ip prefix-list as65001-yewu seq 3 permit 10.133.3.0/24
    ip prefix-list as65001-yewu seq 4 permit 10.133.4.0/24
    ip prefix-list as65001-yewu seq 5 permit 10.133.5.0/24
    ip prefix-list as65001-yewu seq 6 permit 10.133.6.0/24
    ip prefix-list as65001-yewu seq 7 permit 10.133.7.0/24
    ip prefix-list as65001-yewu seq 8 permit 10.133.8.0/24
    ip prefix-list as65001-yewu seq 9 permit 10.133.9.0/24
    ip prefix-list as65001-yewu seq 10 permit 10.133.10.0/24
    ip prefix-list as65001-yewu seq 11 permit 10.133.11.0/24
    ip prefix-list as65001-yewu seq 12 permit 10.133.12.0/24
    ip prefix-list as65001-yewu seq 13 permit 10.133.13.0/24
    ip prefix-list as65001-yewu seq 14 permit 10.133.14.0/24
    ip prefix-list as65001-yewu seq 15 permit 10.133.15.0/24
    ip prefix-list as65001-yewu seq 16 permit 10.133.16.0/24
    !
    route-map as65001-export permit 10
    match ip address prefix-list as65001-bangong
    set community 65001:100
    !
    route-map as65001-export permit 20
    match ip address prefix-list as65001-yewu
    set community 65001:200
    !
    route-map as65001-import-yewu permit 10
    match ip address prefix-list as65001-import-yewu
    set local-preference 1200
    !
    route-map as65001-import-yewu permit 20
    !
    route-map as65001-import-bangong permit 10
    match ip address prefix-list as65001-import-bangong
    set local-preference 1200
    !
    route-map as65001-import-bangong permit 20
    !
    route-map import-com100 permit 10
    match ip address prefix-list fc
    set local-preference 1200
    !
    route-map import-com100 permit 20
    !
    route-map import-com200 permit 10
    match ip address prefix-list fd
    set local-preference 1200
    !
    route-map import-com200 permit 20
    !

    XRV12

    =====================================================================


    !
    interface Loopback0
    ip address 192.168.1.12 255.255.255.255
    ip router isis 100
    !
    interface GigabitEthernet0/0
    switchport access vlan 100
    media-type rj45
    negotiation auto
    !
    interface GigabitEthernet0/1
    switchport access vlan 200
    media-type rj45
    negotiation auto
    !
    interface GigabitEthernet0/2
    switchport trunk encapsulation dot1q
    media-type rj45
    negotiation auto
    !
    interface GigabitEthernet0/3
    media-type rj45
    negotiation auto
    !
    interface Vlan1
    ip address 10.28.1.254 255.255.255.0
    !
    interface Vlan2
    ip address 10.28.2.254 255.255.255.0
    !
    interface Vlan3
    ip address 10.28.3.254 255.255.255.0
    !
    interface Vlan4
    ip address 10.28.4.254 255.255.255.0
    !
    interface Vlan5
    ip address 10.28.5.254 255.255.255.0
    !
    interface Vlan6
    ip address 10.28.6.254 255.255.255.0
    !
    interface Vlan7
    ip address 10.28.7.254 255.255.255.0
    !
    interface Vlan8
    ip address 10.28.8.254 255.255.255.0
    !
    interface Vlan9
    ip address 10.28.9.254 255.255.255.0
    !
    interface Vlan10
    ip address 10.28.10.254 255.255.255.0
    !
    interface Vlan11
    ip address 10.28.11.254 255.255.255.0
    !
    interface Vlan12
    ip address 10.28.12.254 255.255.255.0
    !
    interface Vlan13
    ip address 10.28.13.254 255.255.255.0
    !
    interface Vlan14
    ip address 10.28.14.254 255.255.255.0
    !
    interface Vlan15
    ip address 10.28.15.254 255.255.255.0
    !
    interface Vlan16
    ip address 10.28.16.254 255.255.255.0
    !
    interface Vlan17
    ip address 10.95.1.254 255.255.255.0
    !
    interface Vlan18
    ip address 10.95.2.254 255.255.255.0
    !
    interface Vlan19
    ip address 10.95.3.254 255.255.255.0
    !
    interface Vlan20
    ip address 10.95.4.254 255.255.255.0
    !
    interface Vlan21
    ip address 10.95.5.254 255.255.255.0
    !
    interface Vlan22
    ip address 10.95.6.254 255.255.255.0
    !
    interface Vlan23
    ip address 10.95.7.254 255.255.255.0
    !
    interface Vlan24
    ip address 10.95.8.254 255.255.255.0
    !
    interface Vlan25
    ip address 10.95.9.254 255.255.255.0
    !
    interface Vlan26
    ip address 10.95.10.254 255.255.255.0
    !
    interface Vlan27
    ip address 10.95.11.254 255.255.255.0
    !
    interface Vlan28
    ip address 10.95.12.254 255.255.255.0
    !
    interface Vlan29
    ip address 10.95.13.254 255.255.255.0
    !
    interface Vlan30
    ip address 10.95.14.254 255.255.255.0
    !
    interface Vlan31
    ip address 10.95.15.254 255.255.255.0
    !
    interface Vlan32
    ip address 10.95.16.254 255.255.255.0
    !
    interface Vlan100
    ip address 10.10.3.6 255.255.255.252
    ip router isis 100
    isis circuit-type level-2-only
    !
    interface Vlan200
    ip address 10.10.3.10 255.255.255.252
    ip router isis 100
    isis circuit-type level-2-only
    !
    router isis 100
    net 49.0000.1921.6812.00
    is-type level-2-only
    !
    router bgp 65002
    bgp router-id 192.168.1.12
    bgp log-neighbor-changes
    bgp graceful-restart restart-time 120
    bgp graceful-restart stalepath-time 360
    bgp graceful-restart
    network 10.28.1.0 mask 255.255.255.0
    network 10.28.2.0 mask 255.255.255.0
    network 10.28.3.0 mask 255.255.255.0
    network 10.28.4.0 mask 255.255.255.0
    network 10.28.5.0 mask 255.255.255.0
    network 10.28.6.0 mask 255.255.255.0
    network 10.28.7.0 mask 255.255.255.0
    network 10.28.8.0 mask 255.255.255.0
    network 10.28.9.0 mask 255.255.255.0
    network 10.28.10.0 mask 255.255.255.0
    network 10.28.11.0 mask 255.255.255.0
    network 10.28.12.0 mask 255.255.255.0
    network 10.28.13.0 mask 255.255.255.0
    network 10.28.14.0 mask 255.255.255.0
    network 10.28.15.0 mask 255.255.255.0
    network 10.28.16.0 mask 255.255.255.0
    network 10.95.1.0 mask 255.255.255.0
    network 10.95.2.0 mask 255.255.255.0
    network 10.95.3.0 mask 255.255.255.0
    network 10.95.4.0 mask 255.255.255.0
    network 10.95.5.0 mask 255.255.255.0
    network 10.95.6.0 mask 255.255.255.0
    network 10.95.7.0 mask 255.255.255.0
    network 10.95.8.0 mask 255.255.255.0
    network 10.95.9.0 mask 255.255.255.0
    network 10.95.10.0 mask 255.255.255.0
    network 10.95.11.0 mask 255.255.255.0
    network 10.95.12.0 mask 255.255.255.0
    network 10.95.13.0 mask 255.255.255.0
    network 10.95.14.0 mask 255.255.255.0
    network 10.95.15.0 mask 255.255.255.0
    network 10.95.16.0 mask 255.255.255.0
    network 192.168.1.12 mask 255.255.255.255
    neighbor internal peer-group
    neighbor internal password cisco
    neighbor internal update-source Loopback0
    neighbor internal send-community
    neighbor internal route-map as65002-export out
    neighbor 192.168.1.9 remote-as 65002
    neighbor 192.168.1.9 peer-group internal
    neighbor 192.168.1.9 route-map as65002-import-bangong in
    neighbor 192.168.1.10 remote-as 65002
    neighbor 192.168.1.10 peer-group internal
    neighbor 192.168.1.10 route-map as65002-import-yewu in
    maximum-paths ibgp 2
    !
    ip forward-protocol nd
    !
    ip bgp-community new-format
    no ip http server
    no ip http secure-server
    !
    !
    !
    !
    ip prefix-list as65002-bangong seq 1 permit 10.28.1.0/24
    ip prefix-list as65002-bangong seq 2 permit 10.28.2.0/24
    ip prefix-list as65002-bangong seq 3 permit 10.28.3.0/24
    ip prefix-list as65002-bangong seq 4 permit 10.28.4.0/24
    ip prefix-list as65002-bangong seq 5 permit 10.28.5.0/24
    ip prefix-list as65002-bangong seq 6 permit 10.28.6.0/24
    ip prefix-list as65002-bangong seq 7 permit 10.28.7.0/24
    ip prefix-list as65002-bangong seq 8 permit 10.28.8.0/24
    ip prefix-list as65002-bangong seq 9 permit 10.28.9.0/24
    ip prefix-list as65002-bangong seq 10 permit 10.28.10.0/24
    ip prefix-list as65002-bangong seq 11 permit 10.28.11.0/24
    ip prefix-list as65002-bangong seq 12 permit 10.28.12.0/24
    ip prefix-list as65002-bangong seq 13 permit 10.28.13.0/24
    ip prefix-list as65002-bangong seq 14 permit 10.28.14.0/24
    ip prefix-list as65002-bangong seq 15 permit 10.28.15.0/24
    ip prefix-list as65002-bangong seq 16 permit 10.28.16.0/24
    !
    ip prefix-list as65002-import-bangong seq 1 permit 10.158.1.0/24
    ip prefix-list as65002-import-bangong seq 2 permit 10.158.2.0/24
    ip prefix-list as65002-import-bangong seq 3 permit 10.158.3.0/24
    ip prefix-list as65002-import-bangong seq 4 permit 10.158.4.0/24
    ip prefix-list as65002-import-bangong seq 5 permit 10.158.5.0/24
    ip prefix-list as65002-import-bangong seq 6 permit 10.158.6.0/24
    ip prefix-list as65002-import-bangong seq 7 permit 10.158.7.0/24
    ip prefix-list as65002-import-bangong seq 8 permit 10.158.8.0/24
    ip prefix-list as65002-import-bangong seq 9 permit 10.158.9.0/24
    ip prefix-list as65002-import-bangong seq 10 permit 10.158.10.0/24
    ip prefix-list as65002-import-bangong seq 11 permit 10.158.11.0/24
    ip prefix-list as65002-import-bangong seq 12 permit 10.158.12.0/24
    ip prefix-list as65002-import-bangong seq 13 permit 10.158.13.0/24
    ip prefix-list as65002-import-bangong seq 14 permit 10.158.14.0/24
    ip prefix-list as65002-import-bangong seq 15 permit 10.158.15.0/24
    ip prefix-list as65002-import-bangong seq 16 permit 10.158.16.0/24
    !
    ip prefix-list as65002-import-yewu seq 1 permit 10.133.1.0/24
    ip prefix-list as65002-import-yewu seq 2 permit 10.133.2.0/24
    ip prefix-list as65002-import-yewu seq 3 permit 10.133.3.0/24
    ip prefix-list as65002-import-yewu seq 4 permit 10.133.4.0/24
    ip prefix-list as65002-import-yewu seq 5 permit 10.133.5.0/24
    ip prefix-list as65002-import-yewu seq 6 permit 10.133.6.0/24
    ip prefix-list as65002-import-yewu seq 7 permit 10.133.7.0/24
    ip prefix-list as65002-import-yewu seq 8 permit 10.133.8.0/24
    ip prefix-list as65002-import-yewu seq 9 permit 10.133.9.0/24
    ip prefix-list as65002-import-yewu seq 10 permit 10.133.10.0/24
    ip prefix-list as65002-import-yewu seq 11 permit 10.133.11.0/24
    ip prefix-list as65002-import-yewu seq 12 permit 10.133.12.0/24
    ip prefix-list as65002-import-yewu seq 13 permit 10.133.13.0/24
    ip prefix-list as65002-import-yewu seq 14 permit 10.133.14.0/24
    ip prefix-list as65002-import-yewu seq 15 permit 10.133.15.0/24
    ip prefix-list as65002-import-yewu seq 16 permit 10.133.16.0/24
    !
    ip prefix-list as65002-yewu seq 1 permit 10.95.1.0/24
    ip prefix-list as65002-yewu seq 2 permit 10.95.2.0/24
    ip prefix-list as65002-yewu seq 3 permit 10.95.3.0/24
    ip prefix-list as65002-yewu seq 4 permit 10.95.4.0/24
    ip prefix-list as65002-yewu seq 5 permit 10.95.5.0/24
    ip prefix-list as65002-yewu seq 6 permit 10.95.6.0/24
    ip prefix-list as65002-yewu seq 7 permit 10.95.7.0/24
    ip prefix-list as65002-yewu seq 8 permit 10.95.8.0/24
    ip prefix-list as65002-yewu seq 9 permit 10.95.9.0/24
    ip prefix-list as65002-yewu seq 10 permit 10.95.10.0/24
    ip prefix-list as65002-yewu seq 11 permit 10.95.11.0/24
    ip prefix-list as65002-yewu seq 12 permit 10.95.12.0/24
    ip prefix-list as65002-yewu seq 13 permit 10.95.13.0/24
    ip prefix-list as65002-yewu seq 14 permit 10.95.14.0/24
    ip prefix-list as65002-yewu seq 15 permit 10.95.15.0/24
    ip prefix-list as65002-yewu seq 16 permit 10.95.16.0/24
    !
    route-map as65002-export permit 10
    match ip address prefix-list as65002-bangong
    set community 65002:100
    !
    route-map as65002-export permit 20
    match ip address prefix-list as65002-yewu
    set community 65002:200
    !
    route-map as65002-import-yewu permit 10
    match ip address prefix-list as65002-import-yewu
    set local-preference 1200
    !
    route-map as65002-import-yewu permit 20
    !
    route-map as65001-import-bangong permit 10
    match ip address prefix-list as65002-import-bangong
    set local-preference 1200
    !
    route-map as65001-import-bangong permit 20
    !
    route-map as65002-import-bangong permit 10
    match ip address prefix-list as65002-import-bangong
    set local-preference 1200
    !
    route-map as65002-import-bangong permit 20
    !
    route-map import-com100 permit 10
    match ip address prefix-list fc
    set local-preference 1200
    !
    route-map import-com100 permit 20
    !
    route-map import-com200 permit 10
    match ip address prefix-list fd
    set local-preference 1200
    !
    route-map import-com200 permit 20
    !

    在XRV1上使用show ip bgp sum 查看BGP的邻居关系

    =====================================================================

    XRV1>show ip bgp summary
    BGP router identifier 192.168.1.1, local AS number 65000
    BGP table version is 2104, main routing table version 2104
    75 network entries using 18600 bytes of memory
    142 path entries using 17040 bytes of memory
    9/8 BGP path/bestpath attribute entries using 2232 bytes of memory
    2 BGP AS-PATH entries using 48 bytes of memory
    4 BGP community entries using 96 bytes of memory
    0 BGP route-map cache entries using 0 bytes of memory
    0 BGP filter-list cache entries using 0 bytes of memory
    BGP using 38016 total bytes of memory
    BGP activity 174/99 prefixes, 1758/1616 paths, scan interval 60 secs

    Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
    192.168.1.3 4 65000 4295 4421 2104 0 0 2d16h 3
    192.168.1.4 4 65000 4387 4532 2104 0 0 2d18h 2
    192.168.1.5 4 65000 4523 4548 2104 0 0 2d18h 68
    192.168.1.6 4 65000 4501 4534 2104 0 0 2d18h 68

    在XRV2上使用分别使用show ip bgp 10.158.1.0和show ip bgp 10.133.1.0查看路由的团体属性

    =====================================================================

    XRV1>show ip bgp 10.158.1.0
    BGP routing table entry for 10.158.1.0/24, version 2087
    Paths: (2 available, best #1, table default)
    Advertised to update-groups:
    2
    Refresh Epoch 4
    65001, (Received from a RR-client)
    192.168.1.5 (metric 20) from 192.168.1.5 (192.168.1.5)
    Origin IGP, metric 0, localpref 100, valid, internal, best
    Community: 65001:100
    rx pathid: 0, tx pathid: 0x0
    Refresh Epoch 4
    65001, (Received from a RR-client)
    192.168.1.6 (metric 20) from 192.168.1.6 (192.168.1.6)
    Origin IGP, metric 0, localpref 100, valid, internal
    Community: 65001:100
    rx pathid: 0, tx pathid: 0

    XRV1>show ip bgp 10.133.1.0
    BGP routing table entry for 10.133.1.0/24, version 2017
    Paths: (2 available, best #2, table default)
    Advertised to update-groups:
    2
    Refresh Epoch 4
    65001, (Received from a RR-client)
    192.168.1.5 (metric 20) from 192.168.1.5 (192.168.1.5)
    Origin IGP, metric 5000, localpref 100, valid, internal
    Community: 65001:200
    rx pathid: 0, tx pathid: 0
    Refresh Epoch 4
    65001, (Received from a RR-client)
    192.168.1.6 (metric 20) from 192.168.1.6 (192.168.1.6)
    Origin IGP, metric 0, localpref 100, valid, internal, best
    Community: 65001:200
    rx pathid: 0, tx pathid: 0x0
    XRV1>

    在XRV1上使用show ip bgp all查看BGP路由表

    =====================================================================

    XRV1>show ip bgp all
    For address family: IPv4 Unicast

    BGP table version is 2104, local router ID is 192.168.1.1
    Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
    r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
    x best-external, a additional-path, c RIB-compressed,
    Origin codes: i - IGP, e - EGP, ? - incomplete
    RPKI validation codes: V valid, I invalid, N Not found

    Network Next Hop Metric LocPrf Weight Path
    *>i 0.0.0.0 192.168.1.3 0 100 0 i
    * i 10.28.1.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.28.2.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.28.3.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.28.4.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.28.5.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.28.6.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.28.7.0/24 192.168.1.6 0 100 0 65002 i
    Network Next Hop Metric LocPrf Weight Path
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.28.8.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.28.9.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.28.10.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.28.11.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.28.12.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.28.13.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.28.14.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.28.15.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.28.16.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.95.1.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.95.2.0/24 192.168.1.6 0 100 0 65002 i
    Network Next Hop Metric LocPrf Weight Path
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.95.3.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.95.4.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.95.5.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.95.6.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.95.7.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.95.8.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.95.9.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.95.10.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.95.11.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.95.12.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.95.13.0/24 192.168.1.6 0 100 0 65002 i
    Network Next Hop Metric LocPrf Weight Path
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.95.14.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.95.15.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.95.16.0/24 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i
    * i 10.133.1.0/24 192.168.1.5 5000 100 0 65001 i
    *>i 192.168.1.6 0 100 0 65001 i
    * i 10.133.2.0/24 192.168.1.5 5000 100 0 65001 i
    *>i 192.168.1.6 0 100 0 65001 i
    * i 10.133.3.0/24 192.168.1.5 5000 100 0 65001 i
    *>i 192.168.1.6 0 100 0 65001 i
    * i 10.133.4.0/24 192.168.1.5 5000 100 0 65001 i
    *>i 192.168.1.6 0 100 0 65001 i
    * i 10.133.5.0/24 192.168.1.5 5000 100 0 65001 i
    *>i 192.168.1.6 0 100 0 65001 i
    * i 10.133.6.0/24 192.168.1.5 5000 100 0 65001 i
    *>i 192.168.1.6 0 100 0 65001 i
    * i 10.133.7.0/24 192.168.1.5 5000 100 0 65001 i
    *>i 192.168.1.6 0 100 0 65001 i
    * i 10.133.8.0/24 192.168.1.5 5000 100 0 65001 i
    Network Next Hop Metric LocPrf Weight Path
    *>i 192.168.1.6 0 100 0 65001 i
    * i 10.133.9.0/24 192.168.1.5 5000 100 0 65001 i
    *>i 192.168.1.6 0 100 0 65001 i
    * i 10.133.10.0/24 192.168.1.5 5000 100 0 65001 i
    *>i 192.168.1.6 0 100 0 65001 i
    * i 10.133.11.0/24 192.168.1.5 5000 100 0 65001 i
    *>i 192.168.1.6 0 100 0 65001 i
    * i 10.133.12.0/24 192.168.1.5 5000 100 0 65001 i
    *>i 192.168.1.6 0 100 0 65001 i
    * i 10.133.13.0/24 192.168.1.5 5000 100 0 65001 i
    *>i 192.168.1.6 0 100 0 65001 i
    * i 10.133.14.0/24 192.168.1.5 5000 100 0 65001 i
    *>i 192.168.1.6 0 100 0 65001 i
    * i 10.133.15.0/24 192.168.1.5 5000 100 0 65001 i
    *>i 192.168.1.6 0 100 0 65001 i
    * i 10.133.16.0/24 192.168.1.5 5000 100 0 65001 i
    *>i 192.168.1.6 0 100 0 65001 i
    *>i 10.158.1.0/24 192.168.1.5 0 100 0 65001 i
    * i 192.168.1.6 0 100 0 65001 i
    *>i 10.158.2.0/24 192.168.1.5 0 100 0 65001 i
    * i 192.168.1.6 0 100 0 65001 i
    *>i 10.158.3.0/24 192.168.1.5 0 100 0 65001 i
    Network Next Hop Metric LocPrf Weight Path
    * i 192.168.1.6 0 100 0 65001 i
    *>i 10.158.4.0/24 192.168.1.5 0 100 0 65001 i
    * i 192.168.1.6 0 100 0 65001 i
    *>i 10.158.5.0/24 192.168.1.5 0 100 0 65001 i
    * i 192.168.1.6 0 100 0 65001 i
    *>i 10.158.6.0/24 192.168.1.5 0 100 0 65001 i
    * i 192.168.1.6 0 100 0 65001 i
    *>i 10.158.7.0/24 192.168.1.5 0 100 0 65001 i
    * i 192.168.1.6 0 100 0 65001 i
    *>i 10.158.8.0/24 192.168.1.5 0 100 0 65001 i
    * i 192.168.1.6 0 100 0 65001 i
    *>i 10.158.9.0/24 192.168.1.5 0 100 0 65001 i
    * i 192.168.1.6 0 100 0 65001 i
    *>i 10.158.10.0/24 192.168.1.5 0 100 0 65001 i
    * i 192.168.1.6 0 100 0 65001 i
    *>i 10.158.11.0/24 192.168.1.5 0 100 0 65001 i
    * i 192.168.1.6 0 100 0 65001 i
    *>i 10.158.12.0/24 192.168.1.5 0 100 0 65001 i
    * i 192.168.1.6 0 100 0 65001 i
    *>i 10.158.13.0/24 192.168.1.5 0 100 0 65001 i
    * i 192.168.1.6 0 100 0 65001 i
    *>i 10.158.14.0/24 192.168.1.5 0 100 0 65001 i
    Network Next Hop Metric LocPrf Weight Path
    * i 192.168.1.6 0 100 0 65001 i
    *>i 10.158.15.0/24 192.168.1.5 0 100 0 65001 i
    * i 192.168.1.6 0 100 0 65001 i
    *>i 10.158.16.0/24 192.168.1.5 0 100 0 65001 i
    * i 192.168.1.6 0 100 0 65001 i
    *>i 61.135.142.1/32 192.168.1.4 0 100 0 i
    *>i 123.103.15.129/32
    192.168.1.3 0 100 0 i
    *> 192.168.1.1/32 0.0.0.0 0 32768 i
    r>i 192.168.1.3/32 192.168.1.3 0 100 0 i
    r>i 192.168.1.4/32 192.168.1.4 0 100 0 i
    r>i 192.168.1.5/32 192.168.1.5 0 100 0 i
    r>i 192.168.1.6/32 192.168.1.6 0 100 0 i
    *>i 192.168.1.7/32 192.168.1.5 0 100 0 65001 i
    * i 192.168.1.6 0 100 0 65001 i
    *>i 192.168.1.8/32 192.168.1.5 0 100 0 65001 i
    * i 192.168.1.6 0 100 0 65001 i
    * i 192.168.1.9/32 192.168.1.6 0 100 0 65002 i
    *>i 192.168.1.5 0 100 0 65002 i

    在XRV2上使用show ip route bgp 查看IP路由表中的BGP路由条目

    =====================================================================

    XRV1>show ip route bgp
    Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2
    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
    ia - IS-IS inter area, * - candidate default, U - per-user static route
    o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
    a - application route
    + - replicated route, % - next hop override, p - overrides from PfR

    Gateway of last resort is 192.168.1.3 to network 0.0.0.0

    B* 0.0.0.0/0 [200/0] via 192.168.1.3, 1d18h
    10.0.0.0/8 is variably subnetted, 76 subnets, 3 masks
    B 10.28.1.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.28.2.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.28.3.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.28.4.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.28.5.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.28.6.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.28.7.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.28.8.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.28.9.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.28.10.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.28.11.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.28.12.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.28.13.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.28.14.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.28.15.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.28.16.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.95.1.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.95.2.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.95.3.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.95.4.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.95.5.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.95.6.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.95.7.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.95.8.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.95.9.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.95.10.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.95.11.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.95.12.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.95.13.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.95.14.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.95.15.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.95.16.0/24 [200/0] via 192.168.1.5, 17:04:33
    B 10.133.1.0/24 [200/0] via 192.168.1.6, 16:11:17
    B 10.133.2.0/24 [200/0] via 192.168.1.6, 16:11:17
    B 10.133.3.0/24 [200/0] via 192.168.1.6, 16:11:17
    B 10.133.4.0/24 [200/0] via 192.168.1.6, 16:11:17
    B 10.133.5.0/24 [200/0] via 192.168.1.6, 16:11:17
    B 10.133.6.0/24 [200/0] via 192.168.1.6, 16:11:17
    B 10.133.7.0/24 [200/0] via 192.168.1.6, 16:11:17
    B 10.133.8.0/24 [200/0] via 192.168.1.6, 16:11:17
    B 10.133.9.0/24 [200/0] via 192.168.1.6, 16:11:17
    B 10.133.10.0/24 [200/0] via 192.168.1.6, 16:11:17
    B 10.133.11.0/24 [200/0] via 192.168.1.6, 16:11:17
    B 10.133.12.0/24 [200/0] via 192.168.1.6, 16:11:17
    B 10.133.13.0/24 [200/0] via 192.168.1.6, 16:11:17
    B 10.133.14.0/24 [200/0] via 192.168.1.6, 16:11:17
    B 10.133.15.0/24 [200/0] via 192.168.1.6, 16:11:17
    B 10.133.16.0/24 [200/0] via 192.168.1.6, 16:11:17
    B 10.158.1.0/24 [200/0] via 192.168.1.5, 00:55:23
    B 10.158.2.0/24 [200/0] via 192.168.1.5, 00:55:23
    B 10.158.3.0/24 [200/0] via 192.168.1.5, 00:55:23
    B 10.158.4.0/24 [200/0] via 192.168.1.5, 00:55:23
    B 10.158.5.0/24 [200/0] via 192.168.1.5, 00:55:23
    B 10.158.6.0/24 [200/0] via 192.168.1.5, 00:55:23
    B 10.158.7.0/24 [200/0] via 192.168.1.5, 00:55:23
    B 10.158.8.0/24 [200/0] via 192.168.1.5, 00:55:23
    B 10.158.9.0/24 [200/0] via 192.168.1.5, 00:55:23
    B 10.158.10.0/24 [200/0] via 192.168.1.5, 00:55:23
    B 10.158.11.0/24 [200/0] via 192.168.1.5, 00:55:23
    B 10.158.12.0/24 [200/0] via 192.168.1.5, 00:55:23
    B 10.158.13.0/24 [200/0] via 192.168.1.5, 00:55:23
    B 10.158.14.0/24 [200/0] via 192.168.1.5, 00:55:23
    B 10.158.15.0/24 [200/0] via 192.168.1.5, 00:55:23
    B 10.158.16.0/24 [200/0] via 192.168.1.5, 00:55:23
    61.0.0.0/32 is subnetted, 1 subnets
    B 61.135.142.1 [200/0] via 192.168.1.4, 1d18h
    123.0.0.0/32 is subnetted, 1 subnets
    B 123.103.15.129 [200/0] via 192.168.1.3, 1d18h
    192.168.1.0/32 is subnetted, 9 subnets
    B 192.168.1.7 [200/0] via 192.168.1.5, 00:55:23
    B 192.168.1.8 [200/0] via 192.168.1.5, 00:55:23
    B 192.168.1.9 [200/0] via 192.168.1.5, 17:04:33

    说明,由于在cisco的IOS中团体属性默认使用十进制的方式,为了方便查看使用ip bgp-community new-format使之转换为AS:NN格式

    ip bgp-community new-format

    由于BGP的团体属性是可选属性,需要手动在BGP路由协议进程下使能

    router bgp 65000
    bgp router-id 192.168.1.1
    bgp cluster-id 192.168.1.1
    bgp log-neighbor-changes
    bgp graceful-restart restart-time 120
    bgp graceful-restart stalepath-time 360
    bgp graceful-restart
    network 192.168.1.1 mask 255.255.255.255
    neighbor internal peer-group
    neighbor internal password cisco
    neighbor internal update-source Loopback0
    neighbor internal route-reflector-client
    neighbor internal send-community
    neighbor 192.168.1.3 remote-as 65000
    neighbor 192.168.1.3 peer-group internal
    neighbor 192.168.1.4 remote-as 65000
    neighbor 192.168.1.4 peer-group internal
    neighbor 192.168.1.5 remote-as 65000
    neighbor 192.168.1.5 peer-group internal
    neighbor 192.168.1.6 remote-as 65000
    neighbor 192.168.1.6 peer-group internal

    BGP团体属性包含三种类型,如下图:

    给路由打团体属性步骤如下:

    (1)先使用ip prefix匹配路由条目

    !
    ip prefix-list as65001-import-yewu seq 1 permit 10.95.1.0/24
    ip prefix-list as65001-import-yewu seq 2 permit 10.95.2.0/24
    ip prefix-list as65001-import-yewu seq 3 permit 10.95.3.0/24
    ip prefix-list as65001-import-yewu seq 4 permit 10.95.4.0/24
    ip prefix-list as65001-import-yewu seq 5 permit 10.95.5.0/24
    ip prefix-list as65001-import-yewu seq 6 permit 10.95.6.0/24
    ip prefix-list as65001-import-yewu seq 7 permit 10.95.7.0/24
    ip prefix-list as65001-import-yewu seq 8 permit 10.95.8.0/24
    ip prefix-list as65001-import-yewu seq 9 permit 10.95.9.0/24
    ip prefix-list as65001-import-yewu seq 10 permit 10.95.10.0/24
    ip prefix-list as65001-import-yewu seq 11 permit 10.95.11.0/24
    ip prefix-list as65001-import-yewu seq 12 permit 10.95.12.0/24
    ip prefix-list as65001-import-yewu seq 13 permit 10.95.13.0/24
    ip prefix-list as65001-import-yewu seq 14 permit 10.95.14.0/24
    ip prefix-list as65001-import-yewu seq 15 permit 10.95.15.0/24
    ip prefix-list as65001-import-yewu seq 16 permit 10.95.16.0/24

    (2)创建route-map匹配设定的ip prefix,打团体属性

    route-map as65001-export permit 10
    match ip address prefix-list as65001-bangong
    set community 65001:100
    !
    route-map as65001-export permit 20
    match ip address prefix-list as65001-yewu
    set community 65001:200
    !

    route-map as65001-export permit 30
    !

    (3)创建route-map匹配设定的ip prefix,打团体属性

    neighbor internal route-map as65001-export out
    关于route-map调用的方向,in方向表示接收路由的时候给相应的路由打团体属性,out表示发布路由的时候给相应的路由打团体属性。

  • 相关阅读:
    centos7 下载并安装.netcore SKD,运行.netcore 应用程序
    小网站到大网站架构的演化之路 学习总结
    suppersocke,websocket 功能学习总结
    定时任务 quartZ
    RabbitMQ 安装和功能点
    rabbitmq 发送 消费消息
    富文本编辑器
    vue AES加密解密
    css动画库
    el-table合并表格
  • 原文地址:https://www.cnblogs.com/networking/p/11392587.html
Copyright © 2020-2023  润新知