Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Quick prefix-list Q

Hi there,

I have a new router with a new ISP and I want to test that the session comes up, without advertising my /24 network. I have the new neighbours set up with a prefix list called notransit. Can I just change the notransit prefix list from:

ip prefix-list notransit seq 5 permit x.x.x.0/24

to:

ip prefix-list notransit seq 5 deny x.x.x.0/24

And then change it back afterwards? Or would you recommend to remove all prefix list entries (from neighbours)?

Many thanks!

J

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Quick prefix-list Q

Hello!

The simplest solution is not to advertise your networks to peer. By having no network statement under bgp config and not route-map / prefix-list with neighbor statement you are sure that no networks will be advertise. In this case you will still receive networks from your peer. If you would like not to receive anything put a

ip prefix-list notransit seq 5 deny 0.0.0.0/0

and add this to

neighbor x.x.x.x prefix-list notransit in

Your solution is good to for not advertising your networks.

Cheers,

Calin

2 REPLIES

Re: Quick prefix-list Q

Hello!

The simplest solution is not to advertise your networks to peer. By having no network statement under bgp config and not route-map / prefix-list with neighbor statement you are sure that no networks will be advertise. In this case you will still receive networks from your peer. If you would like not to receive anything put a

ip prefix-list notransit seq 5 deny 0.0.0.0/0

and add this to

neighbor x.x.x.x prefix-list notransit in

Your solution is good to for not advertising your networks.

Cheers,

Calin

New Member

Re: Quick prefix-list Q

Great, thanks Calin, I just removed the statements in the end.

Regards,

J

103
Views
0
Helpful
2
Replies
CreatePlease to create content