cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
56561
Views
15
Helpful
11
Replies

remote access ssh and telnet switches

pcfreak49
Level 1
Level 1

how can you remote access via ssh and telnet C2960G ?

11 Replies 11

Jennifer Halim
Cisco Employee
Cisco Employee

Sorry, what do you actually mean?

I assume that you have configured vlan interface on the switch, and it is assigned an ip address, and you have default route pointing towards the next hop?

If you do, then as long as the ip address is reachable, you can telnet to the switch. For SSH, please make sure that the clock is correctly configured, then you will need to generate the rsa key pair before you can ssh to the switch.

mrdogantr
Level 1
Level 1

Hi,

Configure the ip address first you have to enter from global configuration mode to interface vlan 1.

Switch#

Switch#conf t

Switch(config)#int vlan 1

Switch(config-if)#ip address {your ip address} {mask}

Switch(config-if)#no shutdown

Configuration of default gateway takes place in the configuration mode and the command does not include the mask for the ip.

Switch#

Switch#conf t

Switch(config)#ip default-gateway {ip address}

and set passwords.

Switch#

Switch#conf t

Switch(config)#line vty 0 15

Switch(config-line)#password {your password}

Switch(config-line)#login

Switch(config-line)#exit

Switch(config)#enable secret {your enable password}

Switch(config)#end

Switch#write

http://www.cisco.com/en/US/docs/switches/lan/catalyst2950/software/release/12.1_9_ea1/configuration/guide/swg2950.pdf

hth

Muammer

ps : please rate the helpful posts.

You

can

also

translate

a

port

22

to

port

2222

because

the

ISP

does not want

to

accept

it under the

1024

You can use static nat on your router for this issue. Your switch doesn't support to nat.

ip nat inside static tcp {Switch IP} 22 {WAN ip} 2222

hth

Muammer

it does not work the switchesdoes not support them, how can you solve that?

can you share your topology.

ip nat I can not do on the switches, I want a remote ssh or telnet session start on port 2222 and 2323 and not 22 and 23

ok understand and i sad switches doesn't supports nat.

pcfreak49
Level 1
Level 1

I want to connect from another network and so the switches
do an ssh, telnet connection, which switches is directly connected to the ISP through
the WAN connection that is familiar



you can use "rotary" command under line vty, rotary listens to ports 3000-3099.

(config)#line vty 0 4
(config-vty)#rotary 23

and try to connect port 3023

hth

Muammer

I've tried but can not connect because the port is not open, how can you solve this?