Packet tracer 5.0 Lab (ii) vswitch Telnet Remote Logon Settings

Source: Internet
Author: User

I. Lab Objectives

Master how to configure a vswitch using telnet

 

Ii. Technical Principles

    • Configure the management IP address of the vswitch (the IP address of the computer and the management IP address of the vswitch are in the same network segment );
    • Configure the username and logon password for the Telnet User:

Switch (config) # enble password XXXX // set the password for entering the privileged mode;

Switch (config-line) # password XXXX // you can set the password required to connect the device through the Console port and telnet for remote logon.

Switch (config) # Line console 0
Switch (config-line) # password XXXX // set the password for connecting to the device through the Console Port
Switch (config-line) # Login
Switch (config) # Line vty 0 4
Switch (config-line) # password XXXX // set the Telnet Remote logon Password
Switch (config-line) # Login

Iii. Experiment steps

Lab Topology

 

Switch> en
Switch # conf t
Enter configuration commands, one per line. End with cntl/Z.

1. Configure the management IP address of the vswitch

Switch (config) # interface VLAN 1 // by default, all ports of the switch are in VLAN 1
Switch (config-If) # IP address 192.168.1.1 255.255.255.0 // configure the vswitch management IP Address
Switch (config-If) # No shutdown // enable interface vlan1

% Link-5-changed: interface vlan1, changed state to up

Switch (config-If )#
% LINEPROTO-5-UPDOWN: Line protocol on interface vlan1, changed state to up

Switch (config-If) # exit

2. Set the password for entering the privileged Mode

Switch (config) # enable password 123456 // set the password used to enter the privileged Mode
Switch (config) # Line console?
<0-0> first line number

3. Set the password for connecting to the device through the Console Port

Switch (config) # Line console 0
Switch (config-line) # password ASDF // set the password for connecting to the device through the Console Port
Switch (config-line) # Login
Switch (config-line) # exit
Switch (config) # Line vty?
<0-15> first line number

4. Set the Telnet Remote logon Password

Switch (config) # Line vty 0 4
Switch (config-line) # password ABC123 // set the Telnet Remote logon Password
Switch (config-line) # Login
Switch (config-line) # End
Switch #
% SYS-5-CONFIG_ I: configured from console by the Console

 

5. View configuration information

Switch # Show running-config
Building configuration...

Current configuration: 1064 bytes
!
Version 12.2:
No service timestamps log datetime msec
No service timestamps debug datetime msec
No service password-Encryption
!
Hostname Switch
!
Enable Password 123456
!
!
!
Interface fastethernet0/1
!
......
!
Interface fastethernet0/24
!
Interface gigabitethernet1/1
!
Interface gigabitethernet1/2
!
Interface vlan1
IP address 192.168.1.1 255.255.255.0
!
!
Line con 0

Password ASDF
Login

!
Line vty 0 4
Password ABC123
Login
Line vty 5 15
Login
!
!
End

Switch #

 

Iv. Verification

1. Verify the password of the device connected through the Console Port

Press return to get started.

User Access Verification

Password: // enter ASDF here

Switch>

2. Verify the password in privileged mode.

Switch> en
Password: // enter 123456 here

Switch #

3. Verify the Telnet Remote logon Password

A. set IP addresses for PCs

B. Open command prompt

Packet tracer PC command line 1.0

PC> ipconfig

 

IP address ......: 192.168.1.2

Subnet Mask ......: 255.255.255.0

Default Gateway ......: 192.168.1.1

 

PC> Ping 192.168.1.1

 

Pinging 192.168.1.1 with 32 bytes of data:

 

Request timed out.

Reply from 192.168.1.1: bytes = 32 time = 32 Ms TTL = 255

Reply from 192.168.1.1: bytes = 32 time = 32 Ms TTL = 255

Reply from 192.168.1.1: bytes = 32 time = 31 Ms TTL = 255

 

Ping statistics for 192.168.1.1:

Packets: Sent = 4, stored ED = 3, lost = 1 (25% loss ),

Approximate round trip times in Milli-seconds:

Minimum = 31 ms, maximum = 32 ms, average = 31 Ms

 

PC> Telnet 192.168.1.1 // remote Logon

Trying 192.168.1.1... open

 

 

User Access Verification

 

Password: // vty Password

Switch> en

Password: // enable password

Switch # Show running-config

Building configuration...

 

Current configuration: 1063 bytes

!

Version 12.2:

No service timestamps log datetime msec

No service timestamps debug datetime msec

No service password-Encryption

!

Hostname Switch

!

Enable Password 123456

!

!

!

Interface fastethernet0/1

!

......

Interface fastethernet0/24

!

Interface gigabitethernet1/1

!

Interface gigabitethernet1/2

!

Interface vlan1

IP address 192.168.1.1 255.255.255.0

!

!

Line con 0

Password ASDF
Login

!

Line vty 0 4

Password ABC123

Login

Line vty 5 15

Login

!

!

End

 

Switch #

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.