cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2290
Views
0
Helpful
1
Replies

deny BGP default route

Amos Kafwembe
Level 1
Level 1

Hi guys,

 

If i am receiving a full bgp table from my provider and the table includs the default route. how do i filter out the default route?

 

1 Reply 1

Harold Ritter
Level 12
Level 12

You can use a simple prefix-list to achieve that.

 

router bgp xxx
 neighbor 192.168.1.1 prefix-list no_default in
!
ip prefix-list no_default seq 5 deny 0.0.0.0/0     (deny the default route)
ip prefix-list no_default seq 10 permit 0.0.0.0/0 le 32   (accept anything else)

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México