BGP Conditional Route Injection
BGP Conditional Route Injection
R1:
interface Tunnel0
ip ospf 1 area 0
!
interface GigabitEthernet0/1
ip ospf 1 area 0
!
interface GigabitEthernet0/2
ip ospf 1 area 0
!
interface Loopback0
ip ospf 1 area 0
!
router bgp 100
neighbor 150.1.5.5 remote-as 100
neighbor 150.1.5.5 update-source Loopback0
R2:
interface Tunnel0
ip ospf 1 area 0
!
interface GigabitEthernet0/1
ip ospf 1 area 0
!
interface Loopback0
ip ospf 1 area 0
!
router bgp 100
neighbor 150.1.5.5 remote-as 100
neighbor 150.1.5.5 update-source Loopback0
R3:
interface Tunnel0
ip ospf 1 area 0
!
interface GigabitEthernet0/1
ip ospf 1 area 0
!
interface GigabitEthernet0/2
ip ospf 1 area 0
!
interface Loopback0
ip ospf 1 area 0
!
ip prefix-list INJECT-PREFIXES permit 155.1.10.0/24
!
ip prefix-list R5 permit 150.1.5.5/32
!
ip prefix-list HOST8-HOST10-SUMMARY permit 155.1.8.0/22
!
route-map EXIST-MAP permit 10
match ip route-source prefix-list R5
match ip address prefix-list HOST8-HOST10-SUMMARY
!
route-map INJECT-MAP permit 10
set ip address prefix-list INJECT-PREFIXES
!
router bgp 100
bgp inject-map INJECT-MAP exist-map EXIST-MAP
neighbor 150.1.5.5 remote-as 100
neighbor 150.1.5.5 update-source Loopback0
neighbor 150.1.5.5 next-hop-self
neighbor 155.1.37.7 remote-as 200
R4:
interface Tunnel0
ip ospf 1 area 0
!
interface GigabitEthernet0/1
ip ospf 1 area 0
!
interface GigabitEthernet0/2
ip ospf 1 area 0
!
interface Loopback0
ip ospf 1 area 0
!
router bgp 100
neighbor 150.1.5.5 remote-as 100
neighbor 150.1.5.5 update-source Loopback0
R5:
interface Tunnel0
ip ospf network point-to-multipoint
ip ospf hello-interval 10
ip ospf 1 area 0
!
interface GigabitEthernet0/1
ip ospf 1 area 0
!
interface Loopback0
ip ospf 1 area 0
!
router bgp 100
network 155.1.5.0 mask 255.255.255.0
neighbor IBGP peer-group
neighbor IBGP remote-as 100
neighbor IBGP update-source Loopback0
neighbor IBGP route-reflector-client
neighbor IBGP next-hop-self
neighbor 150.1.1.1 peer-group IBGP
neighbor 150.1.2.2 peer-group IBGP
neighbor 150.1.3.3 peer-group IBGP
neighbor 150.1.4.4 peer-group IBGP
neighbor 150.1.6.6 peer-group IBGP
neighbor 155.1.58.8 remote-as 8.10
R6:
interface GigabitEthernet0/0
ip ospf 1 area 0
!
interface Loopback0
ip ospf 1 area 0
!
ip prefix-list INJECT-PREFIXES permit 155.1.8.0/24
!
ip prefix-list R5 permit 150.1.5.5/32
!
ip prefix-list HOST8-HOST10-SUMMARY permit 155.1.8.0/22
!
route-map EXIST-MAP permit 10
match ip route-source prefix-list R5
match ip address prefix-list HOST8-HOST10-SUMMARY
!
route-map INJECT-MAP permit 10
set ip address prefix-list INJECT-PREFIXES
!
router bgp 100
bgp inject-map INJECT-MAP exist-map EXIST-MAP
neighbor 150.1.5.5 remote-as 100
neighbor 150.1.5.5 update-source Loopback0
neighbor 150.1.5.5 next-hop-self
neighbor 155.1.67.7 remote-as 200
R7:
router bgp 200
network 155.1.7.0 mask 255.255.255.0
neighbor 155.1.79.9 remote-as 200
neighbor 155.1.79.9 next-hop-self
neighbor 155.1.37.3 remote-as 100
neighbor 155.1.67.6 remote-as 100
R8:
router bgp 8.10
aggregate-address 155.1.8.0 255.255.252.0 summary-only
network 155.1.8.0 mask 255.255.255.0
neighbor 155.1.58.5 remote-as 100
neighbor 155.1.108.10 remote-as 8.10
neighbor 155.1.108.10 next-hop-self
R9:
router bgp 200
network 155.1.9.0 mask 255.255.255.0
neighbor 155.1.79.7 remote-as 200
R10:
router bgp 8.10
network 155.1.10.0 mask 255.255.255.0
neighbor 155.1.108.8 remote-as 8.10