Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1395
  • Last Modified:

ip prefix-list and same sequence number

If I have these access prefix lists have been configured under same Router, can I have these sequence numbers (number 5 was configured with two different prefix-list names) in the configuration below ? :

ip prefix-list Peter seq 5 permit 205.13.2.3/32
ip prefix-list John seq 5 permit 164.2.7.0/24
ip prefix-list John seq 15 permit 151.2.7.0/24



I feel the configuration should be like below :

ip prefix-list Peter seq 5 permit 205.13.2.3/32
ip prefix-list John seq 15 permit 164.2.7.0/24
ip prefix-list John seq 15 permit 151.2.7.0/24



or as alternate solution it can be like below as well:

ip prefix-list Peter seq 5 permit 205.13.2.3/32
ip prefix-list John seq 10 permit 164.2.7.0/24
ip prefix-list John seq 15 permit 151.2.7.0/24



Any comment to my thought ?















0
zillah
Asked:
zillah
  • 2
1 Solution
 
lrmooreCommented:
The first one.
Peter is one list by itself and has default seq 5
John is a separate list and would start at seq 5, next entry seq 10, next entry seq 15, etc.

You do not want to put the same sequence number to 2 lines of the same list as your middle example.
There is no value in starting the sequence # in the 2nd list at 10, but neither is there harm.

0
 
zillahAuthor Commented:
((You do not want to put the same sequence number to 2 lines of the same list as your middle example)).
I should have tried this on a router, but it was not handy at the time of posting this thread,,,,when I tried on a router the result was this :

Router(config)#ip prefix-list Peter seq 5 permit 205.13.2.3/32
Router(config)#ip prefix-list John seq 15 permit 164.2.7.0/24
Router(config)#ip prefix-list John seq 15 permit 151.2.7.0/24
%Insertion failed - seq # exists with different policy: 15



0
 
lrmooreCommented:
>Any comment to my thought ?
I made a comment. There was no real question. The author's post simply confirmed my statement.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now