cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1189
Views
0
Helpful
1
Replies

i can't connecting to client switch with SSH & Telnet

HadiBeheshti
Level 1
Level 1

I'm new to Cisco switches.
I have a 3750 switch as the core switch and three 2960 switches, each with a separate VLAN. I made the DHCP and VTP settings and other basic settings. A firewall is connected to switch 3750 at 10.10.10.10. The problem I have is that I can't connect to the 2960 switches via SSH and TELNET. The code I used to set the switches is attached. When I turn on the IP assigned to the VLans, I connect to the core switch.
Please help me how can I connect to the 2960 switches via SSH and TELENT?
And if in the code, something is wrong and it might be better, please tell me.

3750

enable
configure terminal
hostname SW-Core
ip default-gateway 10.10.10.1
ip domain-name ****
vtp mode server
vtp domain ****
vtp version 2
vtp pruning
enable secret **********
line vty 0 15
password **********
login
exit
line console 0
password **********
login
exit
VLan 10
name Core
exit
VLan 31
name F3N
exit
VLan 32
name F3S
exit
VLan 41
name F4N
interface vlan 10
ip address 10.10.10.1 255.255.255.0
no shutdown
exit
interface vlan 31
ip address 10.10.31.1 255.255.255.0
no shutdown
exit
interface vlan 32
ip address 10.10.32.1 255.255.255.0
no shutdown
exit
interface vlan 41
ip address 10.10.41.1 255.255.255.0
no shutdown
exit
interface range gigabitEthernet 1/0/1-6
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 1-99
no shutdown
exit
interface range gigabitEthernet 1/0/7-12
switchport mode access
switchport access vlan 10
no shutdown
exit
interface range gigabitEthernet 1/0/13-28
shutdown
exit
ip dhcp pool Core
network 10.10.10.0 255.255.255.0
default-router 10.10.10.1
dns-server 10.10.10.2
lease 8
exit
ip dhcp pool F3N
network 10.10.31.0 255.255.255.0
default-router 10.10.31.1
dns-server 10.10.10.2
lease 8
exit
ip dhcp pool F3S
network 10.10.32.0 255.255.255.0
default-router 10.10.32.1
dns-server 10.10.10.2
lease 8
exit
ip dhcp pool F4N
network 10.10.41.0 255.255.255.0
default-router 10.10.41.1
dns-server 10.10.10.2
lease 8
exit
ip routing
ip route 172.0.0.0 255.0.0.0 10.10.10.10
ip route 192.167.0.0 255.255.0.0 10.10.10.10
ip route 192.168.0.0 255.255.0.0 10.10.10.10
ip route 192.169.0.0 255.255.0.0 10.10.10.10
ip dhcp excluded-address 10.10.10.1 10.10.10.10
ip dhcp excluded-address 10.10.31.1 10.10.31.10
ip dhcp excluded-address 10.10.32.1 10.10.32.10
ip dhcp excluded-address 10.10.41.1 10.10.41.10
exit
write

One of the 2960 switches

enable
configure terminal
hostname SW-F3N
vtp mode client
vtp domain ****
enable secret **********
line vty 0 15
password **********
login
exit
line console 0
password **********
login
exit
interface gigabitEthernet 0/24
switchport mode trunk
no shutdown
exit
interface range gigabitEthernet 0/21-23
shutdown
exit
interface range gigabitEthernet 0/1-20
switchport mode access
switchport access vlan 31
no shutdown
exit
interface vlan 1
ip address 10.10.31.2 255.255.255.0
no shutdown
exit
exit
write
1 Accepted Solution

Accepted Solutions

ilay
VIP
VIP

Change the svi interface address of the 2960 switch,  keep the svi ID consistent with the subnet used by the 3750. Add default-gateway config, then you can TELNET to the switch in any other subnets.

#2960 config
int vlan 1
no ip address
shut
!
interface vlan 31
ip address 10.10.31.2 255.255.255.0
no shutdown
!
ip default-gateway 10.10.31.1

View solution in original post

1 Reply 1

ilay
VIP
VIP

Change the svi interface address of the 2960 switch,  keep the svi ID consistent with the subnet used by the 3750. Add default-gateway config, then you can TELNET to the switch in any other subnets.

#2960 config
int vlan 1
no ip address
shut
!
interface vlan 31
ip address 10.10.31.2 255.255.255.0
no shutdown
!
ip default-gateway 10.10.31.1