40 lines
1,006 B
Text
40 lines
1,006 B
Text
!
|
|
!debug bgp conditional-advertisement
|
|
!debug bgp updates
|
|
!
|
|
int r2-eth0
|
|
ip address 192.168.1.2/24
|
|
!
|
|
int r2-eth1
|
|
ip address 192.168.2.2/24
|
|
!
|
|
router bgp 65000
|
|
no bgp ebgp-requires-policy
|
|
bgp conditional-advertisement timer 5
|
|
neighbor 192.168.1.1 remote-as internal
|
|
neighbor 192.168.1.1 timers 1 3
|
|
neighbor 192.168.1.1 timers connect 1
|
|
neighbor 192.168.2.1 remote-as internal
|
|
neighbor 192.168.2.1 timers 1 3
|
|
neighbor 192.168.2.1 timers connect 1
|
|
address-family ipv4 unicast
|
|
redistribute static
|
|
neighbor 192.168.1.1 advertise-map advertise-map exist-map exist-map
|
|
neighbor 192.168.1.1 route-map deny-all out
|
|
exit-address-family
|
|
!
|
|
ip route 10.10.10.1/32 r2-eth0
|
|
ip route 10.10.10.2/32 r2-eth0
|
|
!
|
|
ip prefix-list default seq 5 permit 0.0.0.0/0
|
|
ip prefix-list advertise seq 5 permit 10.10.10.1/32
|
|
!
|
|
route-map deny-all deny 10
|
|
!
|
|
route-map exist-map permit 10
|
|
match ip address prefix-list default
|
|
!
|
|
route-map advertise-map permit 10
|
|
match ip address prefix-list advertise
|
|
set community 65000:1
|
|
!
|