cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2351
Views
11
Helpful
19
Replies

Telnetting switches from different subnet

kylesmith17
Level 1
Level 1

Hi so I built this network on packet tracer and managed to get everything working in terms of being able to for the hosts in different VLANS to ping each other however the last thing I need to do is telnet from the management laptop to each of the switches in the other subnet and I have been trying for the past hour or two to get it to work but I am not sure what else I can try doing so if anyone has any suggestions that will be great, I will put a picture up of the network for you to look at.Screenshot 2023-02-21 185704.png

2 Accepted Solutions

Accepted Solutions

So I managed to get it all working now, the problem was that the line protocol was down for vlan 99 so once it was back up on all 3 switches everything is able to connect and telnet works too. Thanks for your help and suggestions.

View solution in original post

here is the problem :

balajibandi_0-1677070147466.png

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

19 Replies 19

balaji.bandi
Hall of Fame
Hall of Fame

what is the error you getting when you try to telnet to device?

can you post one of the devices not working - show run

you need to configure VTY Lines for telnet to work

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

I just get the error message

Trying 172.168.0.1 ...

% Connection timed out; remote host not responding

I have already configured the VTY lines for the switches. So the hosts are able to ping each other from different VLANS however get no response from pinging the switches, the management laptop is also able to ping the hosts on the different subnet but not the switches and also the switches arent able to ping each other. Im not sure if that may have something to do with it and im not too sure how to fix it.

can you ping and trace output from Laptop to 172.16.0.1

as per information to guide better show run will help.

since it's not working I would like to see the config show run  (Router and switch)

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Make sure you trunking VLAN 99 between the switches. Do all of the switches have an ip on VLAN 99 that is on the 172.168.0.0 network? it also looks like your mask is wrong on int vlan 99 (172.168.0.1 255.255.248.0) should it be 172.168.0.1 255.255.255.248?

On the router make sure you enable ip routing :

ip routing

on the router you have vlan 99

interface FastEthernet0/0.99
encapsulation dot1Q 99 native
ip address 172.168.0.5 255.255.255.248

on the switch :

i do not see vlan added,
so add vlans

vlan 10,11,12,99
!
interface FastEthernet0/2
switchport trunk allowed vlan 10-12, 99 ( allow vlan 99 in the trunk)
switchport trunk native vlan 99 (if you want native vlan 99 - if nothing mentioned default is 1)
switchport mode trunk

interface Vlan99
ip address 172.168.0.1 255.255.248.0 (change subnet mask 255.255.255.248)
!
ip default-gateway 172.168.0.5 (if this just Layer 2 switch ok)

if not replace as below

no ip default-gateway 172.168.0.5
ip route 0.0.0.0 172.168.0.5

 

 

also create users

enable secret cisco
!
username cisco password 0 cisco

 

line vty 0 15
password cisco
login
transport input all

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Still having problems, here is the vlan brief for switch 1 if you can tell me what i've not done correct and heres another show run for the switch.

Switch#show run

Building configuration...

 

Current configuration : 1688 bytes

!

version 12.1

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Switch

!

enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1

!

!

!

!

!

!

spanning-tree mode pvst

spanning-tree extend system-id

spanning-tree vlan 99 priority 24576

!

interface FastEthernet0/1

switchport access vlan 11

!

interface FastEthernet0/2

switchport trunk native vlan 99

switchport trunk allowed vlan 10-12,99

switchport mode trunk

!

interface FastEthernet0/3

switchport trunk allowed vlan 10-12,99

switchport mode trunk

!

interface FastEthernet0/4

switchport trunk allowed vlan 10-12,99

switchport mode trunk

!

interface FastEthernet0/5

switchport trunk allowed vlan 10-12,99

switchport mode trunk

!

interface FastEthernet0/6

switchport trunk allowed vlan 10-12,99

switchport mode trunk

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

!

interface FastEthernet0/21

!

interface FastEthernet0/22

!

interface FastEthernet0/23

!

interface FastEthernet0/24

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

no ip address

shutdown

!

interface Vlan99

ip address 172.168.0.1 255.255.255.248

!

ip default-gateway 172.168.0.5

!

!

!

!

line con 0

password cisco

login

!

line vty 0 4

password cisco

login

line vty 5 15

password cisco

login

!

!

!

!

end

 

Timothy Patrick
Level 1
Level 1

Are the switches setup with a management ip in a separate network from the hosts. If so you may need to set the default gateway on the switches so they know how to get back to the clients. Its also not clear how you have your subnetting configured for the vlans. Are the switches IP address in VLAN 99? you saif=d they are unable to ping each other, Is that VLAN trunked between the switches?

Yes so all 3 of the switches are in vlan 99 and have IP addresses 172.168.0.1, 172.168.0.2 and 172.168.0.3. the hosts are in vlans 10,11 and 12. And yes VLAN 99 has been trunked between the switches.

I have suggested the config the fix, have you applied, what is the outcome ?

Note : i have suggested only config Switch and Router, i am thinking you have other routing in place between Router and Wireless user devics. since user subnet in 192.168.5.X  network so switch should know how to route back.

You may need route 192.168.5.X towrads wireless device  and Wireless device should have default router towards Router ( 192.168.40.1)

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Yeah I just replied to your message last night just there with a show run of the switch again and also a show vlan brief screenshot if you want to have a look at that. Still same problems regarding nothing being able to ping the switches and switches unable to ping each other. Do I need VLAN 99 to be on the same ports that are connected between all 3 switches?

Also I just realized that router0 is unable to ping the wireless router yet the laptop is able to ping router0 and the hosts on the other subnet. Also the laptop is able to telnet Router0.

 

Also I just realized that router0 is unable to ping the wireless router yet the laptop is able to ping router0 and the hosts on the other subnet. Also the laptop is able to telnet Router0.

Note : i have suggested only config Switch and Router, i am thinking you have other routing in place between Router and Wireless user devics. since user subnet in 192.168.5.X network so switch should know how to route back.

You may need route 192.168.5.X towrads wireless device and Wireless device should have default router towards Router ( 192.168.40.1)

Traceroute from Laptop to 172.168.0.5 and 172.168.0.1

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Here's a screenshot of the traceroute, did you see anything wrong with my show vlan brief screenshot btw?

tracert.png

 

 

 

Looks like Switch not reachable due to routing issue or some config issue around between switch and Router.

From router are you able to ping switch ( 172.16.0.1 ?) from switch are you able to ping ( 172.16.0.5) ?

check below :

show ip interface brief

show interface status

show ip arp

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help