Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Route-map and static route

Hi guys,

I would like to ask if i can do a route-map instead of a static route.

Example:

ip route 10.10.10.0 255.255.255.0 10.10.10.190

How can i translate this to route-map? Is it possible ?

Thanks.

jeff

4 REPLIES

Re: Route-map and static route

hi Jeff,,,

yes you can translate this static route by route-map.

you can do it by permitting the perticular network 10.10.10.0 in accesslist and then by configuring routmap you just need to set the next hop for that accesslist to 10.10.10.190...

but i think routmap will creat the complexity...

thank you

rate this post if it helps

regards

devang

Gold

Re: Route-map and static route

1)

First you need create ACL (source is you network destination is remote network 10.10.10.0 in this case)

let we say x.x.x.x is your network

router(config)#access-list 101 permit ip x.x.x.x 255.255.255.0 10.10.10.0 255.255.255.0

2)

Than create route map with set ip next-hop 10.10.10.190

router(config)#route-map MAP_for_routing

router(config-route-map)#match ip address 101

router(config-route-map)# set ip next-hop 10.10.10.190

3)

Apply router map to "inside" Interface fastEthernet 0 in my example

interface fastEthernet 0

ip policy route-map MAP_for_routing

M.

Hope that helps rate if it does

New Member

Re: Route-map and static route

Hi guys,

Got it workin now.

tnx

jeff

New Member

Re: Route-map and static route

hi guys,

After making my network go to the desired interface, somehow the router itself cannot reach other network.

othernetwork--RA--RB(route-map)-- mynetwork

1.mynetwork can ping to other network

2.RB cannot

I doesnt replace totally static routing.Is route map only applied inbound to the interface ?

jeff

383
Views
7
Helpful
4
Replies
CreatePlease to create content