Telnet to Switch

Blang008Blang008 Member Posts: 61 ■■□□□□□□□□
I'm watching the CBT where he creates telnet session to his switch and I am having some problems re-creating it. I have a Cisco 2950 and I have packet tracer sim. I've been trying to use the switch mostly. Could someone please give me some guidance. Thanks guys.

Comments

  • wbosherwbosher Member Posts: 422
    Have you set up an IP address for VLAN 1 and done a no shutdown?? Also, have you set up your VTY ports to accept a login/password?
  • nice343nice343 Member Posts: 391
    there has to be a password set for telnet before it can work

    and also in some sims you should type this command on the switch to get telnet functioning
    ip default-gateway
    
    My daily blog about IT and tech stuff
    http://techintuition.com/
  • Blang008Blang008 Member Posts: 61 ■■□□□□□□□□
    Thanks for the replies guys. Hopefully I can get it now.
  • Blang008Blang008 Member Posts: 61 ■■□□□□□□□□
    hey guys...i looked and the interface is up. I have ip address, subnet and default gateway assigned to switch. But for some reason the switch will not allow me to do the line vty 0 4 command. It is 12.1 IOS. I'm following the CBT and he has not problem doing this and he is using the same IOS. Please help.
  • scheistermeisterscheistermeister Member Posts: 748 ■□□□□□□□□□
    nice343 wrote:
    there has to be a password set for telnet before it can work

    No there doesn't. Just do "no login" and you can telnet directly to it.

    On the switch
    interface Vlan1
     ip address 192.168.1.2 255.255.255.0
    line vty 0 4
     no login
    

    Is all you need. I even tried it in Packet Tracer (after the config give it a minute or two in PT). You getting any errors?
    Give a man fire and he'll be warm for a day. Set a man on fire and he'll be warm for the rest of his life.
  • Blang008Blang008 Member Posts: 61 ■■□□□□□□□□
    I keep getting this error:

    Explorer(config-if)#line vty 0 4
    ^
    % Invalid input detected at '^' marker.

    I can ping the switch but will not let me telnet.


    PC>ping 192.168.1.2

    Pinging 192.168.1.2 with 32 bytes of data:

    Reply from 192.168.1.2: bytes=32 time=5ms TTL=120
    Reply from 192.168.1.2: bytes=32 time=5ms TTL=120
    Reply from 192.168.1.2: bytes=32 time=4ms TTL=120
    Reply from 192.168.1.2: bytes=32 time=5ms TTL=120

    Ping statistics for 192.168.1.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 4ms, Maximum = 5ms, Average = 4ms

    PC>telnet 192.168.1.2
    Invalid Command.
  • scheistermeisterscheistermeister Member Posts: 748 ■□□□□□□□□□
    What version of Packet Tracer are you using?
    Give a man fire and he'll be warm for a day. Set a man on fire and he'll be warm for the rest of his life.
  • Blang008Blang008 Member Posts: 61 ■■□□□□□□□□
    I am using 4.01. Thanks for your help.
  • scheistermeisterscheistermeister Member Posts: 748 ■□□□□□□□□□
    Blang008 wrote:
    I am using 4.01. Thanks for your help.

    I am not sure if that version supports it or not. Try this command "line vty 0 4" from switch(config)# instead of switch(config-if)#. Also throw a router on the screen and do "router#telnet ?" to see if you can use the telnet command from a router instead.
    Give a man fire and he'll be warm for a day. Set a man on fire and he'll be warm for the rest of his life.
  • Blang008Blang008 Member Posts: 61 ■■□□□□□□□□
    This is what I got from the Switch command line:

    Explorer(config)#line vty 0 4
    ^
    % Invalid input detected at '^' marker. (The marker is actually under the v)



    Router#telnet ?
    % Unrecognized command


    I have two PC's connected to a switch and then connected to a router.
    PC0 - 192.168.1.5/24 DG=192.168.1.1
    Vlan1 - 192.168.1.2/24...Vlan 1 is up
    Router - 192.168.1.1/24

    I'm not sure what is wrong. Not a good confidence builder when you can't even telnet to a switch! :D
    Thanks for the help..
  • scheistermeisterscheistermeister Member Posts: 748 ■□□□□□□□□□
    From that I would assume that version does not support it then. Just try it on a real device or update Packet Tracer
    Give a man fire and he'll be warm for a day. Set a man on fire and he'll be warm for the rest of his life.
  • Blang008Blang008 Member Posts: 61 ■■□□□□□□□□
    OK..I tried it on my 2950 and had no problem doing the line vty 0 4 command. But after i set the IP address/subnet and then did a interface vlan 1 no shutdown, I still could not telnet to it. I drank a couple of beers last night, so whatever I am doing wrong is probably a bonehead move. I'm going to update packet tracer and see what I get.
  • tech-airmantech-airman Member Posts: 953
    Blang008 wrote:
    OK..I tried it on my 2950 and had no problem doing the line vty 0 4 command. But after i set the IP address/subnet and then did a interface vlan 1 no shutdown, I still could not telnet to it. I drank a couple of beers last night, so whatever I am doing wrong is probably a bonehead move. I'm going to update packet tracer and see what I get.

    Blang008,

    Is your computer's Ethernet NIC port connected with a UTP straight-through cable to a Cisco 2950 switch port that has access to VLAN 1?
Sign In or Register to comment.