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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

about route map

I am a beginner in cisco IOS command,, so please excuse the basic question. I am working with a Cisco 2620 w/ith IOS 12.2.

I would like to route all packets comming from xxx.xxx.127.138 to yyy.yyy.127.137.

Is the configuration below ok? or shoul I define a satic route like "ip route xxx.xxx.127.138 255.255.255.248 yyy.yyy.127.137"?

thank you to give some advice

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

access-list 1 permit xxx.xxx.127.138

!

route-map equal-access permit 10

match ip address 1

set ip default next-hop yyy.yyy.127.137

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

3 REPLIES
Silver

Re: about route map

Looks good. Just make sure you apply this to the interface that xxx.xxx.127.138 will be coming in from.

Hope this helps,

Don

Bronze

Re: about route map

If you code the 'ip route' statement, it will send all traffic destined for a particular network to the next hop indicated, regardless of the source address.

If you want to route traffic based on source address, then you have to use policy routing which is basically what you are doing in the second case.

See the following URL for a good example -

http://www.cisco.com/warp/public/105/36.html

New Member

Re: about route map

Thank You,

I have another question then,

Which IP the source computer should aim at?, my rooter IP or the final IP?

I would like the source computer not to know the final IP, it is why, I want to receive its packets and re-route them on the final destination.

Is it possible?

Thank You

75
Views
0
Helpful
3
Replies