cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6614
Views
0
Helpful
5
Replies

BGP default route deny

Krasnoperov
Level 1
Level 1

Hi, I have a bgp peering with my ISP, and it advertise to me just default route, and I see this

B*    0.0.0.0/0 [20/0] via xx.xx.xx.xx, 00:00:23

for some reason sometimes I need to remove this route from my routing table, how can I do this?

I trying next, but unsuccesful:

neighbor xx.xx.xx.xx prefix-list deny_def in

neighbor xx.xx.xx.xx route-map map-ASXXX-XXX-in in

ip prefix-list deny_def: 2 entries

   seq 5 deny 0.0.0.0/32

   seq 10 permit 0.0.0.0/0 le 32

route-map map-ASXXX-XXX-in, deny, sequence 20

  Match clauses:

    ip address prefix-lists: gray

  Set clauses:

  Policy routing matches: 0 packets, 0 bytes

ip prefix-list gray: 2 entries

   seq 67 permit 0.0.0.0/32

   seq 68 deny 0.0.0.0/0 le 32

1 Accepted Solution

Accepted Solutions

Hi,

seq 5 deny 0.0.0.0/32  this should be 0

And no need to use both the prefix-list and route-map

Regards.

Alain.

Don't forget to rate helpful posts.

View solution in original post

5 Replies 5

sfaizul
Level 1
Level 1

Instead of using prefix-list  can you please use access-list  and update with your findings.

Regards

Syed Faizullah

how this ACL should looks like?

why prefix-list didn't work?

Hi,

seq 5 deny 0.0.0.0/32  this should be 0

And no need to use both the prefix-list and route-map

Regards.

Alain.

Don't forget to rate helpful posts.

Hi,

Yes, you are correct. The document is wrong on this subject. I've just submitted a notification regarding this document. Hopefully, it will get corrected soon.

Best regards,

Peter

Review Cisco Networking products for a $25 gift card