cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4255
Views
0
Helpful
5
Replies

Interface Vlan 1 and telnet connection

ottobrerosso
Level 1
Level 1

Hi all;
I've a switch connected to a router and when I try to telnet it's Vlan1 interface I'm not able to open a connection.
This is the Switch config:

Switch#sh running-config
Building configuration...
Current configuration : 2665 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Switch
!
enable secret 5 $1$zjtI$Wq5JOIxHZ4JsB5RRPW4bS1
!
username C password 7 072C
no aaa new-model
switch 1 provision ws-c3750-24p
ip subnet-zero
!
!
!
!
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
interface FastEthernet1/0/1
 switchport access vlan 7
 duplex full
 speed 100
!
interface FastEthernet1/0/2
 switchport access vlan 7
 duplex full
 speed 100
!
interface FastEthernet1/0/3
 switchport access vlan 7
 duplex full
 speed 100
!
interface FastEthernet1/0/4
 switchport access vlan 7
 duplex full
 speed 100
!
interface FastEthernet1/0/5
 switchport access vlan 7
 duplex full
 speed 100
!
interface FastEthernet1/0/6
 switchport access vlan 7
 duplex full
 speed 100
!
interface FastEthernet1/0/7
 switchport access vlan 7
 duplex full
 speed 100
!
interface FastEthernet1/0/8
 switchport access vlan 14
 duplex full
 speed 100
!
interface FastEthernet1/0/9
 switchport access vlan 14
 duplex full
 speed 100
!
interface FastEthernet1/0/10
 switchport access vlan 14
 duplex full
 speed 100
!
interface FastEthernet1/0/11
 switchport access vlan 14
 duplex full
 speed 100
!
interface FastEthernet1/0/12
 switchport access vlan 14
 duplex full
 speed 100
!
interface FastEthernet1/0/13
 switchport access vlan 14
 duplex full
 speed 100
!
interface FastEthernet1/0/14
 switchport access vlan 14
 duplex full
 speed 100
!
interface FastEthernet1/0/15
 switchport access vlan 21
 duplex full
 speed 100
!
interface FastEthernet1/0/16
 switchport access vlan 21
 duplex full
 speed 100
!
interface FastEthernet1/0/17
 switchport access vlan 21
 duplex full
 speed 100
!
interface FastEthernet1/0/18
 switchport access vlan 21
 duplex full
 speed 100
!
interface FastEthernet1/0/19
 switchport access vlan 21
 duplex full
 speed 100
!
interface FastEthernet1/0/20
 switchport access vlan 21
 duplex full
 speed 100
!
interface FastEthernet1/0/21
 switchport access vlan 21
 duplex full
 speed 100
!
interface FastEthernet1/0/22
 duplex full
 speed 100
!
interface FastEthernet1/0/23
 duplex full
 speed 100
!
interface FastEthernet1/0/24
 description Trunk verso Router 1841
 switchport trunk encapsulation dot1q
 switchport mode trunk
 duplex full
 speed 100
!
interface GigabitEthernet1/0/1
!
interface GigabitEthernet1/0/2
!
interface Vlan1
 ip address 10.10.10.2 255.255.255.248
!
ip classless
ip http server
ip http secure-server
!
!
!
!
!
control-plane
!
!
line con 0
 login
line vty 0 4
 login local
line vty 5 15
 login local
!
!
end
Switch#
The router where the switch is connected has Vlan 1 interface configured with IP address 10.10.10.1 255.255.255.248.
I'm able to connect to the switch only using console port...
What I've to check to enable telnet connection on switch ?
Thanks!!!
5 Replies 5

Iulian Vaideanu
Level 4
Level 4

If you can ping the switch from the router then you should be able to telnet the switch from the router; for access from beyond the router I think the switch will need a default gateway.

mahmoodmkl
Level 7
Level 7

Hi,

Is the router port configured as sub-interface or the IP is configured on the physical interface..?

If the IP is configured on sub-interface then issue the command native after the vlan ID.

encapulation dot1q 1 native.

Thanks

Ruy_San
Level 1
Level 1

Hello there,

I think, you should create or define the vty password and just to be sure, also create the enabled secret. Then, you'll be able to telnet either the switch and router.

BR.

Hi

You need to setup the default gateway to reach it remotely

ip default-gateway 10.10.10.1  <--- assuming the .1 is the gateway of that subnet. 




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Hello

As others have stated, you should be able to providing you have reachability to the switch and where you trying to access it from.

 

If its from the directly connected router then make sure you can you ping the switch if not verify you have no mismatch in speed/duplex setting ( auto negotiation is preferred) and if the router has a sub-interface than make sure it is untagged ( native vlan)

If connection is from a remote device as stated, the switch needs to have a default-gateway and also it needs to be reachable.

res
Pau


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking products for a $25 gift card