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表示发布路由的时候给相应的路由打团体属性。
BGP团体属性的应用案例的更多相关文章
- HCNP Routing&Switching之BGP团体属性和团体属性过滤器
前文我们了解了BGP的路由过滤已经as-path过滤器的使用相关话题,回顾请参考https://www.cnblogs.com/qiuhom-1874/p/15542559.html:今天我们来聊一聊 ...
- BGP扩展属性
安全特性: BGP安全特性: MD5 GTSM:通用TTL安全保护机制通过对TTL的检测来达到防止攻击的目的,如果攻击者模拟真实的BGP协议报文(TCP),对一台路由器不断地发送报文,路由器接收报文后 ...
- BGP路由属性详解
Weight属性:cisco私有的BGP属性参数,它只适用于一台路由器中的路由,也就是不会传递给任何其他的路由器.他的取值范围为<0-65535>,这个数越大优先级越高,默认从邻居学到的路 ...
- HCNP Routing&Switching之BGP路由属性和优选规则
前文我们了解了BGP防环机制和路由聚合相关话题,回顾请参考https://www.cnblogs.com/qiuhom-1874/p/15458110.html:今天我们来聊一聊BGP路由属性和选路规 ...
- huawei 通过BGP的团体属性进行路由控制
网络拓扑 XRV1的配置: =========================================================================== # sysname ...
- Image.FrameDimensionsList 属性-----具体使用案例
上一篇中说到了图片的具体产生以及属性,本篇主要是具体的使用,详情案例见下面的具体视图及代码 using System;using System.Collections.Generic;using Sy ...
- Image.FrameDimensionsList 属性-----具体使用案例2
图片的拆分 1.保存png图片 using System; using System.Collections.Generic;using System.ComponentModel;using Sys ...
- 一个休假申请页对input标签各种属性的用法案例(手机端)
<%@ page language="java" import="java.util.*" contentType="text/html; ch ...
- html基础 表单相关属性综合实战案例 附有注释
html结构代码: <form > <!-- form 为了让重置按钮生效--> <h1>青春不常在,抓紧谈恋爱</h1> <hr> 昵称: ...
随机推荐
- 杨柳目-杨柳科-Info-新闻:“北京三害”之一,危害堪比雾霾和沙尘,杨絮为什么会肆虐
ylbtech-杨柳目-杨柳科-Info-新闻:“北京三害”之一,危害堪比雾霾和沙尘,杨絮为什么会肆虐 1.返回顶部 1. “北京三害”之一,危害堪比雾霾和沙尘,杨絮为什么会肆虐 18-05-0817 ...
- ASO优化经验:APP关键字优化的技巧
当开发首款产品的时候,可能你根本连ASO是什么都不知道,因为有太多别的事情需要你做.大多数新手开发商甚至到游戏要进入Appstore的时候才知道有“关键字”这件事要去研究.正因为这些开发商几乎没有在关 ...
- UI2CODE复杂背景无法识别?闲鱼工程师这样打造高准确率方案
引言: 复杂背景内容提取指的是从复杂的背景中提取出特定的内容,例如在图片中提取特定的文字,在图片中提取特定的叠加图层等等.这是一个业界难题,基于传统的图像处理的方法存在准确率和召回率的问题,没法解决语 ...
- 创建linux中的nginx+php7+mysql环境----PHP7安装
默认CentOs 的源 并没有php7的安装路径,所以需要手动添加源: # rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-l ...
- HDU 5672 String【尺取法】
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5672 题意: 有一个10≤长度≤1,000,000的字符串,仅由小写字母构成.求有多少个子串,包含有 ...
- python 字符串(str)
- Redis源码解析:08对象
前面介绍了Redis用到的所有主要数据结构,比如简单动态字符串(SDS).双端链表.字典.压缩列表.整数集合等.然而Redis并没有直接使用这些数据结构来实现键值对数据库,而是基于这些数据结构创建了一 ...
- Java中的Runnable、Callable、Future、FutureTask的区别与示例
Java中存在Runnable.Callable.Future.FutureTask这几个与线程相关的类或者接口,在Java中也是比较重要的几个概念,我们通过下面的简单示例来了解一下它们的作用于区别. ...
- behavior planning——inputs to transition functions
the answer is that we have to pass all of the data into transition function except for the previous ...
- PHP 面试题三
1.nginx使用哪种网络协议? nginx是应用层 我觉得从下往上的话 传输层用的是tcp/ip 应用层用的是http fastcgi负责调度进程 2. <? echo 'hello tush ...