cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2062
Views
5
Helpful
2
Replies

IP Prefix-List Question

Mavrick25
Level 1
Level 1

Hey,

Some clarity..

I want to allow the default into my AS but block everything else..

Would the config be:

ip prefix-list permit seq 5 permi 0.0.0.0/0
ip prefix list deny seq 10 deny 0.0.0.0/0 le 32

or could we use

seq 5 deny 0.0.0.0/1 le 32

Or both would work..

Please let me know..

MAv

2 Accepted Solutions

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

Mavrick25 wrote:

Hey,

Some clarity..

I want to allow the default into my AS but block everything else..

Would the config be:

ip prefix-list permit seq 5 permi 0.0.0.0/0
ip prefix list deny seq 10 deny 0.0.0.0/0 le 32

or could we use

seq 5 deny 0.0.0.0/1 le 32

Or both would work..

Please let me know..

MAv

Mav

The config would be the first one ie. permit the default-route then deny everything else. The second one of just denying won't work.

Jon

View solution in original post

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Paolo,

I hope you are well

there is an implicit deny at the end of a prefix-list like in an access-list.

So if you want to accept or send just a default route, you need just the first line as noted by Jon

Jon: the second line is not necessary or also wrong in this way?

I would say it is not necessary.

Edit:

a name has to be given to the prefix-list let's consider this just a mistyping

Hope to help

Giuseppe

View solution in original post

2 Replies 2

Jon Marshall
Hall of Fame
Hall of Fame

Mavrick25 wrote:

Hey,

Some clarity..

I want to allow the default into my AS but block everything else..

Would the config be:

ip prefix-list permit seq 5 permi 0.0.0.0/0
ip prefix list deny seq 10 deny 0.0.0.0/0 le 32

or could we use

seq 5 deny 0.0.0.0/1 le 32

Or both would work..

Please let me know..

MAv

Mav

The config would be the first one ie. permit the default-route then deny everything else. The second one of just denying won't work.

Jon

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Paolo,

I hope you are well

there is an implicit deny at the end of a prefix-list like in an access-list.

So if you want to accept or send just a default route, you need just the first line as noted by Jon

Jon: the second line is not necessary or also wrong in this way?

I would say it is not necessary.

Edit:

a name has to be given to the prefix-list let's consider this just a mistyping

Hope to help

Giuseppe

Review Cisco Networking products for a $25 gift card