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

changing telnet port

Hello.

I would like to change the telnet port number ,wich will be used to telnet the Cisco router. How can i do it ?

4 REPLIES

Re: changing telnet port

Yes, use the "telnet y.y.y.y x" command (where x is the port number). See link: http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/ftersv_r/trfsltn.htm#998293

Hope it helps.

Steve

Community Member

Re: changing telnet port

Tnahks, but it's misunderstanding here,- my problem is to configure router for accessing him by telnet through port another then default.

Best regards.

Dmitry

Bronze

Re: changing telnet port

Hi, I think you will have to use Port Application Mapping which is an IOS feature of the firewall feature set.

See the link for more information.

http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/120newft/120t/120t5/iosfw2/iosfw2_3.htm

Regards

Community Member

Re: changing telnet port

You can change the port number for telnet using simple IP NAT. Create a loopback on the device you want to change the port on and use this as the NAT inside. Use your LAN interface as the NAT outside and use TCP port translation. e.g R1 telnets to R2 using outside global address 99.99.99.99 port 99

R2

----

Interface Loop 0

ip address 2.2.2.2 255.255.255.255

ip nat inside

Interface fast 0/0 ;local LAN

ip address 192.168.10.10 255.255.255.0

ip nat outside

ip nat inside source static tcp 2.2.2.2 23 99.99.99.99 99

ensure R2 has a route to R1 and ensure R1 has a route to the inside global address 99.99.99.99 via R2.

From R1 you will be able to telnet via port 99 e.g.

telnet 99.99.99.99 99

Tie down all tcp port 23 traffic via access-lists. Almost a basic IOS firewall in reverse and works with most IOS.

Hope this helps.

Johnathan.

CCIE#9332

397
Views
0
Helpful
4
Replies
CreatePlease to create content