Cisco Support Community
Community Member


guys can we put just a prefix-list in 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

Cisco Employee

Re: route-map


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


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


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.



CreatePlease to create content