08-12-2004 04:16 AM - edited 03-02-2019 05:43 PM
Hi,
I want to configure an ip redirect on a 3640 router.
I have two fast ethernet interfaces, one with an external IP and one with an internal IP. What I want is when a telnet request is coming to the external IP, the request should be redirected to an equipment from internal network (to an internal ip) and when an FTP request is coming to the external IP, another internal IP should respond (a local FTP server).
How I can do this ?
Thank you
Robert
Solved! Go to Solution.
08-12-2004 05:00 AM
You can use:
ip nat inside source static
The same goes for FTP.
Hope this helps.
08-12-2004 05:00 AM
You can use:
ip nat inside source static
The same goes for FTP.
Hope this helps.
08-13-2004 01:20 AM
Could be so easy ? Yes it is. And when i'm thinking I've lost one day searching for ip redirect on cisco page... (and also on BSD the redirect is in NAT section .. duhh..)
It is working...well, i didn't tried ftp, but tftp and telnet are working.
Thanks alot for the help.
cheers
Robert
08-13-2004 01:46 AM
IP redirect wasn't actually what you were wanting to do in the strict sense of the definition. An IP redirect is where a router tells a device that it knows a better route to the destination via a different router. In other words, "don't send your data to me, I can tell you a better way of getting it to the far end".
RFC 777 says:-
Description
The gateway sends a redirect message to a host in the following
situation. A gateway, G1, receives an internet datagram from a
host on a network to which the gateway is attached. The gateway,
G1, checks its routing table and obtains the address of the next
gateway, G2, on the route to the datagram's internet destination
network, X. If G2 and the host identified by the internet source
address of the datagram are on the same network, a redirect
message is sent to the host. The redirect message advises the
host to send its traffic for network X directly to gateway G2 as
this is a shorter path to the destination. The gateway forwards
the original datagram's data to its internet destination.
Pete
08-13-2004 02:10 AM
your right - is more like a port redirect
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