07-10-2002 03:13 PM - edited 03-01-2019 11:48 PM
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
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
07-10-2002 06:39 PM
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
07-10-2002 06:44 PM
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 -
07-11-2002 07:36 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide