02-26-2011 01:53 AM
how can you remote access via ssh and telnet C2960G ?
02-26-2011 02:10 AM
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.
02-26-2011 05:55 AM
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
hth
Muammer
ps : please rate the helpful posts.
03-02-2011 02:15 PM
You
can
also
translate
a
port
22
to
port
2222
because
the
ISP
does not want
to
accept
it under the
1024
03-02-2011 02:28 PM
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
03-02-2011 02:37 PM
it does not work the switchesdoes not support them, how can you solve that?
03-02-2011 02:39 PM
can you share your topology.
03-02-2011 02:43 PM
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
03-02-2011 02:52 PM
ok understand and i sad switches doesn't supports nat.
03-02-2011 02:58 PM
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
03-02-2011 03:11 PM
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
03-02-2011 03:29 PM
I've tried but can not connect because the port is not open, how can you solve this?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide