29 lines
746 B
Text
29 lines
746 B
Text
|
!
|
||
|
router bgp 65002
|
||
|
no bgp ebgp-requires-policy
|
||
|
bgp conditional-advertisement timer 5
|
||
|
neighbor 192.168.1.1 remote-as external
|
||
|
neighbor 192.168.1.1 timers 3 10
|
||
|
neighbor 192.168.2.1 remote-as external
|
||
|
neighbor 192.168.2.1 timers 3 10
|
||
|
address-family ipv4 unicast
|
||
|
redistribute static
|
||
|
neighbor 192.168.1.1 advertise-map advertise exist-map exist
|
||
|
neighbor 192.168.1.1 route-map deny-all out
|
||
|
neighbor 192.168.2.1 route-map exist in
|
||
|
exit-address-family
|
||
|
!
|
||
|
ip prefix-list exist seq 5 permit 172.16.255.3/32
|
||
|
ip prefix-list advertise seq 5 permit 172.16.255.2/32
|
||
|
!
|
||
|
route-map advertise permit 10
|
||
|
match ip address prefix-list advertise
|
||
|
exit
|
||
|
!
|
||
|
route-map exist permit 10
|
||
|
match ip address prefix-list exist
|
||
|
exit
|
||
|
!
|
||
|
route-map deny-all deny 10
|
||
|
exit
|