cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
299
Views
0
Helpful
3
Replies

about route map

tturcat
Level 1
Level 1

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 3

donewald
Level 6
Level 6

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

rsissons
Level 5
Level 5

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

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

Review Cisco Networking for a $25 gift card