Re: Route map permit statements

From: Carlos G Mendioroz (tron@huapi.ba.ar)
Date: Thu Sep 30 2004 - 12:46:04 GMT-3


Correct.

Drew Whitaker wrote:

> Thanks for the reply. Let me make sure I understand this.
> So, for example, if I want to make anything destined for network
> 10.0.0.0 to go to next hop 11.0.0.1 but let packets for all other
> destinations to use the routing table, I will not need a second permit
> statement.
>
> access-list 1 permit 10.0.0.0 0.255.255.255
> !
> route-map MYMAP permit 10
> match ip address 1
> set ip next-hop 11.0.0.1
> !
> ip local policy route-map MYMAP
>
> However, in the following example, I will need a second permit
> statement if I want to allow any other routes not explicitly mentioned
> in the route-map.
>
> access-list 1 permit 10.0.0.0 0.255.255.255
> !
> route-map MYMAP permit 10
> match ip address 1
> !
> router rip
> network 10.0.0.0
> !
> router ospf 1
> redistribute rip subnets route-map MYMAP
> !
>
> Is this correct?
>
> On Thu, 30 Sep 2004 12:00:54 -0300, Carlos G Mendioroz <tron@huapi.ba.ar> wrote:
>
>>The route-map is a configuration artifact that is used to do many
>>things. It works as an advanced ACL, with the "set" part being able to
>>change the way things work.
>>
>>As an ACL, it has an implicit "deny everything", so when this is not
>>what you want, you have to change that into an "allow anything else".
>>
>>Some uses like distribute route-maps, do behave as ACLs so this would be
>>needed.
>>Others, like dampening or policy route, only trigger special treatment
>>and the implicit deny is treated as "treat everything else in the normal
>>way".
>>
>>HTH
>>
>>
>>
>>Drew Whitaker wrote:
>>
>>
>>>Here's a generic route-map:
>>>
>>>route-map MYMAP permit 10
>>> match ip address 1
>>>set ip next-hop 1.1.1.1
>>>
>>>In some examples I see an additional line after this that reads:
>>> route-map MYMAP permit 20
>>>
>>>When do you know if you need the additional permit line?
>>>
>>>_______________________________________________________________________
>>>Subscription information may be found at:
>>>http://www.groupstudy.com/list/CCIELab.html
>>>
>>
>>--
>>Carlos G Mendioroz <tron@huapi.ba.ar> LW7 EQI Argentina
>>
>>
>
>

-- 
Carlos G Mendioroz  <tron@huapi.ba.ar>  LW7 EQI  Argentina


This archive was generated by hypermail 2.1.4 : Fri Oct 01 2004 - 15:00:51 GMT-3