Avatar of tech1guy
tech1guy
Flag for United States of America asked on

Access Cisco Lab remotely

Hello,

I am just setting a home lab for ccna practice. I need to access the lab remotely, how should I do it?

Right now
Cable Modem/Router(with wireless)>Hub>Cisco Switch or router> Cisco Lab

I need to access Cisco lab from outside, is there any way?
GNS3 or any other simulator is not an option. I am getting one IP address from my ISP
Network OperationsRoutersSwitches / Hubs

Avatar of undefined
Last Comment
tech1guy

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
ArneLovius

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jody Lemoine

Another way is to use SSH tunnels. If you have a Linux/Unix box on your network (or SSHD for Windows, for that matter) you can access your entire lab through a single forwarded port. Start by forwarding 22/tcp (or whatever other port you would like to use) into your SSH server.  On the client, you specify local port forwarding by indicating the local port you want to access the remote device with, then the LAN IP of the remote device and then the port you want to connect to.  So, if you're connecting via telnet to eight routers on IP addresses 192.168.0.101-108, you would do something like this:

ssh -L 2301:192.168.0.101:23 \
 -L 2302:192.168.0.102:23 \
 -L 2303:192.168.0.103:23 \
 -L 2304:192.168.0.104:23 \
 -L 2305:192.168.0.105:23 \
 -L 2306:192.168.0.106:23 \
 -L 2307:192.168.0.107:23 \
 -L 2308:192.168.0.108:23 user@host

Once you're logged into the host via SSH, you will be able to connect to the routers by using separate windows and opening telnet sessions to 127.0.0.1 (localhost) on ports 2301-2308.

If you're using a Windows client, replace the ssh with putty and put everything on one line like this:

putty -L 2301:192.168.0.101:23 -L 2302:192.168.0.102:23 -L 2303:192.168.0.103:23 -L 2304:192.168.0.104:23 -L 2305:192.168.0.105:23 -L 2306:192.168.0.106:23 -L 2307:192.168.0.107:23 -L 2308:192.168.0.108:23 user@host

Jody
greg ward

What remote access do you need?
why not connect a cisco router to your cable?
if your cisco has an outside ip address it can set up a cisco vpn if you have the right config/ios
eeRoot

Do you want remote access to your PC or a specific piece of equipment in your lab?  Freeware like Logmein can get you onto your PC, and then you can access your devices from there.  Or you'd have to set up a VPN connection on the router.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
tech1guy

ASKER
putting cisco router in front might not be an option for me....as i have iptv from telus and they are doing some kinda shaping on that....
greg ward

How to access, do you want to be able to shh to the devices, this could be done with nat.
Putty can choose which port to use so you can nat every device if you want.
tech1guy

ASKER
I was thinking the wrong way, i did that with 2 ways.....first with port forwarding to windows pc, then console to on of the core cisco sw.but in that case pc needs to be on all the time. The  other way I choose....port forwarding to core cisco sw from dlink router and them ssh from outside with public ip.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.