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

Prefix-List

Rupesh Kashyap
Level 1
Level 1

Hi, I have to open 112.0.0.0/8, 113.0.0.0/8,114.0.0.0/8,115.0.0.0/8,116.0.0.0/8,117.0.0.0/8,118.0.0.0/8 & 119.0.0.0/8 in Prefix list, but in one line. Please help how can I use le & ge funda for that. I need to use only one line.

5 Replies 5

Harold Ritter
Spotlight
Spotlight

Rupesh,

These 8 prefixes all fit inside 112/5 as the first 5 bits are identical.

The following line should therefore do the job.

ip prefix-list test seq 5 permit 112.0.0.0/5 ge 8 le 8

Regards

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

what about if all subnet mask will 24 ?

Should prefix list like-

ip prefix-list test seq 5 permit 112.0.0.0/5 ge 24 le 24 ?

If they're not ever going to be longer than 24, you should be able to do:

ip prefix-list test permit 112.0.0.0/5 le 24

HTH,

John

HTH, John *** Please rate all useful posts ***

Rupesh,

That is correct. Only the /24 subnets will match.

Regards

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Harold,

I'm just getting into the prefix-lists. Would you be able to just use the le 24 to match up to 24 bits? You wouldn't need the ge 24, right? Or am I wrong on this?

Thanks,

John

HTH, John *** Please rate all useful posts ***