cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2786
Views
55
Helpful
23
Replies

Telnet remotely

NickAgr68
Level 1
Level 1

Hey everyone, I'd really appreciate some help on this. I'm brand new to networking and I recently setup a new Cisco 2960 switch that I'm trying to access remotely using telnet. I can access the switch over my LAN, on the same network, however, if I go to access it from a remote location, I cannot gain access to the switch anymore.  I know this is probably a basic but I have been searching for days to find an answer to this and really trying to learn.

Just a few more details, I'm trying to do this using Putty. When I go to access my switch using the IP (10.0.1.12) that I assigned it in a remote location (say my brothers house), is that the right process? Am I even going about this the right way? 

Any and all help will be greatly appreciated

Here is how my switch is configured right now:

Current configuration : 1528 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Switch
!
enable secret 5 $1$Y.J.$NIio2C0gWB7VOU4ZtWPGZ/
enable password 7 1307121E070D
!
username RichardSwitch1 password 7 04590E0A0320
no aaa new-model
system mtu routing 1500
udld aggressive

ip subnet-zero
!
!
mls qos map cos-dscp 0 8 16 26 32 46 46 56
!
!
macro global description cisco-global
errdisable recovery cause link-flap
errdisable recovery interval 60
no file verify auto
!
spanning-tree mode rapid-pvst
spanning-tree loopguard default
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
switchport mode access
switchport port-security
switchport port-security aging time 2
switchport port-security violation restrict
switchport port-security aging type inactivity
macro description cisco-desktop
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface GigabitEthernet0/1
!
interface Vlan1
ip address 10.0.1.12 255.255.255.0
no ip route-cache
!
ip default-gateway 10.0.1.1
ip http server
!
control-plane
!
!
line con 0
line vty 0 4
password 7 0006160A085A
login
rotary 23
transport input telnet
line vty 5 15
password 7 01110308570A
login
!
end

23 Replies 23

Hi Nick,

Please share the config of the switch.

Let me check if we are missing something.

Regards,

Aditya

Please rate helpful posts and mark correct answers.

Hi Aditya,

Ok great. I'm going to put some x's in for the public key for privacy reasons but you will see it in the config.

Building configuration...

Current configuration : 974 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Switch
!
enable secret 5 $1$TQ99$4BcFfbnoVDL0/wt3BE2VE.
!
username nick password 7 104C0C150916
no aaa new-model
system mtu routing 1500
ip subnet-zero
!
!
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface GigabitEthernet0/1
!
interface Vlan1
ip address 10.0.1.12 255.255.255.0
no ip route-cache
!
interface Vlan3
ip address 73.197.1xx.xxx 255.255.255.0
no ip route-cache
!
ip http server
!
control-plane
!
!
line con 0
login local
line vty 0 4
password 7 03065E070A0E
login
transport input telnet
line vty 5 15
login
!
end

Hi Nick,

Do you have a default gateway set ?

Check the output of show ip route on the switch.

Regards,

Aditya

Please rate helpful posts and mark correct answers.

Hi Aditya,

Ok, I issued the command "show ip default-gateway" and got a result of 0.0.0.


Switch#show ip default-gateway
0.0.0.0

For the default gateway, should this be setup as the default gateway of my router? For example my router default gateway is 10.0.1.1

Thanks,

Nick

HI Nick,

Try changing it to the next hop ip of the outside.

Regards,

Aditya

Please rate helpful posts and mark correct answers.

Hi Aditya,

I issued the command tracert 8.8.8.8 in my command prompt and then set the default gateway to the next hop IP out of my LAN but it did not work. Please let me know if I did this right. 

Just so you see where I got the info from:

How I found the next hop:

1 1 ms 1 ms 1 ms 10.0.1.1
2 10 ms 9 ms 10 ms 96.120.73.9
3 10 ms 9 ms 10 ms te-8-3-ur01.gloucester.nj.panjde.comcast.net [68.86.192.1]
4 10 ms 11 ms 11 ms te-0-3-0-16-ar03.audubon.nj.panjde.comcast.net [68.86.210.25]
5 17 ms 17 ms 16 ms hu-0-9-0-1-ar03.plainfield.nj.panjde.comcast.net [68.85.63.201]
6 19 ms 19 ms 17 ms be-33659-cr02.newyork.ny.ibone.comcast.net [68.86.90.21]
7 17 ms 17 ms 16 ms 68.86.87.226
8 20 ms 19 ms 21 ms 50.248.116.186
9 28 ms 25 ms 30 ms 209.85.246.149
10 16 ms 16 ms 17 ms google-public-dns-a.google.com [8.8.8.8]

Switch#show ip default-gateway
96.120.73.0

Building configuration...

Current configuration : 1005 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Switch
!
enable secret 5 $1$TQ99$4BcFfbnoVDL0/wt3BE2VE.
!
username nick password 7 104C0C150916
no aaa new-model
system mtu routing 1500
ip subnet-zero
!
!
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface GigabitEthernet0/1
!
interface Vlan1
ip address 10.0.1.12 255.255.255.0
no ip route-cache
!
interface Vlan3
ip address 73.197.1xx.xxx 255.255.255.0
no ip route-cache
!
ip default-gateway 96.120.73.0
ip http server
!
control-plane
!
!
line con 0
login local
line vty 0 4
password 7 03065E070A0E
login
transport input telnet
line vty 5 15
login
!
end

Also, I forgot to mention, I can only ping my external IP that I setup on vlan 3 in the command prompt and get a response from it. 

If I ping the external IP that I setup on vlan 3 either in Putty or Teraterm, that is when I get the error messages.

If I ping the IP on vlan 1 (10.0.1.12) I get a result in putty and teraterm.  If I attempt to ping any other IP address in those applications, I get a failed result. That happens on both my LAN and and remote locations. 

So what is the difference when you connect from your home and when from the remote location ?

Regards,

Aditya

Please rate helpful posts and mark correct answers.

I am unsure, but it has to be because I don't have my switch configured properly to allow me to telnet in unless from my home location where my switch is located.