0% found this document useful (0 votes)
105 views30 pages

Lab1 Week7

This document provides guidance for a lab course on basic switch operations. The course consists of 6 chapters that cover topics like LAN cable handling, switch configuration via console and TELNET, and basic layer 2 switch operations. The lab uses two PCs and a Huawei S3700 series Ethernet switch to establish direct PC-to-PC and small LAN connections using the 192.168.1.0 subnet. Students will work in pairs to perform tasks like crimping Ethernet cables, configuring the switch console, and understanding switch commands.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
105 views30 pages

Lab1 Week7

This document provides guidance for a lab course on basic switch operations. The course consists of 6 chapters that cover topics like LAN cable handling, switch configuration via console and TELNET, and basic layer 2 switch operations. The lab uses two PCs and a Huawei S3700 series Ethernet switch to establish direct PC-to-PC and small LAN connections using the 192.168.1.0 subnet. Students will work in pairs to perform tasks like crimping Ethernet cables, configuring the switch console, and understanding switch commands.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 30

LAB 1- Week 7

Course ME8000
Basic Switch Operations Lab Guide
ISSUE 1.00
课程 XXXXXXXX XXX 上机任务指导书 ISSUE 1.0 Error! Use the Home tab to apply TOC
Heading to the text that you want to
appear here.

Contents
Course Instruction ........................................................................................................................1
About This Course .......................................................................................................................1
Course Objectives........................................................................................................................1
Relevant Materials .......................................................................................................................1
Chapter 1 About This Exercise ....................................................................................................1
1.1 Laboratory Networking Introduction .......................................................................................1
1.2 Equipment Description ...........................................................................................................2
1.3 Grouping Method ...................................................................................................................2
Chapter 2 LAN Cable Handling and Testing ................................................................................2
2.1 Exercise Objective .................................................................................................................2
2.2 Networking and Service Description ......................................................................................3
2.3 Task .......................................................................................................................................4
2.4 Additional Task ......................................................................................................................6
Chapter 3 Switch Configuration via Console Connection ............................................................7
3.1 Exercise Objective .................................................................................................................7
3.2 Networking and Service Description ......................................................................................7
3.3 Task .......................................................................................................................................8
Chapter 4 Understanding Basic VRP Commands .....................................................................12
4.1 Exercise Objective .............................................................................................................. 12
4.2 VRP Introduction ................................................................................................................. 12
4.3 Networking and Service Description ................................................................................... 20
4.4 Task .................................................................................................................................... 20
4.5 Additional Tasks.................................................................................................................. 21
Chapter 5 Layer 2 Switch Basic Operation ................................................................................22
5.1 Exercise Objective .............................................................................................................. 22
5.2 Networking and Service Description ................................................................................... 22
5.3 Task .................................................................................................................................... 22
5.4 Additional Task ................................................................................................................... 24
Chapter 6 Switch Configuration via TELNET .............................................................................25
6.1 Exercise Objective .............................................................................................................. 25
6.2 Networking and Service Description ................................................................................... 25
6.3 Task .................................................................................................................................... 26
6.4 Additional Task ................................................................................................................... 28

Huawei confidential information. Do not distribute without permission. ii


Course ME8000 Basic Switch Operations Lab Guide

Course Instruction

About This Course


This course Guide is applicable to:VXXXRXXX。
This course introduces basic networking between computers (PCs) through
a PC-to-PC connection, a simple Local Area Network (LAN) setup using
Layer 2 switch, a line arrangement in Unshielded Twisted Pair (UTP) cables
used in Ethernet cabling, and a basic configuration environment of the
Huawei Versatile Routing Platform (VRP).

Course Objectives
Upon completion of this course, you will be able to:
 Understand the line arrangement of UTP Ethernet cables
 Grasp the basic setup of LAN using Layer 2 switch
 Able to perform basic switch configurations via console cable and
TELNET

Relevant Materials
 Huawei S3700 series switch product description
 Huawei S3700 series switch command reference

Chapter 1 About This Exercise

1.1 Laboratory Networking Introduction


This course establishes two basic network topologies:
 Direct PC-to-PC connection using an Ethernet cable between two PCs
 An Ethernet-based LAN consisting of two PCs and a Layer 2 switch
In both cases, IP subnet 192.168.1.0 is used.

Huawei confidential information. Do not distribute without permission. 1


Course ME8000 Basic Switch Operations Lab Guide

1.2 Equipment Description


1.2.1 Crimping Tool

A crimping tool as shown in Figure 1-1 is used for making Unshielded


Twisted Pair (UTP) cables for connecting devices in Ethernet-based LAN.

Figure 1-1: Crimping Tool (Image source: Wikipedia)

1.2.2 Huawei Quidway S3700 Series Ethernet Switch

This course uses Huawei Quidway S3700 Series Ethernet switch


(hereinafter referred to as the S3700). The S3700 series switches provide
the access, aggregation, and data transport functions. They are developed
by Huawei to meet the requirements for reliable access and high-quality
transmission of multiple services on the enterprise network. Positioned for
the access layer or aggregation layer of the enterprise network, the S3700
provides large capacity, high port density, and cost-effective packet
forwarding capabilities. In addition, the S3700 provides multi-service access
capabilities, excellent extensibility, quality of service (QoS) guarantee,
powerful multicast replication, and carrier-class security, and can be used to
build ring topologies of high reliability.

1.3 Grouping Method


Work in pairs for each of the exercises.

Chapter 2 LAN Cable Handling and Testing

2.1 Exercise Objective


 To understand the wire (line) arrangement of Unshielded Twisted Pair
(UTP) cables used for Ethernet cabling

Huawei confidential information. Do not distribute without permission. 2


Course ME8000 Basic Switch Operations Lab Guide

2.2 Networking and Service Description


2.2.1 Tools/Equipment Required

 Crimping tool (see Figure 1-1)

2.2.2 Description

Unshielded Twisted Pair (UTP) cables are commonly used for connecting
Ethernet devices. A UTP cable consists of 4 pairs of wires, and these pairs
can be arranged in different ways. Two typical arrangements are as follows:
(a) Direct and (b) Cross.
Direct arrangement is used for:
 Connecting a router to a hub or switch
 Connecting a computer to a hub or switch

Cross arrangement is used for:


 Connecting a computer to a router
 Connecting a computer to another computer
 Connecting a router to another router
 Connecting a switch to another switch
 Connecting a hub to another hub
Figure 2-1 shows the arrangement of the wires (lines) within a Type 5 UTP
cable.

Figure 2-1: Lines Arrangement of a UTP Cable

Huawei confidential information. Do not distribute without permission. 3


Course ME8000 Basic Switch Operations Lab Guide

In the following exercise, you will be making a Cross cable for connecting two
computers together.

Figure 2-2: PC-to-PC Connection Using a Cross cable

2.3 Task
(1) Strip off about 5 cm of the plastic jacket from one end of a UTP cable.
(2) Spread apart the wires as shown in Figure 2-3.

Figure 2-3: Spreading the Wires in a UTP cable

(3) Arrange the wires according to Side 1 of the Cross arrangement.


(4) Line up and straighten the wires from the base of the jacket. Cut the
wires about 1.5 cm from the base.
(5) Slide the wires into an RJ45 connector.
(6) Place the RJ45 connector into the crimping tool, and cinch down on the
handles tightly.
(7) Repeat Steps 1 to 6 for the other end of the cable. For Step 3, arrange
the wires according to Side 2 of the Cross arrangement.
(8) Use the cable to connect two computers (PC1 and PC2) through their
respective Ethernet ports.
(9) Configure the IP addresses of PC1 and PC2 to 192.168.1.1 and
192.168.1.2, respectively.
Huawei confidential information. Do not distribute without permission. 4
Course ME8000 Basic Switch Operations Lab Guide

Note: To configure the IP address of the computer, select Control


Panel → Network and Internet → Network and Sharing Center →
Local Area Connection, and select Local Area Connection. When
the Local Area Connection Status dialog box appears, click the
Properties button. On the Local Area Connection Properties dialog box,
select Internet Protocol Version 4 (TCP/IPv4), and click the
Properties button. Configure the IP address and subnet mask as
shown in Figure 2-4.

Figure 2-4: IP Configuration for PC1

(10) Confirm that PC1 and PC2 can communicate with each other using the
ping command.
Note: The ping command needs to be run from the Command Prompt
program. To run Command Prompt, click Start, type CMD, and press
Enter.

On PC1, type the following command to ping PC2 which IP address is


192.168.1.2:

C:\ping 192.168.1.2

Huawei confidential information. Do not distribute without permission. 5


Course ME8000 Basic Switch Operations Lab Guide

A sample output for a successful ping is given in Figure 2-5. The output
of an unsuccessful ping should look like Figure 2-6.

Figure 2-5: Output of a Successful Ping

Figure 2-6: Output of an Unsuccessful Ping

2.4 Additional Task


(1) Repeat the procedure in Section 2.3 for Direct arrangement. Will PC1
and PC2 communicate with each other using the ping command?
Explain your observation.

Huawei confidential information. Do not distribute without permission. 6


Course ME8000 Basic Switch Operations Lab Guide

Chapter 3 Switch Configuration via Console


Connection

3.1 Exercise Objective


 To set up a switch configuration environment using the console
connection

3.2 Networking and Service Description


3.2.1 Tools/Equipment Required

 Huawei S3700 Series Switch

3.2.2 Description

Huawei S3700 series switch can be used as a simple plug-and-play Layer 2


switch for setting up a simple Ethernet-based Local Area Network (LAN).
However, the switch needs to be configured in order to access advanced
features like Virtual LAN (VLAN), port mirroring, port aggregation, etc.

In this exercise, the console connection is used to setup the configuration


environment. Specifically, a PC is connected to the switch console port using
a DB9 (or DB25) to RJ45 console cable. The HyperTerminal or similar
program on the PC is used to issue commands to the switch.

Figure 3-1: Console Connection between PC and Switch

Huawei confidential information. Do not distribute without permission. 7


Course ME8000 Basic Switch Operations Lab Guide

Figure 3-2: DB9 to RJ45 Console Cable

3.3 Task
(1) Establish the physical connection between the PC and the switch using
a DB9 (or DB25) to RJ45 console cable: connect the DB9 (or DB25)
end to the PC and the RJ45 end to the switch.
Note: If the PC does not have a suitable interface, you may use a DB9
(or DB25) to USB adaptor to connect to the PC’s USB port.
(2) On the PC, run the terminal emulation program such as HyperTerminal.
Note: You may use other programs like TeraTermPro or Putty (if
available).
(3) In HyperTerminal, select File → New Connection. Give a name for the
new connection, for example, SW Connection.

Figure 3-3: HyperTerminal - Creating a New Connection

(4) Next select the COM port used by the PC as shown in Figure 3-4.

Huawei confidential information. Do not distribute without permission. 8


Course ME8000 Basic Switch Operations Lab Guide

Figure 3-4: HyperTerminal COM Port Selection

(5) Set the terminal communication parameters as shown in Figure 3-5.

Figure 3-5: HyperTerminal Configuration to Connect to Huawei Switch/Router

(6) Power on the switch. The prompt <Quidway> as in Figure 3-6 should
appear right after the switch self-check is finished. If the prompt does
not appear, recheck the setting of HyperTerminal, especially the COM
port used.

Huawei confidential information. Do not distribute without permission. 9


Course ME8000 Basic Switch Operations Lab Guide

Note: In the prompt <Quidway>, Quidway serves as the default name


for the switch. A different name may appear if the switch has been
configured earlier. Use the reset saved-configuration and the reboot
commands to reboot the switch into its default state:

<Quidway> reset saved-configuration

Note: When prompted to erase the saved configuration, enter Y to


accept.

<Quidway> reboot

Note: When prompted to save the current configuration for the next
startup, enter N. This ensures the system will restart in a fresh state.

When prompted to reboot the system, enter Y to begin the reboot


process.

Figure 3-6: Switch <Quidway> Prompt

Huawei confidential information. Do not distribute without permission. 10


Course ME8000 Basic Switch Operations Lab Guide

(7) View the system information. Run the display version command to
view the software version and hardware information of the system.
<Quidway> display version
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.90
… … output omitted … …

The next exercise explores several basic VRP commands for switch
configuration.

Huawei confidential information. Do not distribute without permission. 11


Course ME8000 Basic Switch Operations Lab Guide

Chapter 4 Understanding Basic VRP Commands

4.1 Exercise Objective


 To familiarise with basic Versatile Routing Platform (VRP) commands
and configuration environment

4.2 VRP Introduction


4.2.1 Command View

Figure 4-1: Overview of VRP Command Views

 The Versatile Routing Platform (VRP) is a network-level operating


system used in Huawei networking equipment, such as switches,
routers, firewalls, etc. It features a powerful IP forwarding engine as its
core, and perfect integration of real-time operating system technology,
equipment and network management technology, and various network
application technologies through an advanced architectural design.
 VRP commands are defined based on views (see Figure 4-1). You enter
the user view as soon as you log in to the network equipment through
the method described in the previous chapter.
 The user view can be switched to the system view by running the
system-view command. And the system view can be switched back to
the user view after running the quit command. You can enter views of
other services by running corresponding commands in the system view.

Huawei confidential information. Do not distribute without permission. 12


Course ME8000 Basic Switch Operations Lab Guide

4.2.2 Command Level

 VRP system commands are arranged into 4 levels: visit, monitor, config
and manage.
 The visit level: includes commands for network diagnosis such as ping
and tracert and commands for visiting external equipment such as
TELNET client, SSH, and Rlogin commands.
 The monitor level: includes commands for system maintenance and
service trouble diagnosis such as the display and debugging
commands.
 The config level: includes service configuration commands involving
routing commands, commands for all network layers and commands for
providing direct network services for users.
 The manage level: includes commands that supports the running of the
system and other services involving file system commands, FTP, TFTP
commands, Xmodem downloading commands, configuration file
switching commands, the slave board controlling commands, user
management commands, command level setting commands, and
parameter setting commands.
 Users are also divided into 4 levels to match with the command levels.
Hence users can only use commands that have equal to or lower level
than their level. To switch a user of a lower level to a higher level, the
super [level] command is used.

4.2.3 Enter and Exit System View

Command Description

system-view Enter system view from the user view

quit Return to the user view from the system view

return Return to the user view from any other view

Huawei confidential information. Do not distribute without permission. 13


Course ME8000 Basic Switch Operations Lab Guide

Examples:
 To enter system view:
<Quidway>system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]

 To enter and exit interface view (in this example, Ethernet 0/0/1 view):
[Quidway]interface Ethernet 0/0/1
[Quidway-Ethernet0/0/1]quit
[Quidway]

Note: Use the display interface brief command to display the


interfaces available on your equipment.
 To return to user view from system view

[Quidway]quit
<Quidway>

4.2.4 Online Help System

 The VRP platform provides an online help system which can be invoked
by entering ? after a full or partial command.
 Try the following examples to observe the help shown for each of the
commands.
 <Quidway>?
 <Quidway>display ?
 <Quidway>d?
 <Quidway>system-view
 [Quidway]interface ?
 [Quidway]interface Ethernet ?

4.2.5 Command Reference

Huawei provides comprehensive command references in the form of a


Windows help file (see Figure 4-2). The documents provide the configuration
commands of each feature supported by the respective equipment, including

Huawei confidential information. Do not distribute without permission. 14


Course ME8000 Basic Switch Operations Lab Guide

the syntax, view, default level, description, parameters, usage guideline,


related commands, and example of each command. Figure 4-3 shows an
example of the command reference provided for the VRP command
system-view.

Use the documents as reference for the exercises.

Figure 4-2: Command Reference

Huawei confidential information. Do not distribute without permission. 15


Course ME8000 Basic Switch Operations Lab Guide

Figure 4-3: Sample Help Page — system-view Command

Huawei confidential information. Do not distribute without permission. 16


Course ME8000 Basic Switch Operations Lab Guide

4.2.6 Auto Command Completion Using Tab

 After inputting an incomplete keyword, you can press Tab and obtain all
related keywords or verify the correctness of the input keyword.
 Tab can be used in three ways as shown in the following example.

1. The matching key word is unique after the incomplete key word is input.
 Input an incomplete key word:
[Quidway] info-

 Press Tab. The system will replace the input with the complete key
word and display it in a new line with the cursor leaving a space
behind.
[Quidway] info-center

2. There are several matches or no match after the incomplete key word is
input.
For example, the keyword info-center can be followed by the following
keywords which all begin with prefix log.

[Quidway] info-center log?


logbuffer Setting of log buffer configuration
logfile <Group> logfile command group
loghost Setting of logging host configuration

 Input an incomplete key word:


[Quidway] info-center log

 Press Tab. The system first displays the first possible keyword –
logbuffer:
[Quidway] info-center logbuffer

Huawei confidential information. Do not distribute without permission. 17


Course ME8000 Basic Switch Operations Lab Guide

 Press Tab repeatedly to select a keyword. The cursor closely


follows the end of the keyword:
[Quidway] info-center logfile

[Quidway] info-center loghost

 Stop pressing Tab right after the keyword that you need is
displayed.

3. Input an incorrect keyword, and press Tab to check the correctness of


the keyword.
 Input a wrong keyword, for instance loglog.
[Quidway] info-center loglog

 Press Tab.
[Quidway] info-center loglog

 The system displays information in a new line, but the keyword


loglog remains unchanged. There is no space between the cursor
and the keyword, indicating that this keyword doesn’t exist.

4.2.7 Configure the Login Information

 You may configure the login information to be displayed as a


welcome message:
[Quidway] header shell information “Welcome to Huawei University
Courseware Lab”

 To verify the login information has been changed, quit the switch
command line interface and log back to view the login information:
[Quidway] quit
< Quidway > quit
Configuration console exit, please retry to log on
Welcome to Huawei University Courseware Lab
< Quidway >

Huawei confidential information. Do not distribute without permission. 18


Course ME8000 Basic Switch Operations Lab Guide

4.2.8 Sample Commands

 The following are some commonly used commands.

Command Description

sysname Configure the system name

Display the history commands that the user has


display history-command
entered
display version Display system version
display clock Display system time
clock datetime Modify system date and time (HH:MM:SS)
Display the currently running configurations on the
display current-configuration
switch
Display the contents of the configuration file loaded
display saved-configuration
in the current startup of the switch
save Save the current configuration to the storage device
Delete the contents of the configuration files saved
reset saved-configuration
in storage devices.
reboot Reboot the system
Enter the interface view. In the example, enter the
interface Ethernet0/0/1
Ethernet0/0/1 interface view

display this Display the running configuration of the current view

Disable the current interface (Ethernet0/0/1). Use


shutdown
undo shutdown to enable the interface back
display ip routing-table Display the IPv4 routing table
display interface Ethernet 0/0/1 Display the information of the given interface

display interface brief Display brief information of all the interfaces

Use ping to check the reachability to the given


ping 10.1.6.231
destination
Trace the path from the switch to the given
tracert 10.1.6.231
destination
Login to remote machine with the given IP address
telnet 10.1.6.231
using TELNET

Huawei confidential information. Do not distribute without permission. 19


Course ME8000 Basic Switch Operations Lab Guide

4.3 Networking and Service Description


4.3.1 Tools/Equipment Required

 Huawei S3700 Series Switch

4.3.2 Description

The PC is connected to the switch using a DB9 (or DB25) to RJ45 console
cable to set up the configuration environment. The HyperTerminal program
is used to login to the switch.

Console cable
console
PC HQ-AS-1
Figure 4-4: Console Connection Between PC and Switch

4.4 Task
Execute each of the following commands on the system. Observe the
response. Use the command reference and online help system to
understand the command and response observed.

Note: Some of the commands only work for certain views. Hence you may
need to change the view accordingly.

(1) dir
(2) system-view
(3) sysname HQ-AS-1
(4) display version
(5) display clock
(6) clock datetime 18:10:00 2012-04-16
(7) display clock
(8) display current-configuration
(9) display interface
(10) display interface brief
(11) interface Ethernet 0/0/2
(12) shutdown

Huawei confidential information. Do not distribute without permission. 20


Course ME8000 Basic Switch Operations Lab Guide

(13) display this


(14) save test-123.cfg
(15) dir
(16) more test-123.cfg
(17) display startup
(18) startup saved-configuration test-123.cfg
(19) display startup
(20) reboot
Note: When prompted to reboot the system, enter Y to accept.
(21) After the system is rebooted, verify that the switch is running based on
the configurations that you have made, e.g., in Step 3, Step 6, etc.
(22) interface Ethernet 0/0/2
(23) undo shutdown
(24) display this
(25) reset saved-configuration
Note: When prompt to erase the saved configuration, enter Y to accept.
(26) reboot
Note: When prompted to save the current configuration for the next
startup, enter N. This ensures the system will restart in a fresh state.
When prompted to reboot the system, enter Y to begin the reboot
process.
(27) After the system is rebooted, verify that the configuration that you have
saved is no longer available.

4.5 Additional Tasks


(1) Use a suitable command to list all the interfaces on the switch. Identify
the corresponding physical interfaces on the switch.

Huawei confidential information. Do not distribute without permission. 21


Course ME8000 Basic Switch Operations Lab Guide

Chapter 5 Layer 2 Switch Basic Operation

5.1 Exercise Objective


 To understand the basic operation of a Layer 2 switch

5.2 Networking and Service Description


5.2.1 Tools/Equipment Required

 Huawei S3700 Series Switch

5.2.2 Description

A Layer 2 switch is used to set up a simple Ethernet-based Local Area


Network (LAN). In this scenario, the switch is used as a plug-and-play device
— no additional configuration is necessary for the switch to interconnect the
PCs using Ethernet networking.

HQ-AS-1
E0/0/1 E0/0/2

PC1 PC2
192.168.1.1/24 192.168.1.2/24
Figure 5-1: Connecting Computers to a Layer 2 Switch

5.3 Task
(1) Connect one of the PCs to the switch using a console cable. Reset the
saved configuration in the switch, and reboot the switch. This ensures
the switch is booted into its default configuration, and thus can be used
as a simple plug-and-play Layer 2 switch.

Huawei confidential information. Do not distribute without permission. 22


Course ME8000 Basic Switch Operations Lab Guide

<Quidway> reset saved-configuration

Note: When prompted to erase the saved configuration, enter Y to


accept.

<Quidway> reboot

Note: when prompted to save the current configuration for the next
startup, enter N. This ensures the system will restart in a fresh state.
When prompt to reboot the system, enter Y to begin the reboot process.

(2) Set the name of the switch as shown in Figure 5-1.

<Quidway> system-view
[Quidway] sysname HQ-AS-1

(3) Connect two computers (PC1 and PC2) to the switch using two UTP
cables as shown in Figure 5-1.
(4) Configure the IP addresses of PC1 and PC2 to 192.168.1.1 and
192.168.1.2, respectively. Configure the subnet mask to 255.255.255.0,
and leave the default gateway field blank.
(5) Verify that PC1 and PC2 can communicate with each other using the
ping program.

Huawei confidential information. Do not distribute without permission. 23


Course ME8000 Basic Switch Operations Lab Guide

5.4 Additional Task


(1) Try to change the IP address of one of the computers to 192.168.2.1.
Will the PCs be able to ping each other? Explain your observation.
(2) If the PCs are not able to communicate with each other, what changes
do you need to perform for them to do so?
Note: Maintain the IP addresses and you should not need to make any
configuration to the switch.

(3) Through the console configuration environment, issue the shutdown


command on interface Ethernet 0/0/1. Will PC1 and PC2 be able to
communicate with each other?

(4) Undo the shutdown command. Can PC1 and PC2 ping each other
now?

Huawei confidential information. Do not distribute without permission. 24


Course ME8000 Basic Switch Operations Lab Guide

Chapter 6 Switch Configuration via TELNET

6.1 Exercise Objective


 To set up a switch configuration environment using TELNET

6.2 Networking and Service Description


6.2.1 Tools/Equipment Required

 Huawei S3700 Series Switch

6.2.2 Description

HQ-AS-1
E0/0/1

PC1
192.168.1.1/24
Figure 6-1: Reference Network Topology

 TELNET provides remote login facility to a remote computer over LAN


or the Internet.
 If you know the IP address of a switch, you can log in to the switch
through TELNET to perform local or remote configurations. In other
words, the switch needs to communicate with devices at the network
layer. In order to achieve this, a logical interface based on a VLAN on
the S3700, namely, a VLANIF interface needs to be first created. A
VLANIF interface is a network layer interface and can be configured with
an IP address. The S3700 then uses the VLANIF interface to
communicate with devices at the network layer. In the exercise, VLAN 1
which is the default VLAN, is used.
Note: VLAN will be covered in greater detail in later lab guides.
 To enable remote login through TELNET, you need to pre-configure the
IP addresses of the VLANIF interface, the user account (user name and

Huawei confidential information. Do not distribute without permission. 25


Course ME8000 Basic Switch Operations Lab Guide

password), the authentication mode, and the incoming and outgoing call
restriction through the console interface on the switch.

6.3 Task
Note: Use the online help system/command reference to understand the
command and response observed.

6.3.1 Configure TELNET service at the switch

(1) Connect the PC to the switch using a console cable to establish the
configuration environment.
(2) Configure the IP address to the default VLAN 1 interface (VLANIF 1).
Note: In the following, the # character preceding a statement indicates
that the statement is a comment, i.e., not to be entered into the system.
The command to be entered is in bold.

# Enter system view

<Quidway>system-view


# By default, all interfaces are in VLAN 1


# Enter VLAN 1 interface (VLANIF 1) and set an IP address
# (192.168.1.100)
[Quidway]interface vlanif 1
[Quidway-vlanif1]ip address 192.168.1.100 255.255.0.0
[Quidway-vlanif1]quit

Huawei confidential information. Do not distribute without permission. 26


Course ME8000 Basic Switch Operations Lab Guide

(3) Configure the login user parameters on the target switch.


# Create a local user and enable the telnet service for the user
# Enter the Authentication, Authorization and Accounting (AAA) view

[Quidway]aaa


# Create a user called “huawei" with password “hello”


[Quidway-aaa]local-user huawei password cipher hello
[Quidway-aaa]local-user huawei service-type telnet

[Quidway-aaa]local-user huawei level 3


[Quidway-aaa]quit


# Enter the user-interface view and configure the authentication


# mode

[Quidway]user-interface vty 0 4

[Quidway-ui-vty0-4]authentication-mode aaa

6.3.2 Connect the PC to the switch using TELNET

(1) Connect the Ethernet port of the PC to the Ethernet 0/0/1 port (or any
other port) of the switch using a UTP cable (see Figure 6-1).
(2) Configure the IP address of the PC as shown in Figure 6-1.
(3) Verify that the PC and the switch can communicate with each other
using the ping program.

C:\ >ping 192.168.1.100

(4) Open the Command Prompt, and run the TELNET program as follows:

C:\ >telnet 192.168.1.100

(5) You will be asked for the user name and password to log in to the
switch. Enter the user name and password previously configured in
Section 6.3.1 . After the authentication process, a command line
prompt such as <Quidway> should appear. You have entered the
configuration environment in the user view.

Huawei confidential information. Do not distribute without permission. 27


Course ME8000 Basic Switch Operations Lab Guide

Figure 6-2: Running the TELNET Program on the PC

6.4 Additional Task


(1) Rerun the task in Chapter 3 over the TELNET connection.

Huawei confidential information. Do not distribute without permission. 28

You might also like