11-10-2012 07:49 AM - edited 03-04-2019 06:05 PM
Hi,
I was doing some testing & came across a picular issue. 3 nos. of routers connected to each are running EIGRP. I create 5 prefix-list for some networks.
I call these prefix-list in route-map. The syntax of the same is given below.
Router# show route-map rm-man-eigrp-B-out
route-map EIGRP_Out, deny, sequence 10
Match clauses:
ip address prefix-lists: eigrp-deny
Set clauses:
Policy routing matches: 0 packets, 0 bytes
route-map EIGRP_Out, deny, sequence 20
Match clauses:
ip address prefix-lists: eigrp-deny-global ! Global subnets
Set clauses:
Policy routing matches: 0 packets, 0 bytes
route-map EIGRP_Out, permit, sequence 30
Match clauses:
ip address prefix-lists: eigrp-permit
Set clauses:
Policy routing matches: 0 packets, 0 bytes
route-map EIGRP_Out, permit, sequence 40
Match clauses:
ip address prefix-lists: eigrp-permit-global
Set clauses:
Policy routing matches: 0 packets, 0 bytes
After redistributing the route-map in EIGRP, I noticed that all routes are getting denied if am adding comment (in this case: ! Global Subnet).
What I want to know that is it possible to add comment like this or not. I have tested it now 2821 & ASR1002 routers.
Regards,
11-10-2012 08:01 PM
Hi
I tested this on 2951 running 15.1(4)M1 code - it gives me the parser error when I execute the command although the command is accepted.
h323cucm8#sh ver | i .bin
System image file is "flash:c2951-universalk9_npe-mz.SPA.151-4.M1.bin"
h323cucm8#sh ver | i 29
Cisco IOS Software, C2951 Software (C2951-UNIVERSALK9_NPE-M), Version 15.1(4)M1, RELEASE SOFTWARE (fc1)
h323cucm8 uptime is 1 hour, 29 minutes
System image file is "flash:c2951-universalk9_npe-mz.SPA.151-4.M1.bin"
Cisco CISCO2951/K9 (revision 1.1) with 479232K/45056K bytes of memory.
*0 CISCO2951/K9 xxxxxxxxxxx
Technology Package License Information for Module:'c2951'
h323cucm8#conf t
Enter configuration commands, one per line. End with CNTL/Z.
h323cucm8(config)#route-map test deny 10
h323cucm8(config-route-map)#match ip add prefix-list test1 ?
WORD IP prefix-list name
h323cucm8(config-route-map)#match ip add prefix-list test1 ! test2
% Ambiguous command: "match ip add prefix-list test1 ! test2" >>>>>>>>>>>>>
h323cucm8(config-route-map)#do sh run | sec route-map test
route-map test deny 10
match ip address prefix-list test1 ! test2
Then I tested following -
Router1 -------------- Router2
Router1 :
ip route 11.0.0.0 255.255.255.0 Null0
ip route 22.0.0.0 255.255.255.0 Serial0/1.1
!
ip prefix-list test1 seq 5 permit 22.0.0.0/24
!
route-map test permit 10
match ip address prefix-list test1 ! test2
router eigrp 1
redistribute static metric 1 1 1 1 1 route-map test
network 155.1.146.1 0.0.0.0
no auto-summary
Router2 :
router eigrp 1
network 155.1.146.4 0.0.0.0
no auto-summary
and on R2 I could see the all the static routes getting redistributed -
sh ip eigrp topo
IP-EIGRP Topology Table for AS(1)/ID(150.1.4.4)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 155.1.146.0/24, 1 successors, FD is 281600
via Connected, FastEthernet0/1
P 11.0.0.0/24, 0 successors, FD is Inaccessible
via 155.1.146.1 (2560025856/2560000256), FastEthernet0/1
P 22.0.0.0/24, 0 successors, FD is Inaccessible
via 155.1.146.1 (2560025856/2560000256), FastEthernet0/1
and if I modify the route-map statement on Router1 as -
route-map test permit 10
match ip address prefix-list test1
Then on R2 -
sh ip eigrp topo
IP-EIGRP Topology Table for AS(1)/ID(150.1.4.4)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 155.1.146.0/24, 1 successors, FD is 281600
via Connected, FastEthernet0/1
P 22.0.0.0/24, 0 successors, FD is Inaccessible
via 155.1.146.1 (2560025856/2560000256), FastEthernet0/1
If you are specifying multiple prefix-lists in route-map then it takes it as LOGICAL OR.
I tried to define, if it's possible to crate a prefix-list with the "!" as it's name -
h323cucm8(config)#ip prefix-list ?
WORD Name of a prefix list
sequence-number Include/exclude sequence numbers in NVGEN
h323cucm8(config)#ip prefix-list ! ?
WORD Name of a prefix list
sequence-number Include/exclude sequence numbers in NVGEN
h323cucm8(config)#ip prefix-list ! ?
WORD Name of a prefix list
sequence-number Include/exclude sequence numbers in NVGEN
h323cucm8(config)#ip prefix-list ! test1 ?
WORD Name of a prefix list
sequence-number Include/exclude sequence numbers in NVGEN
h323cucm8(config)#ip prefix-list ! test1 permit 10.0.0.0/24
^
% Invalid input detected at '^' marker.
I don't know if the behavior will vary based on the IOS used, but if IOS is throwing the parser error - then I would not use it, instead I will prefer using something like this -
h323cucm8(config)#route-map test permit 10
h323cucm8(config-route-map)#description Global subnets
h323cucm8(config-route-map)#match ip address prefix-list test1
Also I have not seen any sh command giving the outputs including the comments (starting with !)
- HTH
Rahul
11-11-2012 05:30 AM
Hi,
I believe your router is matching a non-existing prefix-list "eigrp-deny-global ! Global subnets".
Why don't you use a standard command
route-map EIGRP_Out deny 20
description Global subnets
match ip address prefix-lists eigrp-deny-global
instead?
HTH,
Milan
11-12-2012 03:38 AM
Hi ,
Can you please share your config of prefix list and route map.It will help is better understanding of the feature.
Thanks
Vinay
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide