summaryrefslogtreecommitdiffstats
path: root/tests/topotests/bgp_aigp/r4/bgpd.conf
blob: 2cdf84a1b38b74b18e1bee6dcb37db47feebcf3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
router bgp 65001
 no bgp ebgp-requires-policy
 no bgp network import-check
 bgp route-reflector allow-outbound-policy
 neighbor 192.168.24.2 remote-as internal
 neighbor 192.168.24.2 timers 1 3
 neighbor 192.168.24.2 timers connect 1
 neighbor 192.168.24.2 aigp
 neighbor 192.168.24.2 route-reflector-client
 neighbor 10.0.0.6 remote-as internal
 neighbor 10.0.0.6 timers 1 3
 neighbor 10.0.0.6 timers connect 1
 neighbor 10.0.0.6 update-source lo
 address-family ipv4
  redistribute connected route-map connected-to-bgp
  redistribute ospf route-map ospf-to-bgp
  neighbor 192.168.24.2 route-map set-nexthop out
 exit-address-family
!
ip prefix-list p66 seq 5 permit 10.0.6.6/32
!
route-map ospf-to-bgp permit 10
 match ip address prefix-list p66
 set aigp igp-metric
!
! Two OSPF domains should be isolated - otherwise the connected routes
! on r4 would be advertised to r3 (via r4 -> r6 -> r5 -> r3), and can
! mess up bgp bestpath calculation (igp metrics for the BGP nexthops).
!
route-map connected-to-bgp permit 10
 set community no-advertise
!
route-map set-nexthop permit 10
 set ip next-hop peer-address
exit
!