cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
548
Views
5
Helpful
4
Replies

HELP - ip redirect - how to ?

rwawrig
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

rais
Level 7
Level 7

You can use:

ip nat inside source static 23 23

The same goes for FTP.

Hope this helps.

View solution in original post

4 Replies 4

rais
Level 7
Level 7

You can use:

ip nat inside source static 23 23

The same goes for FTP.

Hope this helps.

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

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

your right - is more like a port redirect