0% found this document useful (0 votes)
63 views13 pages

Guia #1 Laboratorio de Telecomunicaciones

This document provides instructions for completing hands-on exercises to configure basic Ethernet ports, port trunking, and port mirroring on a VRP device. The exercises include configuring IP addresses on Ethernet ports to test connectivity, configuring a port-channel for trunking, and setting up a port mirror to copy traffic from one port to another. Command line examples and verification steps are provided for each task.

Uploaded by

Cesar Colorado
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)
63 views13 pages

Guia #1 Laboratorio de Telecomunicaciones

This document provides instructions for completing hands-on exercises to configure basic Ethernet ports, port trunking, and port mirroring on a VRP device. The exercises include configuring IP addresses on Ethernet ports to test connectivity, configuring a port-channel for trunking, and setting up a port mirror to copy traffic from one port to another. Command line examples and verification steps are provided for each task.

Uploaded by

Cesar Colorado
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/ 13

Guia #1

Laboratorio de Telecomunicaciones
Table of Contents

About This Test .................................................................................................................................1


Test Instructions...........................................................................................................................1
Test Objectives ............................................................................................................................1
Test Tasks ...................................................................................................................................1
Relevant Materials .......................................................................................................................1
Chapter 1 Basic Configuration of Ethernet Ports ..........................................................................2
1.1 Hands-on Objective ...............................................................................................................2
1.2 Networking and Service Introduction .....................................................................................2
1.3 Command Line List ................................................................................................................2
1.4 Configuration flow ..................................................................................................................2
1.5 Configuration procedure ........................................................................................................3
1.6 Result Verification ..................................................................................................................3
1.7 Configuration Reference ........................................................................................................4
Chapter 2 Ethernet Port Trunking ....................................................................................................5
2.1 Hands-on Objective ...............................................................................................................5
2.2 Networking and Service Introduction .....................................................................................5
2.3 Command Line List ................................................................................................................5
2.4 Configuration flow ..................................................................................................................5
2.5 Configuration procedure ........................................................................................................5
2.6 Result Verification ..................................................................................................................6
2.7 Configuration Reference ........................................................................................................7
Chapter 3 Ethernet Port Mirror.........................................................................................................8
3.1 Hands-on Objective ...............................................................................................................8
3.2 Networking and Service Introduction .....................................................................................8
3.3 Command Line List ................................................................................................................8
3.4 Configuration Flow .................................................................................................................8
3.5 Configuration Procedure ........................................................................................................9
3.6 Result Verification ..................................................................................................................9
3.7 Configuration Reference ........................................................................................................9

i
About This Test

Test Instructions
This Guide is applicable to VRP Version3.1RELEASE 0020

Test Objectives
1. To grasp the basic configurations of Ethernet ports.
2. To grasp the port trunking for Ethernet ports.
3. To grasp the port mirroring for Ethernet ports.

Test Tasks
Basic configuration of Ethernet ports
Ethernet port trunking
Ethernet port mirroring

Relevant Materials
VRP 3.10 Operation Manual

1
Chapter 1 Basic Configuration of Ethernet Ports

1.1 Hands-on Objective


After completing the hands-on test in this course, you should be able to:
grasp the basic configurations of Ethernet ports.

1.2 Networking and Service Introduction

RTA RTB

.1 10.1.1.0/30 .2
R R

L0: 1.1.1.1/32 L0: 2.2.2.2/32

Figure 1-1 Networking diagram of Ethernet port configuration

1.3 Command Line List


Operation Command
Enter specified Ethernet interface view interface ethernet interface-number
Enter Gigabit Ethernet interface view interface gigabitethernet interface-number
Set IP network protocol address ip address ip-address net-mask [secondary]
Configure the static ARP mapping item arp static ip-address mac-address
Configuring MTU mtu ethernet-mtu
Select operating rate of electrical FE
speed { 10 | 100 | negotiation }
interface
Select operating rate of electrical GE
speed { 10 | 100 | 1000 | negotiation }
interface
Select a working mode for the Ethernet
duplex { half | full | auto }
interface
Enable internal loopback loopback

1.4 Configuration Flow

Configure an IP address for the Ethernet


interface

2
1.5 Configuration Procedure
Configure IP addresses for interfaces of RTA and RTB, with other configurations using
the default values.

1.6 Result Verification


1) Port status before the configuration:
[RTA]display interface Ethernet 0/0
Ethernet0/0 current state :UP
Line protocol current state :DOWN
Description: Ethernet0/0 Interface
The Maximum Transmit Unit is 1500, The keepalive is 10(sec)
Internet protocol processing : disabled
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is
00e0-fc17-a1fb
Media type is twisted pair, loopback not set, promiscuous mode not set
100Mb/s, Full-duplex, link type is autonegotiation
Output flow-control is disabled, input flow-control is disabled
Output queue : (Urgent queue : Size/Length/Discards) 0/50/0
Output queue : (Protocol queue : Size/Length/Discards) 0/500/0
Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0
Last 5 minutes input rate 0.00 bytes/sec, 0.00 packets/sec
Last 5 minutes output rate 0.00 bytes/sec, 0.00 packets/sec
Input: 6 packets, 550 bytes, 6 buffers
0 broadcasts, 0 multicasts, 0 pauses
0 errors, 0 runts, 0 giants
0 crc, 0 align errors, 0 overruns
0 dribbles, 0 drops, 0 no buffers
Output:5 packets, 532 bytes, 6 buffers
1 broadcasts, 0 multicasts, 0 pauses
0 errors, 0 underruns, 0 collisions
0 deferred, 0 lost carriers
2) Port status after the configuration:
[RTA-Ethernet0/0]display interface Ethernet 0/0
Ethernet0/0 current state :UP
Line protocol current state :UP
Description: Ethernet0/0 Interface
The Maximum Transmit Unit is 1500, The keepalive is 10(sec)
Internet Address is 10.1.1.1/30
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is
00e0-fc17-a1fb
Media type is twisted pair, loopback not set, promiscuous mode not set
100Mb/s, Full-duplex, link type is autonegotiation
Output flow-control is disabled, input flow-control is disabled
Output queue : (Urgent queue : Size/Length/Discards) 0/50/0
Output queue : (Protocol queue : Size/Length/Discards) 0/500/0
Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0
Last 5 minutes input rate 0.00 bytes/sec, 0.00 packets/sec
Last 5 minutes output rate 0.00 bytes/sec, 0.00 packets/sec
Input: 6 packets, 550 bytes, 6 buffers
0 broadcasts, 0 multicasts, 0 pauses
0 errors, 0 runts, 0 giants
0 crc, 0 align errors, 0 overruns
0 dribbles, 0 drops, 0 no buffers
Output:5 packets, 532 bytes, 6 buffers
1 broadcasts, 0 multicasts, 0 pauses
0 errors, 0 underruns, 0 collisions
0 deferred, 0 lost carriers

3) Test connectivity
[RTA-Ethernet0/0]ping 10.1.1.2

3
PING 10.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 210.11.180.18 : bytes=56 Sequence=1 ttl=255 time=2 ms
Reply from 210.11.180.18 : bytes=56 Sequence=2 ttl=255 time=1 ms
Reply from 210.11.180.18 : bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 210.11.180.18 : bytes=56 Sequence=4 ttl=255 time=1 ms
Reply from 210.11.180.18 : bytes=56 Sequence=5 ttl=255 time=1 ms

--10.10.10.2 ping statistics--


5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/1/3 ms

1.7 Configuration Reference


Configuration of router A:
[RTA]interface Ethernet 0/0
[RTA-Ethernet0/0]ip address 10.1.1.1 30

Configuration of router B:
[RTB]interface Ethernet 0/0
[RTB-Ethernet0/0]ip address 10.1.1.2 30

4
Chapter 2 Ethernet Port Trunking

2.1 Hands-on Objective


After completing the hands-on test in this course, you should be able to:
Grasp the procedure in which the Ethernet port trunking can be configured.

2.2 Networking and Service Introduction

2.3 Command Line List


Operation Command

Set a group of ports to port trunking link-aggregation interface_name1 to interface_name2 [ both ]

2.4 Configuration flow

Set IP address for an


interface

Set the interface attributes

Configure Ethernet port trunking

2.5 Configuration procedure


1) Configure IP Address for an Interface
On SW1, create L3 address 10.1.1.1/30 for VLAN1. On SW2, create L3 address
10.1.1.2/30 for VLAN1.
2) Configure attributes of aggregated ports

5
Before configuring port trunking, you must ensure that all ports of SW1 and SW2 to be
aggregated to port trunking work in the full duplex mode and at the same rate (they
cannot work in the auto negotiation mode).
3) Configure port trunking

2.6 Result Verification


1) After you have configured the IP address, check connectivity between the two
switches with ping command.
Obviously, the network as shown in the networking diagram will result in a loop among
the switches. The loop is mainly embodied by broadcast storm and unceasing flashing
of the switches data transmission indicators. Broadcast storm may cause the PCs
connected with the switches network interfaces to give response slowly. In this case,
you may unplug a network cable to eliminate the loop, and do not plug it until you have
properly configured port trunking. In this case, the broadcast storm will not occur.
2) Check the configuration accuracy
<Sw1>display link-aggregation
Master Port : Ethernet0/1
Other sub-ports:
Ethernet0/2
Model : both
3) Verity the mutual backup feature of port trunking
Execute the display mac command on SW1 to check the MAC address table, in which
you may know whether the MAC address of Interface Vlan 1 of SW2 is E0/1 or E0/2.
You may know the MAC address of Interface Vlan 1 of SW2 by executing the display
Interface Vlan 1 command on SW2.
<Sw1>display mac-address
MAC ADDR VLAN ID STATE PORT INDEX AGING TIME
00e0-fc26-2f3c 1 Learned Ethernet0/2 AGING

--- 1 mac address(es) found ---

<Sw2>display interface vlan


Vlan-interface1 current state : UP
Line protocol current state : UP
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is
00e0-fc26-2f3c
Internet Address is 10.1.1.2/30 Primary
Description: HUAWEI, Quidway Series, Vlan-interface1 Interface
the Maximum Transmit Unit is 1500

The above output information shows that SW1 forwards Interface Vlan1 data frames to
SW2 through E0/2. To check whether E01 in the port trunking group can back up E02,
you can only disable E0/1 manually and then check the connectivity between SW1 and
SW2.
[Sw1]interface Ethernet 0/2
[Sw1-Ethernet0/2]shut
%Oct 10 15:01:57 2005 Sw1 L2INF/5/PORT LINK STATUS CHANGE:
Ethernet0/2: turns into DOWN state

<Sw2>ping 10.1.1.1
PING 10.1.1.1: 56 data bytes, press CTRL_C to break
Reply from 10.1.1.1: bytes=56 Sequence=1 ttl=255 time = 23 ms
Reply from 10.1.1.1: bytes=56 Sequence=2 ttl=255 time = 4 ms
Reply from 10.1.1.1: bytes=56 Sequence=3 ttl=255 time = 9 ms
Reply from 10.1.1.1: bytes=56 Sequence=4 ttl=255 time = 4 ms
Reply from 10.1.1.1: bytes=56 Sequence=5 ttl=255 time = 4 ms

6
--- 10.1.1.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 4/8/23 ms

<Sw1>display mac
MAC ADDR VLAN ID STATE PORT INDEX AGING TIME
00e0-fc26-2f3c 1 Learned Ethernet0/1 AGING
00e0-fc09-bcf9 1 Learned Ethernet0/1 AGING

<Sw2>display interface Vlan-interface


Vlan-interface1 current state : UP
Line protocol current state : UP
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is
00e0-fc26-2f3c
Internet Address is 10.1.1.2/30 Primary
Description: HUAWEI, Quidway Series, Vlan-interface1 Interface
the Maximum Transmit Unit is 1500

2.7 Configuration Reference


Configuration of SW1:(the commands is suit for S3500 series switches)
[Sw1-Ethernet0/1]speed 100
[Sw1-Ethernet0/1]duplex full
[Sw1-Ethernet0/2]speed 100
[Sw1-Ethernet0/2]duplex full
[Sw1]link-aggregation Ethernet 0/1 to Ethernet 0/2 both
Configuration of SW2: (the commands is suit for S3500 series switches)
[Sw2-Ethernet0/1]speed 100
[Sw2-Ethernet0/1]duplex full
[Sw2-Ethernet0/2]speed 100
[Sw2-Ethernet0/2]duplex full
[Sw2]link-aggregation Ethernet 0/1 to Ethernet 0/2 both

Note: if you use S3900 series switches the commands for link aggregation is :
[Sw1]link-aggregation group 10 mode manual
[Sw1-Ethernet1/0/1]speed 100
[Sw1-Ethernet1/0/1]duplex full
[Sw1-Ethernet1/0/1]port link-aggregation group 10
[Sw1-Ethernet1/0/2]speed 100
[Sw1-Ethernet1/0/2]duplex full
[Sw1-Ethernet1/0/2]port link-aggregation group 10

[Sw2]link-aggregation group 10 mode manual


[Sw2-Ethernet1/0/1]speed 100
[Sw2-Ethernet1/0/1]duplex full
[Sw2-Ethernet1/0/1]port link-aggregation group 10
[Sw2-Ethernet1/0/2]speed 100
[Sw2-Ethernet1/0/2]duplex full
[Sw2-Ethernet1/0/2]port link-aggregation group 10

7
Chapter 3 Ethernet Port Mirror

3.1 Hands-on Objective


After completing the hands-on test in this course, you should be able to
Observe Ethernet packets using the port mirroring.

3.2 Networking and Service Introduction

The PC is connected to port E0/24. Data received on port E0/1 is monitored through the
monitoring software.

3.3 Command Line List


Operation Command
Configure an ACL used by the
acl-number number
current domain
rule { permit | deny }{ingress|egress }[ interface
Interface-based access control list
interface-name ] [ time-range time-name ] [ logging ]
Configuring the link layer based port
mirrored-to link-group acl-number interface interface
mirroring

3.4 Configuration Flow

8
Configure an IP address for the
interface

Configure a link-based ACL

Configure port mirroring

3.5 Configuration Procedure


1) Configure IP Address for the Interfaces
On SW1, create L3 address 10.1.1.1/30 for VLAN1. On SW2, create L3 address
10.1.1.2/30 for VLAN1.
2) Configure a link-based ACL.
3) Configure the mirroring port.

3.6 Result Verification


Turn on the LAN monitor on the PC. Then send Ping packets from SW1 to SW2. From
the LAN monitor on the PC, you may find the packets, whose source MAC address is
SW1 and destination MAC address is SW2.

3.7 Configuration Reference


Configuration of SW1:
[Sw1]interface Vlan-interface 1
[Sw1-Vlan-interface1]ip address 10.1.1.1 255.255.255.252

Configuration of SW2:
[Sw2]interface Vlan-interface 1
[Sw2-Vlan-interface1]ip address 10.1.1.2 255.255.255.252

[SW2]acl number 4000


[SW2-acl-link-4000]rule permit egress interface e0/1
[SW2]mirrored-to link-group 4000 interface Ethernet 0/24

You might also like