Link to home
Start Free TrialLog in
Avatar of zillah
zillahFlag for Australia

asked on

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 ?















Avatar of Les Moore
Les Moore
Flag of United States of America image

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.

Avatar of zillah

ASKER

((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



ASKER CERTIFIED SOLUTION
Avatar of Les Moore
Les Moore
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial