11-11-2008 10:52 PM - edited 03-04-2019 12:17 AM
guys can we put just a prefix-list in route-map....like for example
router ospf 3
redistribute rip subnets route-map external
route-map external
ip prefix-list external permit X.X.X.X/X
i have seen this config and its without set and match its bit wired for me as i have never seen this config before??? is it right??? secondly on OSPF on ASBR when we redistrubte other protocols which metric we shd put how we calculate that which metric of ospf shd be tagged...i m bit weak in redistribution can someone please tell me thismagic.....thanks alot
11-12-2008 12:59 AM
Hi,
You can match an ACL or a prefix-list under a route-map but you can not included the prefix-list command itself.
See the outputs from the CLI below:
R6(config)#route-map external
R6(config-route-map)#?
Route Map configuration commands:
continue Continue on a different entry within the route-map
default Set a command to its defaults
description Route-map comment
exit Exit from route-map configuration mode
help Description of the interactive help system
match Match values from routing table
no Negate a command or set its defaults
set Set values in destination routing protocol
R6(config-route-map)#match ip address ?
<1-199> IP access-list number
<1300-2699> IP access-list number (expanded range)
WORD IP access-list name
prefix-list Match entries of prefix-lists
R6(config-route-map)#match ip address pre
R6(config-route-map)#match ip address prefix-list ?
WORD IP prefix-list name
match ip address
http://www.cisco.com/en/US/docs/ios/12_3/iproute/command/reference/ip2_k1g.html#wp1058320
-----
When you redistribute any protocol into OSPF if you do not specify the metric, the default cost of 1 is applied for BGP and 20 for all other protocols. Changing the metirc or tagging any specific routes while redistributing depends on the requirements and is not mandatory.
http://www.ciscopress.com/articles/article.asp?p=27573
HTH,
~Vaibhav
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