10-16-2011 10:03 PM - edited 03-04-2019 01:57 PM
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
Solved! Go to Solution.
10-16-2011 11:48 PM
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.
10-16-2011 10:21 PM
Instead of using prefix-list can you please use access-list and update with your findings.
Regards
Syed Faizullah
10-16-2011 11:12 PM
how this ACL should looks like?
why prefix-list didn't work?
10-16-2011 11:48 PM
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.
10-17-2011 12:20 AM
thanks, it works
strange but in Cisco docs it look like this
http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a00801310cb.shtml#defaultroutes
10-17-2011 02:57 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide