cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
305
Views
0
Helpful
2
Replies

Quick prefix-list Q

jigsaw2026
Level 1
Level 1

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

Calin C.
Level 5
Level 5

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

View solution in original post

2 Replies 2

Calin C.
Level 5
Level 5

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

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

Regards,

J

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card