05-16-2020 05:56 AM
i have a lab setup with 3 Cisco routers. The first router has no problem with telnet and ssh from a remote location. What i need is to telnet to the two other routers. I have tried static routing to a specific port for telnet on both routers and used telnet {ip address}{port} but was not successful. Both routers are connected to the first router and has internet access.
05-16-2020 06:32 AM
Hello @123Cisco ,
you have an issue with NAT and PAT port based NAT.
You can reach the primary router using SSH on the public WAN interface IP address and this address is likely the only public IP address available.
In this way to be able to create an SSH session with an internal router you need to play with TCP ports and NAT/PAT
You can create a NAT static statement for a different port like 2222 that maps to the internal address of secondary router TCP port 22.
In the same way you can create another statement for port for example 2223 to reach the third router.
ip nat source static tcp <public-ipaddress> 2222 <secondary-router-private-address> 22
Hope to help
Giuseppe
05-16-2020 08:12 AM
05-17-2020 06:38 AM
Hello @123Cisco ,
I am sorry for the incorrect syntax of the suggested command I have tried to answer on the fly.
I am happy that you have solved your issue.
Best Regards
Giuseppe
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