Professional Documents
Culture Documents
04-Layer 2 - LAN Switching Configuration Guide-Book
04-Layer 2 - LAN Switching Configuration Guide-Book
No part of this manual may be reproduced or transmitted in any form or by any means without prior
written consent of Hangzhou H3C Technologies Co., Ltd.
Trademarks
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute the warranty of any kind, express or implied.
Preface
The Layer 2 – LAN Switching Configuration Guide describes the fundamentals and configuration of
Ethernet link aggregation, VLAN, LLDP, and so on.
This preface includes the following topics about the documentation:
• Audience.
• Conventions.
• Obtaining documentation.
• Technical support.
• Documentation feedback.
Audience
This documentation is intended for:
• Network planners.
• Field technical support and servicing engineers.
• Network administrators working with the VSR Routers series.
Conventions
This section describes the conventions used in the documentation.
Command conventions
Convention Description
Boldface Bold text represents commands and keywords that you enter literally as shown.
Italic Italic text represents arguments that you replace with actual values.
[] Square brackets enclose syntax choices (keywords or arguments) that are optional.
Braces enclose a set of required syntax choices separated by vertical bars, from which
{ x | y | ... }
you select one.
Square brackets enclose a set of optional syntax choices separated by vertical bars, from
[ x | y | ... ]
which you select one or none.
Asterisk marked braces enclose a set of required syntax choices separated by vertical
{ x | y | ... } *
bars, from which you select at least one.
Asterisk marked square brackets enclose optional syntax choices separated by vertical
[ x | y | ... ] *
bars, from which you select one choice, multiple choices, or none.
The argument or keyword and argument combination before the ampersand (&) sign can
&<1-n>
be entered 1 to n times.
Convention Description
# A line that starts with a pound (#) sign is comments.
GUI conventions
Convention Description
Window names, button names, field names, and menu items are in Boldface. For
Boldface
example, the New User window appears; click OK.
> Multi-level menus are separated by angle brackets. For example, File > Create > Folder.
Symbols
Convention Description
An alert that calls attention to important information that if not understood or followed
WARNING! can result in personal injury.
An alert that calls attention to important information that if not understood or followed
CAUTION: can result in data loss, data corruption, or damage to hardware or software.
Convention Description
T Wireless terminator.
Represents a mesh access point.
Represents omnidirectional signals.
Convention Description
Represents directional signals.
Represents a security card, such as a firewall, load balancing, NetStream, SSL VPN, IPS,
or ACG card.
Obtaining documentation
Access the most up-to-date H3C product documentation on the World Wide Web
at http://www.h3c.com.
Click the following links to obtain different categories of product documentation:
[Technical Documents]—Provides hardware installation, software upgrading, and software feature
configuration and maintenance documentation.
[Products & Solutions]—Provides information about products and technologies, as well as solutions.
[Software Download]—Provides the documentation released with the software version.
Technical support
service@h3c.com
http://www.h3c.com
Documentation feedback
You can e-mail your comments about product documentation to info@h3c.com.
We appreciate your comments.
Contents
i
Assigning an access port to a VLAN ·················································································································· 27
Assigning a trunk port to a VLAN························································································································ 28
Assigning a hybrid port to a VLAN ····················································································································· 28
Configuring a VLAN group ··········································································································································· 29
Displaying and maintaining VLANs ····························································································································· 29
VLAN configuration example········································································································································ 30
Network requirements ··········································································································································· 30
Configuration procedure ······································································································································ 30
Verifying the configuration ··································································································································· 31
ii
Displaying and maintaining LLDP ································································································································· 67
Basic LLDP configuration example ································································································································ 68
Network requirements ··········································································································································· 68
Configuration procedure ······································································································································ 68
Verifying the configuration ··································································································································· 69
iii
Configuring Ethernet link aggregation
Ethernet link aggregation bundles multiple physical Ethernet links into one logical link, called an
aggregate link. Link aggregation has the following benefits:
• Increased bandwidth beyond the limits of any single link. In an aggregate link, traffic is distributed
across the member ports.
• Improved link reliability. The member ports dynamically back up one another. When a member
port fails, its traffic is automatically switched to other member ports.
As shown in Figure 1, Device A and Device B are connected by three physical Ethernet links. These
physical Ethernet links are combined into an aggregate link called link aggregation 1. The bandwidth of
this aggregate link can reach up to the total bandwidth of the three physical Ethernet links. At the same
time, the three Ethernet links back up one another. When a physical Ethernet link fails, the traffic
previously transmitted on the failed link is switched to the other two links.
Figure 1 Ethernet link aggregation diagram
Basic concepts
Aggregation group, member port, and aggregate interface
An aggregation group is a group of Ethernet interfaces bundled together. These Ethernet interfaces are
called member ports of the aggregation group. Each aggregation group has a corresponding logical
interface (called an aggregate interface).
Aggregate interfaces include Layer 2 aggregate interfaces and Layer 3 aggregate interfaces. On a
Layer 3 aggregate interface, you can create subinterfaces.
When you create an aggregate interface, the device automatically creates an aggregation group of the
same type and number as the aggregate interface. For example, when you create Layer 2 aggregate
interface 1, the device automatically creates Layer 2 aggregation group 1.
You can assign Layer 2 Ethernet interfaces only to a Layer 2 aggregation group, and Layer 3 Ethernet
interfaces only to a Layer 3 aggregation group.
The port rate of an aggregate interface equals the total rate of its Selected member ports. Its duplex
mode is the same as that of the Selected member ports. For more information about Selected member
ports, see "Aggregation states of member ports in an aggregation group."
NOTE:
The device supports only Layer 3 aggregation groups and aggregate interfaces.
1
Aggregation states of member ports in an aggregation group
A member port in an aggregation group can be in any of the following aggregation states:
• Selected—A Selected port can forward traffic.
• Unselected—An Unselected port cannot forward traffic.
• Individual—An Individual port can forward traffic as a normal physical port. A port is placed in the
Individual state when the following conditions exist:
{ Its aggregate interface is configured as an edge aggregate interface.
{ The port has not received Link Aggregation Control Protocol Data Units (LACPDUs) from its peer
port.
Operational key
When aggregating ports, the system automatically assigns each port an operational key based on port
information, such as port rate and duplex mode. Any change to this information triggers a recalculation
of the operational key.
In an aggregation group, all Selected ports have the same operational key.
Configuration types
Port configurations include attribute configurations and protocol configurations. Attribute configurations
of a link aggregation member port affect its aggregation state.
• Attribute configurations—To become a Selected port, a member port must have the same attribute
configurations as the aggregate interface. Table 1 describes the attribute configurations.
Attribute configurations made on an aggregate interface are automatically synchronized to all
member ports. These configurations are retained on the member ports even after the aggregate
interface is deleted.
Any attribute configuration change on a member port might affect the aggregation states and
running services of the member ports. The system displays a warning message every time you try
to change an attribute configuration setting on a member port.
Table 1 Attribute configurations
Feature Considerations
Indicates whether the port has joined an isolation group and which isolation
Port isolation
group the port belongs to.
QinQ status (enabled/disabled), TPID for VLAN tags, and VLAN transparent
QinQ
transmission. For information about QinQ, see "Configuring QinQ."
VLAN mapping configured on the port. For more information about VLAN
VLAN mapping
mapping, see "Configuring VLAN mapping."
2
Feature Considerations
VLAN attribute configurations include the following:
• Permitted VLAN IDs.
• PVID.
• Link type (trunk, hybrid, or access).
• PVLAN port type (promiscuous, trunk promiscuous, host, or trunk
VLAN
secondary).
• IP subnet-based VLAN configuration.
• Protocol-based VLAN configuration.
• VLAN tagging mode.
For information about VLANs, see "Configuring VLANs."
NOTE:
• The protocol configurations for an aggregate interface take effect only on the current aggregate
interface.
• The protocol configurations for a member port take effect only when the port leaves its aggregation
group.
3
4. Half duplex.
5. In descending order of speed.
From the candidate ports with the same attribute configurations as the aggregate interface, the one with
the highest priority level is chosen as the reference port.
• If multiple ports have the same priority level, the port that has been Selected (if any) is chosen. If
multiple ports with the same priority level have been Selected, the one with the smallest port number
is chosen.
• If multiple ports have the same priority level and none of them has been Selected, the port with the
smallest port number is chosen.
Yes
Is there any hardware restriction?
No
No
Is the port up?
Yes
No
Operational key/attribute configurations
same as the reference port?
Yes
Yes No
More candidate ports than max. number of Port number as low as to set the port
Selected ports? to the Selected state?
No Yes
4
Any operational key or attribute configuration change might affect the aggregation states of link
aggregation member ports.
The device does not have any hardware attributes.
LACP
LACP uses LACPDUs to exchange aggregation information between LACP-enabled devices. Each
member port in a dynamic aggregation group can exchange information with its peer. When a member
port receives an LACPDU, it compares the received information with information received on the other
member ports. In this way, the two systems reach an agreement on which ports are placed in the Selected
state.
LACP functions
LACP offers basic LACP functions and extended LACP functions, as described in Table 2.
Table 2 Basic and extended LACP functions
Category Description
Implemented through the basic LACPDU fields, including the system LACP priority,
Basic LACP functions
system MAC address, port priority, port number, and operational key.
Implemented by extending the LACPDU with new TLV fields. Extended LACP can
implement LACP MAD for the IRF feature.
Extended LACP • If a device supports both extended LACP and IRF, it can participate in LACP
functions MAD as either an IRF member device or an intermediate device.
• If a device supports extended LACP but not IRF, it can participate in LACP MAD
only as an intermediate device.
LACP priorities
LACP priorities include system LACP priority and port priority, as described in Table 3. The smaller the
priority value, the higher the priority.
5
Table 3 LACP priorities
Type Description
Used by two peer devices (or systems) to determine which one is superior in link
aggregation.
System LACP priority In dynamic link aggregation, the system that has higher system LACP priority sets the
Selected state of member ports on its side. The system that has lower priority sets the
aggregation state of local member ports the same as their respective peer ports.
6
The port with the smallest port number and the same attribute configurations as the aggregate
interface is chosen as the reference port.
The system with the greater system ID can detect the aggregation state changes on the peer system. The
system with the greater system ID sets the aggregation state of local member ports the same as their peer
ports.
When you aggregate interfaces in dynamic mode, follow these guidelines:
• The maximum number of Selected ports in a dynamic aggregation group is 8.
7
• A dynamic link aggregation group preferably chooses full-duplex ports as the Selected ports. The
group chooses only one half-duplex port as a Selected port when either of the following conditions
exist:
{ None of the full-duplex ports can become Selected ports.
{ Only half-duplex ports exist in the group.
• For stable aggregation and service continuity, do not change the operational key or attribute
configurations on any member port.
• After the Selected port limit is reached, a newly joining port becomes a Selected port if it is more
eligible than a current Selected port.
• The device does not have any hardware attributes.
8
Ethernet link aggregation configuration task list
Tasks at a glance
(Required.) Configuring an aggregation group:
• Configuring a Layer 3 static aggregation group
• Configuring a Layer 3 dynamic aggregation group
• Deleting an aggregate interface also deletes its aggregation group and causes all member ports to
leave the aggregation group.
• You must configure the same aggregation mode on the two ends of an aggregate link.
9
Configuring a Layer 3 static aggregation group
For a successful static aggregation, make sure the ports at both ends of each link are in the same
aggregation state.
To configure a Layer 3 static aggregation group:
2. Set the system LACP priority. lacp system-priority system-priority Changing the system LACP priority
might affect the aggregation states
of the ports in the dynamic
aggregation group.
10
Step Command Remarks
5. Exit to system view. quit N/A
a. Enter Layer 3 Ethernet
interface view:
interface interface-type
interface-number Repeat these two substeps to
6. Assign an interface to the
assign more Layer 3 Ethernet
specified Layer 3 aggregation b. Assign the interface to the
interfaces to the aggregation
group. specified Layer 3
group.
aggregation group:
port link-aggregation
group number
• Set the LACP operating mode
to passive:
7. Set the LACP operating mode lacp mode passive By default, LACP is operating in
for the interface. • Set the LACP operating mode active mode.
to active:
undo lacp mode
11
Step Command Remarks
interface route-aggregation
2. Enter Layer 3 aggregate
{ interface-number | N/A
interface or subinterface view.
interface-number.subnumber }
interface route-aggregation
2. Enter Layer 3 aggregate
{ interface-number | N/A
interface or subinterface view.
interface-number.subnumber }
3. Set the MTU for the Layer 3
aggregate interface or mtu size The default setting is 1500 bytes.
subinterface.
12
Setting the minimum and maximum numbers of Selected ports
for an aggregation group
IMPORTANT:
The minimum and maximum numbers of Selected ports must be the same for the local and peer
aggregation groups.
The bandwidth of an aggregate link increases as the number of Selected member ports increases. To
avoid congestion, you can set the minimum number of Selected ports required for bringing up an
aggregate interface.
This minimum threshold setting affects the aggregation states of aggregation member ports and the state
of the aggregate interface.
• When the number of member ports eligible to be Selected ports is smaller than the minimum
threshold, the following events occur:
{ The eligible member ports are placed in Unselected state.
{ The link layer state of the aggregate interface becomes down.
• When the number of member ports eligible to be Selected ports reaches or exceeds the minimum
threshold, the following events occur:
{ The eligible member ports are placed in Selected state.
{ The link layer state of the aggregate interface becomes up.
You can implement backup between two ports by performing the following tasks:
• Assigning two ports to an aggregation group.
• Setting the maximum number of Selected ports to 1 for the aggregation group.
Then, only one Selected port is allowed in the aggregation group, and the Unselected port acts as a
backup port.
To set the minimum and maximum numbers of Selected ports for an aggregation group:
13
Setting the expected bandwidth for an aggregate interface
To set the expected bandwidth for an aggregate interface:
interface route-aggregation
2. Enter Layer 3 aggregate
{ interface-number | N/A
interface or subinterface view.
interface-number.subnumber }
14
To shut down an aggregate interface:
interface route-aggregation
2. Enter Layer 3 aggregate
{ interface-number | N/A
interface or subinterface view.
interface-number.subnumber }
Step Command
1. Enter system view. system-view
15
Step Command Remarks
link-aggregation global load-sharing
mode { { destination-ip |
By default, the global load sharing
2. Set the global destination-mac | destination-port |
mode load shares packets
link-aggregation load ingress-port | ip-protocol | mpls-label1
automatically based on packet
sharing mode. | mpls-label2 | mpls-label3 | source-ip
types.
| source-mac | source-port | vlan-id } *
| flexible }
16
Configuration procedure
To enable link-aggregation traffic redirection:
Task Command
Display information for an aggregate interface display interface [ route-aggregation [ interface-number ] ]
or multiple aggregate interfaces. [ brief [ description | down ] ]
Display detailed information about the specified display link-aggregation verbose [ route-aggregation
aggregation groups. [ interface-number ] ]
Clear statistics for the specified aggregate reset counters interface [ route-aggregation
interfaces. [ interface-number ] ]
17
Figure 4 Network diagram
GE1/0/1 GE1/0/1
GE1/0/2 GE1/0/2
Link aggregation 1
GE1/0/3 GE1/0/3
Configuration procedure
1. Configure Device A:
# Create Layer 3 aggregate interface Route-Aggregation 1, and configure an IP address and
subnet mask for the aggregate interface.
<DeviceA> system-view
[DeviceA] interface route-aggregation 1
[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24
[DeviceA-Route-Aggregation1] quit
# Assign Layer 3 Ethernet interfaces GigabitEthernet 1/0/1 through GigabitEthernet 1/0/3 to
aggregation group 1.
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/1] quit
[DeviceA] interface gigabitethernet 1/0/2
[DeviceA-GigabitEthernet1/0/2] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/2] quit
[DeviceA] interface gigabitethernet 1/0/3
[DeviceA-GigabitEthernet1/0/3] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/3] quit
2. Configure Device B in the same way Device A is configured. (Details not shown.)
The output shows that link aggregation group 1 is a Layer 3 static aggregation group that contains three
Selected ports.
18
Layer 3 dynamic aggregation configuration example
Network requirements
On the network shown in Figure 5, perform the following tasks:
• Configure a Layer 3 dynamic aggregation group on both Device A and Device B.
• Configure IP addresses and subnet masks for the corresponding Layer 3 aggregate interfaces.
Figure 5 Network diagram
GE1/0/1 GE1/0/1
GE1/0/2 GE1/0/2
Link aggregation 1
GE1/0/3 GE1/0/3
Configuration procedure
1. Configure Device A:
# Create Layer 3 aggregate interface Route-Aggregation 1.
<DeviceA> system-view
[DeviceA] interface route-aggregation 1
# Configure the link aggregation mode as dynamic.
[DeviceA-Route-Aggregation1] link-aggregation mode dynamic
# Configure an IP address and subnet mask for Route-Aggregation 1.
[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24
[DeviceA-Route-Aggregation1] quit
# Assign Layer 3 Ethernet interfaces GigabitEthernet 1/0/1 through GigabitEthernet 1/0/3 to
aggregation group 1.
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/1] quit
[DeviceA] interface gigabitethernet 1/0/2
[DeviceA-GigabitEthernet1/0/2] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/2] quit
[DeviceA] interface gigabitethernet 1/0/3
[DeviceA-GigabitEthernet1/0/3] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/3] quit
2. Configure Device B in the same way Device A is configured. (Details not shown.)
19
Aggregation Mode: Dynamic
Loadsharing Type: NonS
System ID: 0x8000, 000f-e267-6c6a
Local:
Port Status Priority Oper-Key Flag
--------------------------------------------------------------------------------
GE1/0/1 S 32768 1 {ACDEF}
GE1/0/2 S 32768 1 {ACDEF}
GE1/0/3 S 32768 1 {ACDEF}
Remote:
Actor Partner Priority Oper-Key SystemID Flag
--------------------------------------------------------------------------------
GE1/0/1 1 32768 1 0x8000, 000f-e267-57ad {ACDEF}
GE1/0/2 2 32768 1 0x8000, 000f-e267-57ad {ACDEF}
GE1/0/3 3 32768 1 0x8000, 000f-e267-57ad {ACDEF}
The output shows that link aggregation group 1 is a Layer 3 dynamic aggregation group that contains
three Selected ports.
Configuration procedure
1. Configure Device A:
# Create Layer 3 aggregate interface Route-Aggregation 1.
<DeviceA> system-view
[DeviceA] interface route-aggregation 1
# Configure Layer 3 aggregation group 1 to load share packets based on source IP addresses.
[DeviceA-Route-Aggregation1] link-aggregation load-sharing mode source-ip
# Configure an IP address and subnet mask for Layer 3 aggregate interface Route-Aggregation 1.
[DeviceA-Route-Aggregation1] ip address 192.168.1.1 24
[DeviceA-Route-Aggregation1] quit
20
# Assign Layer 3 Ethernet interfaces GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 to
aggregation group 1.
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/1] quit
[DeviceA] interface gigabitethernet 1/0/2
[DeviceA-GigabitEthernet1/0/2] port link-aggregation group 1
[DeviceA-GigabitEthernet1/0/2] quit
# Create Layer 3 aggregate interface Route-Aggregation 2.
[DeviceA] interface route-aggregation 2
# Configure Layer 3 aggregation group 2 to load share packets based on destination IP
addresses.
[DeviceA-Route-Aggregation2] link-aggregation load-sharing mode destination-ip
# Configure an IP address and subnet mask for Layer 3 aggregate interface Route-Aggregation 2.
[DeviceA-Route-Aggregation2] ip address 192.168.2.1 24
[DeviceA-Route-Aggregation2] quit
# Assign Layer 3 Ethernet interfaces GigabitEthernet 1/0/3 and GigabitEthernet 1/0/4 to
aggregation group 2.
[DeviceA] interface gigabitethernet 1/0/3
[DeviceA-GigabitEthernet1/0/3] port link-aggregation group 2
[DeviceA-GigabitEthernet1/0/3] quit
[DeviceA] interface gigabitethernet 1/0/4
[DeviceA-GigabitEthernet1/0/4] port link-aggregation group 2
[DeviceA-GigabitEthernet1/0/4] quit
2. Configure Device B in the same way Device A is configured. (Details not shown.)
21
GE1/0/3 S 32768 2
GE1/0/4 S 32768 2
Configuration procedure
# Create Layer 3 aggregate interface Route-Aggregation 1, and set the link aggregation mode to
dynamic.
<Device> system-view
[Device] interface route-aggregation 1
[Device-Route-Aggregation1] link-aggregation mode dynamic
# Configure an IP address and subnet mask for Layer 3 aggregate interface Route-Aggregation 1.
[Device-Route-Aggregation1] ip address 192.168.1.1 24
# Assign Layer 3 Ethernet interfaces GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 to aggregation
group 1.
22
[Device] interface gigabitethernet 1/0/1
[Device-GigabitEthernet1/0/1] port link-aggregation group 1
[Device-GigabitEthernet1/0/1] quit
[Device] interface gigabitethernet 1/0/2
[Device-GigabitEthernet1/0/2] port link-aggregation group 1
[Device-GigabitEthernet1/0/2] quit
The output shows that GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 are in Individual state when
they do not receive LACPDUs from the server. Both GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2
can forward traffic. When one port fails, its traffic is automatically switched to the other port.
23
Configuring VLANs
Overview
Ethernet is a family of shared-media LAN technologies based on the CSMA/CD mechanism. An Ethernet
LAN is both a collision domain and a broadcast domain. Because the medium is shared, collisions and
broadcasts are common in an Ethernet LAN. Typically, bridges and Layer 2 switches can reduce
collisions in an Ethernet LAN. To confine broadcasts, a Layer 2 switch must use the Virtual Local Area
Network (VLAN) technology.
VLANs enable a Layer 2 switch to break a LAN down into smaller broadcast domains, as shown
in Figure 8.
Figure 8 A VLAN diagram
VLAN 2
Switch A Switch B
Router
VLAN 5
A VLAN is logically divided on an organizational basis rather than on a physical basis. For example, you
can assign all workstations and servers used by a particular workgroup to the same VLAN, regardless of
their physical locations. Hosts in the same VLAN can directly communicate with one another. You need
a router or a Layer 3 switch for hosts in different VLANs to communicate with one another.
All these VLAN features reduce bandwidth waste, improve LAN security, and enable flexible virtual
group creation.
24
A VLAN tag includes the following fields:
• TPID—16-bit tag protocol identifier that indicates whether a frame is VLAN-tagged. By default, the
TPID value 0x8100 identifies a VLAN-tagged frame. A device vendor can set the TPID to a different
value. For compatibility with a neighbor device, set the TPID value on the device to be the same as
the neighbor device.
• Priority—3-bit long, identifies the 802.1p priority of the frame. For more information, see ACL and
QoS Configuration Guide.
• CFI—1-bit long canonical format indicator that indicates whether the MAC addresses are
encapsulated in the standard format when packets are transmitted across different media.
Available values include:
{ 0 (default)—The MAC addresses are encapsulated in the standard format.
{ 1—The MAC addresses are encapsulated in a non-standard format.
This field is always set to 0 for Ethernet.
• VLAN ID—12-bit long, identifies the VLAN to which the frame belongs. The VLAN ID range is 0 to
4095. VLAN IDs 0 and 4095 are reserved, and VLAN IDs 1 to 4094 are user configurable.
The way a network device handles an incoming frame depends on whether the frame has a VLAN tag
and the value of the VLAN tag (if any). For more information, see "Introduction."
Ethernet supports encapsulation formats Ethernet II, 802.3/802.2 LLC, 802.3/802.2 SNAP, and 802.3
raw. The Ethernet II encapsulation format is used here. For information about the VLAN tag fields in other
frame encapsulation formats, see related protocols and standards.
For a frame that has multiple VLAN tags, the device handles it according to its outermost VLAN tag and
transmits its inner VLAN tags as the payload.
25
Step Command Remarks
By default, the description of a VLAN is
VLAN vlan-id. The vlan-id argument
specifies the VLAN ID in a four-digit format.
5. Configure the
description text If the VLAN ID has fewer than four digits,
description of the VLAN.
leading zeros are added. For example, the
default description of VLAN 100 is VLAN
0100.
NOTE:
• As the system default VLAN, VLAN 1 cannot be created or deleted.
• Before you delete a dynamic VLAN or a VLAN locked by an application, you must first remove the
configuration from the VLAN.
PVID
The PVID identifies the port VLAN of a port.
When you configure the PVID on a port, follow these restrictions and guidelines:
• An access port can join only one VLAN. The VLAN to which the access port belongs is the PVID of
the port.
• A trunk or hybrid port supports multiple VLANs and the PVID configuration.
• When you use the undo vlan command to delete the PVID of a port, either of the following events
occurs depending on the port link type:
{ For an access port, the PVID of the port changes to VLAN 1.
{ For a hybrid or trunk port, the PVID setting of the port does not change.
26
You can use a nonexistent VLAN as the PVID for a hybrid or trunk port, but not for an access port.
• H3C recommends that you set the same PVID for a local port and its peer.
• To prevent a port from dropping untagged packets or PVID-tagged packets, assign the port to its
PVID.
27
Step Command Remarks
2. Enter Layer 2 Ethernet
interface interface-type interface-number N/A
interface view.
3. Set the port link type to By default, all ports are access
port link-type access
access. ports.
4. (Optional.) Assign the By default, all access ports
port access vlan vlan-id
access port to a VLAN. belong to VLAN 1.
28
Step Command Remarks
3. Set the port link type to By default, all ports are
port link-type hybrid
hybrid. access ports.
Task Command
display vlan [ vlan-id1 [ to vlan-id2 ] | all | dynamic | reserved
Display VLAN information.
| static ]
29
Task Command
Display hybrid ports or trunk ports on the
display port { hybrid | trunk }
device.
Configuration procedure
1. Configure Device A:
# Create VLAN 100, and assign GigabitEthernet 1/0/1 to VLAN 100.
<DeviceA> system-view
[DeviceA] vlan 100
[DeviceA-vlan100] port gigabitethernet 1/0/1
[DeviceA-vlan100] quit
# Create VLAN 200, and assign GigabitEthernet 1/0/2 to VLAN 200.
[DeviceA] vlan 200
[DeviceA-vlan200] port gigabitethernet 1/0/2
[DeviceA-vlan200] quit
# Configure GigabitEthernet 1/0/3 as a trunk port, and assign the port to VLANs 100 and 200.
[DeviceA] interface gigabitethernet 1/0/3
[DeviceA-GigabitEthernet1/0/3] port link-type trunk
[DeviceA-GigabitEthernet1/0/3] port trunk permit vlan 100 200
Please wait... Done.
2. Configure Device B in the same way Device A is configured. (Details not shown.)
3. Configure hosts:
30
a. Configure Host A and Host C to be on the same IP subnet. For example, 192.168.100.0/24.
b. Configure Host B and Host D to be on the same IP subnet. For example, 192.168.200.0/24.
31
Configuring VLAN termination
Overview
VLAN termination typically processes packets that include VLAN tags. A VLAN termination-enabled
interface performs the following tasks when receiving a VLAN-tagged packet:
1. Assigns the packet to an interface according to its VLAN tags.
2. Removes the VLAN tags of the packet.
3. Delivers the packet to Layer 3 forwarding or other processing pipelines.
Before sending the packet, the VLAN termination-enabled interface determines whether to add new
VLAN tags to the packet, based on the VLAN termination type.
VLAN termination can also process packets that do not include any VLAN tags.
This document uses the following VLAN tag concepts for a packet that has two or more layers of VLAN
tags:
• Layer 1 VLAN tag—Specifies the outermost layer of VLAN tags.
• Layer 2 VLAN tag—Specifies the second outermost layer of VLAN tags.
The VLAN IDs of the packets are numbered in the same manner as the VLAN tags.
32
VLAN termination application scenarios
Inter-VLAN communication
Hosts in different VLANs cannot directly communicate with each other. You can use Layer 3 routing to
allow all VLANs to communicate. To restrict communication to the specified VLANs, configure VLAN
termination on Layer 3 Ethernet subinterfaces or Layer 3 aggregate subinterfaces.
As shown in Figure 11, Host A and Host B are in different VLANs. The two hosts can communicate with
each other after you perform the following tasks:
1. Specify 1.1.1.1/24 and 1.1.2.1/24 as the gateway IP addresses for Host A and Host B,
respectively.
2. On the device, configure VLAN termination on Layer 3 Ethernet subinterfaces GigabitEthernet
1/0/1.1 and GigabitEthernet 1/0/2.1.
Figure 11 VLAN termination for inter-VLAN communication
LAN-WAN communication
Typically, WAN protocols such as ATM, Frame Relay, and PPP do not recognize VLAN-tagged packets
from LANs. Before packets are sent to a WAN, the sending port must locally record the VLAN
information and remove VLAN tags from the packets. To do that, configure VLAN termination on Layer
3 Ethernet subinterfaces or Layer 3 aggregate subinterfaces.
As shown in Figure 12, a host is located on a customer network and wants to access the WAN network
through a PPPoE connection. CVLAN and SVLAN represent the VLAN on the customer network and
service provider network, respectively.
To access the WAN network, a packet originating from the host is processed as follows:
1. Layer 2 Switch A adds a CVLAN tag to the packet and sends the packet.
2. Layer 2 Switch B adds an SVLAN tag to the packet on the QinQ-enabled port.
3. The packet is forwarded on the service provider network based on the SVLAN tag.
4. The PPPoE gateway removes the two layers of VLAN tags from the packet and adds new VLAN
tags on the QinQ termination-enabled port.
5. The PPPoE gateway sends the packet to the WAN network through GigabitEthernet 1/0/1.
33
Figure 12 VLAN termination enables LAN-WAN communication
When you configure VLAN termination, follow these restrictions and guidelines:
• A main interface cannot terminate VLAN-tagged packets. To terminate VLAN-tagged packets, you
can create subinterfaces for the main interface.
• Layer 3 Ethernet subinterfaces and Layer 3 aggregate subinterfaces can terminate the following
packets:
{ Packets whose outermost VLAN IDs match the configured values.
{ Packets whose outermost two layers of VLAN IDs match the configured values.
• After you modify the VLAN termination configuration for a Layer 3 Ethernet subinterface or Layer 3
aggregate subinterface, the subinterface automatically restarts. All dynamic ARP table entries for
the subinterface are removed.
After you configure VLAN termination, the system finds an interface for a received packet in the following
order:
• Subinterface configured with QinQ termination.
• Subinterface configured with loose QinQ termination.
• Subinterface configured with Dot1q termination, or subinterface that supports Dot1q termination by
default.
• Subinterface configured with loose Dot1q termination.
34
• Subinterface configured with untagged termination.
• Subinterface configured with default termination.
• Main interface.
35
Step Command Remarks
• Enter Layer 3 Ethernet subinterface
view:
interface interface-type
interface-number.subnumber
• Enter Layer 3 aggregate
2. Enter interface view. subinterface view: N/A
interface route-aggregation
interface-number.subnumber
• Enter L3VE subinterface view:
interface ve-l3vpn
interface-number.subnumber
3. Configure unambiguous By default, Dot1q termination
vlan-type dot1q vid vlan-id [ loose ]
Dot1q termination. is disabled on a subinterface.
36
• Subinterfaces under different main interfaces can terminate VLAN-tagged packets with the same
Layer 1 and Layer 2 VLAN IDs.
• When you use the vlan-type dot1q vid second-dot1q command to configure ambiguous QinQ
termination multiple times, one of the following conditions occurs:
{ If the most recently specified Layer 1 ID is the same as the current Layer 1 ID, the specified Layer
2 IDs in both configurations take effect.
{ If the most recently specified Layer 1 ID is different from the current Layer 1 ID, you must first
delete the old configuration.
To configure ambiguous QinQ termination:
37
Configuring untagged termination
Step Command Remarks
1. Enter system view. system-view N/A
• Enter Layer 3 Ethernet subinterface view:
interface interface-type
interface-number.subnumber
• Enter Layer 3 aggregate subinterface
view:
2. Enter interface view. N/A
interface route-aggregation
interface-number.subnumber
• Enter L3VE subinterface view:
interface ve-l3vpn
interface-number.subnumber
By default, untagged
3. Configure untagged
vlan-type dot1q untagged termination is disabled on
termination.
a subinterface.
By default, default
3. Configure default
vlan-type dot1q default termination is disabled on
termination.
a subinterface.
38
Step Command Remarks
• Enter Layer 3 Ethernet subinterface
view:
interface interface-type
interface-number.subnumber
• Enter Layer 3 aggregate subinterface
2. Enter interface view. view: N/A
interface route-aggregation
interface-number.subnumber
• Enter L3VE subinterface view:
interface ve-l3vpn
interface-number.subnumber
3. Enable the By default, an ambiguous Dot1q or
subinterface to transmit QinQ termination-enabled
vlan-termination broadcast enable
broadcasts and subinterface does not transmit
multicasts. broadcasts and multicasts.
39
Step Command Remarks
3. Set the TPID value in the
outermost VLAN tag of
dot1q ethernet-type hex-value The default setting is 0x8100.
packets received and sent
by the interface.
Configuration procedure
1. Configure Host A, Host B, Host C, and Host D:
# On Host A, specify 1.1.1.1/8 and 1.0.0.1/8 as its IP address and gateway IP address,
respectively. (Details not shown.)
# On Host B, specify 2.2.2.2/8 and 2.0.0.1/8 as its IP address and gateway IP address,
respectively. (Details not shown.)
# On Host C, specify 3.3.3.3/8 and 3.0.0.1/8 as its IP address and gateway IP address,
respectively. (Details not shown.)
# On Host D, specify 4.4.4.4/8 and 4.0.0.1/8 as its IP address and gateway IP address,
respectively. (Details not shown.)
2. Configure Layer 2 Switch A:
# Create VLAN 10.
<L2_SwitchA> system-view
40
[L2_SwitchA] vlan 10
# Assign GigabitEthernet 1/0/2 to VLAN 10.
[L2_SwitchA-vlan10] port gigabitethernet 1/0/2
[L2_SwitchA-vlan10] quit
# Create VLAN 20.
[L2_SwitchA] vlan 20
# Assign GigabitEthernet 1/0/3 to VLAN 20.
[L2_SwitchA-vlan20] port gigabitethernet 1/0/3
[L2_SwitchA-vlan20] quit
# Configure GigabitEthernet 1/0/1 as a trunk port, and assign the port to VLANs 10 and 20.
[L2_SwitchA] interface gigabitethernet 1/0/1
[L2_SwitchA-GigabitEthernet1/0/1] port link-type trunk
[L2_SwitchA-GigabitEthernet1/0/1] port trunk permit vlan 10 20
3. Configure Layer 2 Switch B in the same way you configure Layer 2 Switch A. (Details not shown.)
4. Configure the device:
# Create GigabitEthernet 1/0/1.10, and assign an IP address to this interface.
<Device> system-view
[Device] interface gigabitethernet 1/0/1.10
[Device-GigabitEthernet1/0/1.10] ip address 1.0.0.1 255.0.0.0
# Configure GigabitEthernet 1/0/1.10 to terminate packets tagged with VLAN 10.
[Device-GigabitEthernet1/0/1.10] vlan-type dot1q vid 10
[Device-GigabitEthernet1/0/1.10] quit
# Create GigabitEthernet 1/0/1.20, and assign an IP address to this interface.
[Device] interface gigabitethernet 1/0/1.20
[Device-GigabitEthernet1/0/1.20] ip address 2.0.0.1 255.0.0.0
# Configure GigabitEthernet 1/0/1.20 to terminate packets tagged with VLAN 20.
[Device-GigabitEthernet1/0/1.20] vlan-type dot1q vid 20
[Device-GigabitEthernet1/0/1.20] quit
# Configure GigabitEthernet 2/0/1.10, and assign an IP address to this interface.
[Device] interface gigabitethernet 2/0/1.10
[Device-GigabitEthernet2/0/1.10] ip address 3.0.0.1 255.0.0.0
# Configure GigabitEthernet 2/0/1.10 to terminate packets tagged with VLAN 10.
[Device-GigabitEthernet2/0/1.10] vlan-type dot1q vid 10
[Device-GigabitEthernet2/0/1.10] quit
# Configure GigabitEthernet 2/0/1.20, and assign an IP address to this interface.
[Device] interface gigabitethernet 2/0/1.20
[Device-GigabitEthernet2/0/1.20] ip address 4.0.0.1 255.0.0.0
# Configure GigabitEthernet 2/0/1.20 to terminate packets tagged with VLAN 20.
[Device-GigabitEthernet2/0/1.20] vlan-type dot1q vid 20
[Device-GigabitEthernet2/0/1.20] quit
41
Ambiguous Dot1q termination configuration example
Network requirements
As shown in Figure 14, configure ambiguous Dot1q termination, so that hosts in different VLANs can
communicate with the server group.
Figure 14 Network diagram
Configuration procedure
In this example, L2 Switch B uses the factory configuration.
1. Configure Host A, Host B, and Host C:
# Assign 1.1.1.1/24, 1.1.1.2/24, and 1.1.1.3/24 to Host A, Host B, and Host C, respectively.
(Details not shown.)
# Specify 1.1.1.11/24 as the gateway IP address for the hosts. (Details not shown.)
2. Configure Layer 2 Switch A:
# Create VLAN 11.
<L2_SwitchA> system-view
[L2_SwitchA] vlan 11
# Assign GigabitEthernet 1/0/1 to VLAN 11.
[L2_SwitchA-vlan11] port gigabitethernet 1/0/1
[L2_SwitchA-vlan11] quit
# Create VLAN 12.
[L2_SwitchA] vlan 12
# Assign GigabitEthernet 1/0/2 to VLAN 12.
[L2_SwitchA-vlan12] port gigabitethernet 1/0/2
[L2_SwitchA-vlan12] quit
# Create VLAN 13.
[L2_SwitchA] vlan 13
# Assign GigabitEthernet 1/0/3 to VLAN 13.
42
[L2_SwitchA-vlan13] port gigabitethernet 1/0/3
[L2_SwitchA-vlan13] quit
# Configure GigabitEthernet 1/0/7 as a trunk port, and assign the port to VLANs 11 through 13.
[L2_SwitchA] interface gigabitethernet 1/0/7
[L2_SwitchA-GigabitEthernet1/0/7] port link-type trunk
[L2_SwitchA-GigabitEthernet1/0/7] port trunk permit vlan 11 to 13
3. Configure the device:
# Create Ethernet subinterface GigabitEthernet 1/0/1.10, and assign an IP address to the
subinterface.
<Device> system-view
[Device] interface gigabitethernet 1/0/1.10
[Device-GigabitEthernet1/0/1.10] ip address 1.1.1.11 255.255.255.0
# Enable Dot1q termination on GigabitEthernet 1/0/1.10 to terminate VLAN-tagged packets
whose Layer 1 VLAN IDs are 11, 12, or 13.
[Device-GigabitEthernet1/0/1.10] vlan-type dot1q vid 11 to 13
[Device-GigabitEthernet1/0/1.10] quit
# Configure an IP address for GigabitEthernet 1/0/2.
[Device] interface gigabitethernet 1/0/2
[Device-GigabitEthernet1/0/2] ip address 1.1.2.11 255.255.255.0
4. Configure the server group:
# Assign each device in the server group an IP address on the network segment 1.1.2.0/24.
(Details not shown.)
# Specify 1.1.2.11/24 as the gateway IP address for the server group. (Details not shown.)
43
Figure 15 Network diagram
Configuration procedure
# Configure VLANs and Dot1q termination. For the configuration procedure, see "Ambiguous Dot1q
termination configuration example." (Details not shown.)
# Configure the router as the PPPoE server. Configure PPPoE settings on GigabitEthernet 1/0/1.10 on the
router. For more information about the PPPoE configuration, see Layer 2—WAN Configuration Guide.
(Details not shown.)
44
Figure 16 Network diagram
Router
L2 Switch B GE1/0/1 Service provider network
VLAN 100
GE1/0/2 GE1/0/1.10 GE1/0/2
QinQ enabled 1.1.1.11/24 1.1.2.11/24
L2 Switch A GE1/0/1
L2 Switch C
GE1/0/2
VLAN 11
Host A Host B
1.1.1.1/24 1.1.2.1/24
Configuration procedure
In this example, Layer 2 Switch C uses the factory configuration.
1. Configure Host A and Host B:
# On Host A, specify 1.1.1.1/24 and 1.1.1.11/24 as its IP address and gateway IP address,
respectively. (Details not shown.)
# On Host B, specify 1.1.2.1/24 and 1.1.2.11/24 as its IP address and gateway IP address,
respectively. (Details not shown.)
2. Configure Layer 2 Switch A:
# Create VLAN 11.
<L2_SwitchA> system-view
[L2_SwitchA] vlan 11
# Assign GigabitEthernet 1/0/2 to VLAN 11.
[L2_SwitchA-vlan11] port gigabitethernet 1/0/2
[L2_SwitchA-vlan11] quit
# Configure GigabitEthernet 1/0/1 as a trunk port, and assign the port to VLAN 11.
[L2_SwitchA] interface gigabitethernet 1/0/1
[L2_SwitchA-GigabitEthernet1/0/1] port link-type trunk
[L2_SwitchA-GigabitEthernet1/0/1] port trunk permit vlan 11
3. Configure Layer 2 Switch B:
# Configure GigabitEthernet 1/0/2 as a trunk port, and assign the port to VLAN 11 and VLAN
100.
<L2_SwitchB> system-view
[L2_SwitchB] interface gigabitethernet 1/0/2
[L2_SwitchB-GigabitEthernet1/0/2] port link-type trunk
[L2_SwitchB-GigabitEthernet1/0/2] port trunk permit vlan 11 100
# Set the PVID of GigabitEthernet 1/0/2 to VLAN 100.
[L2_SwitchB-GigabitEthernet1/0/2] port trunk pvid vlan 100
# Enable QinQ on GigabitEthernet 1/0/2.
[L2_SwitchB-GigabitEthernet1/0/2] qinq enable
45
[L2_SwitchB-GigabitEthernet1/0/2] quit
# Configure GigabitEthernet 1/0/1 as a trunk port, and assign the port to VLAN 100.
[L2_SwitchB] interface gigabitethernet 1/0/1
[L2_SwitchB-GigabitEthernet1/0/1] port link-type trunk
[L2_SwitchB-GigabitEthernet1/0/1] port trunk permit vlan 100
4. Configure the router:
# Create Ethernet subinterface GigabitEthernet 1/0/1.10, and assign an IP address to the
subinterface.
<Router> system-view
[Router] interface gigabitethernet 1/0/1.10
[Router-GigabitEthernet1/0/1.10] ip address 1.1.1.11 255.255.255.0
# Enable QinQ termination on GigabitEthernet 1/0/1.10 to terminate the VLAN-tagged packets
with the Layer 1 VLAN ID 100 and the Layer 2 VLAN ID 11.
[Router-GigabitEthernet1/0/1.10] vlan-type dot1q vid 100 second-dot1q 11
[Router-GigabitEthernet1/0/1.10] quit
# Assign an IP address to GigabitEthernet 1/0/2.
[Router] interface gigabitethernet 1/0/2
[Router-GigabitEthernet1/0/2] ip address 1.1.2.11 255.255.255.0
GE1/0/7
L2 Switch A L2 Switch C
GE1/0/1 GE1/0/3
GE1/0/2
46
Configuration procedure
In this example, Layer 2 Switch C uses the factory configuration.
1. Configure Host A, Host B, and Host C:
# Assign the IP addresses 1.1.1.1/24, 1.1.1.2/24, and 1.1.1.3/24 to Host A, Host B, and Host
C, respectively. (Details not shown.)
# Specify 1.1.1.11/24 as the gateway address for the hosts. (Details not shown.)
2. Configure Layer 2 Switch A:
# Create VLAN 11.
<L2_SwitchA> system-view
[L2_SwitchA] vlan 11
# Assign GigabitEthernet 1/0/1 to VLAN 11.
[L2_SwitchA-vlan11] port gigabitethernet 1/0/1
[L2_SwitchA-vlan11] quit
# Create VLAN 12.
[L2_SwitchA] vlan 12
# Assign GigabitEthernet 1/0/2 to VLAN 12.
[L2_SwitchA-vlan12] port gigabitethernet 1/0/2
[L2_SwitchA-vlan12] quit
# Create VLAN 13.
[L2_SwitchA] vlan 13
# Assign GigabitEthernet 1/0/3 to VLAN 13.
[L2_SwitchA-vlan13] port gigabitethernet 1/0/3
[L2_SwitchA-vlan13] quit
# Configure GigabitEthernet 1/0/7 as a trunk port, and assign the port to VLANs 11 through 13.
[L2_SwitchA] interface gigabitethernet 1/0/7
[L2_SwitchA-GigabitEthernet1/0/7] port link-type trunk
[L2_SwitchA-GigabitEthernet1/0/7] port trunk permit vlan 11 to 13
3. Configure Layer 2 Switch B:
# Configure GigabitEthernet 1/0/2 as a trunk port, and assign the port to VLANs 11 through 13
and VLAN 100.
<L2_SwitchB> system-view
[L2_SwitchB] interface gigabitethernet 1/0/2
[L2_SwitchB-GigabitEthernet1/0/2] port link-type trunk
[L2_SwitchB-GigabitEthernet1/0/2] port trunk permit vlan 11 to 13 100
# Set the PVID of GigabitEthernet 1/0/2 to VLAN 100.
[L2_SwitchB-GigabitEthernet1/0/2] port trunk pvid vlan 100
# Enable QinQ on GigabitEthernet 1/0/2.
[L2_SwitchB-GigabitEthernet1/0/2] qinq enable
[L2_SwitchB-GigabitEthernet1/0/2] quit
# Configure GigabitEthernet 1/0/1 as a trunk port, and assign the port to VLAN 100.
[L2_SwitchB] interface gigabitethernet 1/0/1
[L2_SwitchB-GigabitEthernet1/0/1] port link-type trunk
[L2_SwitchB-GigabitEthernet1/0/1] port trunk permit vlan 100
4. Configure the router:
47
# Create Ethernet subinterface GigabitEthernet 1/0/1.10, and assign an IP address to the
subinterface.
<Router> system-view
[Router] interface gigabitethernet 1/0/1.10
[Router-GigabitEthernet1/0/1.10] ip address 1.1.1.11 255.255.255.0
# Configure GigabitEthernet 1/0/1.10 to terminate VLAN-tagged packets whose Layer 1 VLAN
ID is 100 and Layer 2 VLAN ID is 11, 12, or 13.
[Router-GigabitEthernet1/0/1.10] vlan-type dot1q vid 100 second-dot1q 11 to 13
[Router-GigabitEthernet1/0/1.10] quit
# Assign an IP address to GigabitEthernet 1/0/2.
[Router] interface gigabitethernet 1/0/2
[Router-GigabitEthernet1/0/2] ip address 1.1.2.11 255.255.255.0
5. Configure the server group:
# Assign each device in the server group an IP address on the network segment 1.1.2.0/24.
(Details not shown.)
# Specify 1.1.2.11/24 as the gateway IP address for the server group. (Details not shown.)
48
Figure 18 Network diagram
L2 Switch B Router
GE1/0/1 Ser2/1/0
Service provider network WAN
VLAN 100
GE1/0/2 GE1/0/1.10
QinQ enabled 1.1.1.11/24
PPPoE server enabled
L2 Switch A GE1/0/7
GE1/0/1 GE1/0/3
GE1/0/2
Configuration procedure
# Configure VLANs and QinQ termination. For the configuration procedure, see "Ambiguous QinQ
termination configuration example." (Details not shown.)
# Configure the router as the PPPoE server. Configure PPPoE settings on GigabitEthernet 1/0/1.10 on the
router. For more information about PPPoE configuration, see Layer 2—WAN Configuration Guide.
(Details not shown.)
49
Figure 19 Network diagram
Configuration procedure
1. Configure the DHCP relay agent Provider A:
# Enable DHCP service.
<ProviderA> system-view
[ProviderA] dhcp enable
# Create a Layer 3 Ethernet subinterface GigabitEthernet 1/0/1.100.
[ProviderA] interface gigabitethernet 1/0/1.100
# Configure GigabitEthernet 1/0/1.100 to terminate packets whose Layer 1 VLAN ID is 100 and
Layer 2 VLAN ID is 10 or 20.
[ProviderA-GigabitEthernet1/0/1.100] vlan-type dot1q vid 100 second-dot1q 10 20
# Enable GigabitEthernet 1/0/1.100 to transmit broadcast and multicast packets.
[ProviderA-GigabitEthernet1/0/1.100] vlan-termination broadcast enable
# Enable DHCP relay on GigabitEthernet 1/0/1.100 and specify 10.2.1.1 as the DHCP server
address.
[ProviderA-GigabitEthernet1/0/1.100] dhcp select relay
[ProviderA-GigabitEthernet1/0/1.100] dhcp relay server-address 10.2.1.1
# Assign an IP address to GigabitEthernet 1/0/1.100.
[ProviderA-GigabitEthernet1/0/1.100] ip address 192.168.1.1 24
[ProviderA-GigabitEthernet1/0/1.100] quit
# Enable recording of relay entries on the relay agent.
[ProviderA] dhcp relay client-information record
# Assign an IP address to GigabitEthernet 1/0/2.
50
[ProviderA] interface gigabitethernet 1/0/2
[ProviderA-GigabitEthernet1/0/2] ip address 10.1.1.1 24
[ProviderA-GigabitEthernet1/0/2] quit
# Configure a static route to the DHCP server.
[ProviderA] ip route-static 10.2.1.1 24 10.1.1.1
2. Configure the DHCP server Provider B:
# Assign an IP address to the DHCP server.
<ProviderB> system-view
[ProviderB] interface gigabitethernet 1/0/2
[ProviderB-GigabitEthernet1/0/2] ip address 10.2.1.1 24
[ProviderB-GigabitEthernet1/0/2] quit
# Enable DHCP.
[ProviderB] dhcp enable
# Configure an IP address pool on the DHCP server.
[ProviderB] dhcp server ip-pool 1
[ProviderB-dhcp-pool-1] network 192.168.1.0 24
[ProviderB-dhcp-pool-1] gateway-list 192.168.1.1
[ProviderB-dhcp-pool-1] quit
# Configure a static route to GigabitEthernet 1/0/1.100.
[ProviderB] ip route-static 192.168.1.1 24 10.1.1.1
3. Configure Switch A:
# Configure the uplink port GigabitEthernet 1/0/1 as a trunk port, and assign the port to VLAN
100.
<SwitchA> system-view
[SwitchA] interface gigabitethernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] port link-type trunk
[SwitchA-GigabitEthernet1/0/1] port trunk permit vlan 100
[SwitchA-GigabitEthernet1/0/1] quit
# Configure the downlink port GigabitEthernet 1/0/2 as a trunk port, and assign the port to
VLANs 10 and 100.
[SwitchA] interface gigabitethernet 1/0/2
[SwitchA-GigabitEthernet1/0/2] port link-type trunk
[SwitchA-GigabitEthernet1/0/2] port trunk permit vlan 10 100
# Set the PVID of GigabitEthernet 1/0/2 to VLAN 100.
[SwitchA-GigabitEthernet1/0/2] port trunk pvid vlan 100
# Enable QinQ on GigabitEthernet1/0/2.
[SwitchA-GigabitEthernet1/0/2] qinq enable
[SwitchA-GigabitEthernet1/0/2] quit
# Configure the downlink port GigabitEthernet 1/0/3 as a trunk port, and assign the port to
VLANs 20 and 100.
[SwitchA] interface gigabitethernet 1/0/3
[SwitchA-GigabitEthernet1/0/3] port link-type trunk
[SwitchA-GigabitEthernet1/0/3] port trunk permit vlan 20 100
# Set the PVID of GigabitEthernet 1/0/3 to VLAN 100.
[SwitchA-GigabitEthernet1/0/3] port trunk pvid vlan 100
51
# Enable QinQ on GigabitEthernet 1/0/3.
[SwitchA-GigabitEthernet1/0/3] qinq enable
[SwitchA-GigabitEthernet1/0/3] quit
# Assign GigabitEthernet 1/0/2 and GigabitEthernet 1/0/3 to VLAN 100.
[SwitchA] vlan 100
[SwitchA-vlan100] port gigabitethernet 1/0/2
[SwitchA-vlan100] port gigabitethernet 1/0/3
4. Configure Switch B:
# Create VLAN 10.
<SwitchB> system-view
[SwitchB] vlan 10
# Assign GigabitEthernet 1/0/2 to VLAN 10.
[SwitchB-vlan10] port gigabitethernet 1/0/2
[SwitchB-vlan10] quit
# Configure GigabitEthernet 1/0/1 as a trunk port, and assign the port to VLAN 10.
[SwitchB] interface gigabitethernet 1/0/1
[SwitchB-GigabitEthernet1/0/1] port link-type trunk
[SwitchB-GigabitEthernet1/0/1] port trunk permit vlan 10
5. Configure Switch C:
# Create VLAN 20.
<SwitchC> system-view
[SwitchC] vlan 20
# Assign GigabitEthernet 1/0/2 to VLAN 20.
[SwitchC-vlan20] port gigabitethernet 1/0/2
[SwitchC-vlan20] quit
# Configure GigabitEthernet 1/0/1 as a trunk port, and assign the port to VLAN 20.
[SwitchC] interface gigabitethernet 1/0/1
[SwitchC-GigabitEthernet1/0/1] port link-type trunk
[SwitchC-GigabitEthernet1/0/1] port trunk permit vlan 20
52
Configuring LLDP
Overview
In a heterogeneous network, a standard configuration exchange platform ensures that different types of
network devices from different vendors can discover one another and exchange configuration.
The Link Layer Discovery Protocol (LLDP) is specified in IEEE 802.1AB. The protocol operates on the data
link layer to exchange device information between directly connected devices. With LLDP, a device sends
local device information as TLV (type, length, and value) triplets in LLDP Data Units (LLDPDUs) to the
directly connected devices. Local device information includes its system capabilities, management IP
address, device ID, port ID, and so on. The device stores the device information in LLDPDUs from the LLDP
neighbors in a standard MIB. For more information about MIBs, see Network Management and
Monitoring Configuration Guide. LLDP enables a network management system to quickly detect and
identify Layer 2 network topology changes.
Basic concepts
LLDP agent
An LLDP agent is a mapping of an entity where LLDP runs. Multiple LLDP agents can run on the same
interface.
LLDP agents are divided into the following types:
• Nearest bridge agent.
• Nearest customer bridge agent.
• Nearest non-TPMR bridge agent.
A Two-port MAC Relay (TPMR) is a type of bridge that has only two externally-accessible bridge ports.
It supports a subset of the features of a MAC bridge. A TPMR is transparent to all frame-based
media-independent protocols except for the following protocols:
• Protocols destined to it.
• Protocols destined to reserved MAC addresses that the relay feature of the TPMR is configured not
to forward.
LLDP exchanges packets between neighbor agents and creates and maintains neighbor information for
them. Figure 20 shows the neighbor relationships for these LLDP agents. LLDP has two bridge modes:
customer bridge (CB) and service bridge (SB).
53
Figure 20 LLDP neighbor relationships
Field Description
MAC address to which the LLDP frame is advertised. LLDP specifies
different multicast MAC addresses as destination MAC addresses for LLDP
frames destined for agents of different types. This helps distinguish
between LLDP frames sent and received by different agent types on the
same interface. The destination MAC address is fixed to one of the
following multicast MAC addresses:
Destination MAC address
• 0x0180-C200-000E for LLDP frames destined for nearest bridge
agents.
• 0x0180-C200-0000 for LLDP frames destined for nearest customer
bridge agents.
• 0x0180-C200-0003 for LLDP frames destined for nearest non-TPMR
bridge agents.
Type Ethernet type for the upper-layer protocol. This field is 0x88CC for LLDP.
Data LLDPDU.
54
Field Description
Frame check sequence, a 32-bit CRC value used to determine the validity
FCS
of the received Ethernet frame.
Field Description
MAC address to which the LLDP frame is advertised. It is the same as that
Destination MAC address
for Ethernet II-encapsulated LLDP frames.
Data LLDPDU.
Frame check sequence, a 32-bit CRC value used to determine the validity
FCS
of the received Ethernet frame.
LLDPDUs
LLDP uses LLDPDUs to exchange information. An LLDPDU comprises multiple TLVs. Each TLV carries a type
of device information, as shown in Figure 23.
Figure 23 LLDPDU encapsulation format
An LLDPDU can carry up to 32 types of TLVs. Mandatory TLVs include Chassis ID TLV, Port ID TLV, Time
to Live TLV, and End of LLDPDU TLV. Other TLVs are optional.
TLVs
A TLV is an information element that contains the type, length, and value fields.
LLDPDU TLVs include the following categories:
• Basic management TLVs
• Organizationally (IEEE 802.1 and IEEE 802.3) specific TLVs
55
• LLDP-MED (media endpoint discovery) TLVs
Basic management TLVs are essential to device management.
Organizationally specific TLVs and LLDP-MED TLVs are used for enhanced device management. They are
defined by standardization or other organizations and are optional for LLDPDUs.
• Basic management TLVs
Table 7 lists the basic management TLV types. Some of them are mandatory for LLDPDUs.
Table 7 Basic management TLVs
End of LLDPDU Marks the end of the TLV sequence in the LLDPDU.
Type Description
Port VLAN ID (PVID) Specifies the port VLAN identifier.
Port And Protocol VLAN ID Indicates whether the device supports protocol VLANs and, if so, what
(PPVID) VLAN IDs these protocols will be associated with.
VLAN Name Specifies the textual name of any VLAN to which the port belongs.
EVB module Edge Virtual Bridging module, including EVB TLV and CDCP TLV.
Indicates whether the port supports link aggregation, and if yes, whether
Link Aggregation
link aggregation is enabled.
56
Type Description
ETS Configuration Enhanced Transmission Selection configuration.
NOTE:
• H3C devices support only receiving protocol identity TLVs and VID usage digest TLVs.
• Layer 3 Ethernet ports support only link aggregation TLVs.
Type Description
Contains the bit-rate and duplex capabilities of the port, support
MAC/PHY Configuration/Status for autonegotiation, enabling status of autonegotiation, and the
current rate and duplex mode.
NOTE:
The Power Stateful Control TLV is defined in IEEE P802.3at D1.0 and is not supported in later
versions. H3C devices send this type of TLVs only after receiving them.
• LLDP-MED TLVs
LLDP-MED TLVs provide multiple advanced applications for voice over IP (VoIP), such as basic
configuration, network policy configuration, and address and directory management. LLDP-MED
57
TLVs provide a cost-effective and easy-to-use solution for deploying voice devices in Ethernet.
LLDP-MED TLVs are shown in Table 10.
Table 10 LLDP-MED TLVs
Type Description
Allows a network device to advertise the LLDP-MED TLVs that it
LLDP-MED Capabilities
supports.
Allows a terminal device to advertise its asset ID. The typical case
Asset ID is that the user specifies the asset ID for the endpoint to facilitate
directory management and asset tracking.
NOTE:
• If the MAC/PHY configuration/status TLV is not advertisable, none of the LLDP-MED TLVs will be
advertised even if they are advertisable.
• If the LLDP-MED capabilities TLV is not advertisable, the other LLDP-MED TLVs will not be advertised
even if they are advertisable.
Management address
The network management system uses the management address of a device to identify and manage the
device for topology maintenance and network management. The management address is encapsulated
in the management address TLV.
Working mechanism
LLDP operating modes
An LLDP agent can operate in one of the following modes:
• TxRx mode—An LLDP agent in this mode can send and receive LLDP frames.
• Tx mode—An LLDP agent in this mode can only send LLDP frames.
• Rx mode—An LLDP agent in this mode can only receive LLDP frames.
58
• Disable mode—An LLDP agent in this mode cannot send or receive LLDP frames.
Each time the LLDP operating mode of an LLDP agent changes, its LLDP protocol state machine
reinitializes. A configurable reinitialization delay prevents frequent initializations caused by frequent
changes to the operating mode. If you configure the reinitialization delay, an LLDP agent must wait the
specified amount of time to initialize LLDP after the LLDP operating mode changes.
59
LLDP configuration task list
Tasks at a glance
(Optional.) Setting the source MAC address of LLDP frames to the MAC address of the subinterface associated
with the specified VLAN
(Optional.) Enabling the system to issue the generated ARP entry to a Layer 3 Ethernet subinterface after a port
receives an LLDP frame
60
Setting the LLDP bridge mode
The following LLDP bridge modes are available:
• Customer bridge mode—LLDP supports nearest bridge agents, nearest non-TPMR bridge agents,
and nearest customer bridge agents. LLDP processes the LLDP frames with destination MAC
addresses for these agents and transparently transmits the LLDP frames with other destination MAC
addresses in the VLAN.
• Service bridge mode—LLDP supports nearest bridge agents and nearest non-TPMR bridge agents.
LLDP processes the LLDP frames with destination MAC addresses for these agents and transparently
transmits the LLDP frames with other destination MAC addresses in the VLAN.
To set the LLDP bridge mode:
By default:
• The nearest bridge
agent operates in txrx
mode.
• The nearest customer
bridge agent and
• In Layer 3 Ethernet interface view: nearest non-TPMR
lldp [ agent { nearest-customer | bridge agent operate
nearest-nontpmr } ] admin-status in disable mode.
3. Set the LLDP operating { disable | rx | tx | txrx }
In Ethernet interface view, if
mode. • In Layer 3 aggregate interface view: you do not specify an agent
lldp agent { nearest-customer | type, the command sets the
nearest-nontpmr } admin-status operating mode for nearest
{ disable | rx | tx | txrx } bridge agents.
In aggregate interface
view, you can set the
operating mode only for
nearest customer bridge
agents and nearest
non-TPMR bridge agents.
61
Setting the LLDP reinitialization delay
When the LLDP operating mode changes on a port, the port initializes the protocol state machines after
an LLDP reinitialization delay. By adjusting the delay, you can avoid frequent initializations caused by
frequent changes to the LLDP operating mode on a port.
To set the LLDP reinitialization delay for ports:
62
Step Command Remarks
By default:
• lldp tlv-enable { basic-tlv { all |
• Nearest bridge
port-description | system-capability |
agents can advertise
system-description | system-name |
all types of LLDP TLVs
management-address-tlv [ ip-address |
(only link
interface loopback interface-number ] }
aggregation TLV is
| dot1-tlv { all | link-aggregation } |
supported in 802.1
dot3-tlv { all | mac-physic |
organizationally
max-frame-size | power } | med-tlv { all
specific TLVs) except
| capability | inventory |
3. Configure the advertisable network policy TLVs.
power-over-ethernet | location-id
TLVs (in Layer 3 Ethernet • Nearest non-TPMR
{ civic-address device-type country-code
interface view). bridge agents
{ ca-type ca-value }&<1-10> |
elin-address tel-number } } } advertise no TLVs.
• lldp agent { nearest-nontpmr | • Nearest customer
nearest-customer } tlv-enable { basic-tlv bridge agents can
{ all | port-description | advertise basic TLVs
system-capability | system-description and IEEE 802.1
| system-name | organizationally
management-address-tlv [ ip-address ] } specific TLVs (only
| dot1-tlv { all | link-aggregation } } link aggregation TLV
is supported).
By default:
• Nearest non-TPMR
bridge agents
advertise no TLVs.
lldp agent { nearest-nontpmr |
4. Configure the advertisable • Nearest customer
nearest-customer } tlv-enable basic-tlv { all |
TLVs (in Layer 3 aggregate bridge agents can
management-address-tlv [ ip-address ] |
interface view). advertise only basic
port-description | system-capability |
TLVs.
system-description | system-name }
Nearest bridge agents
are not supported on
Layer 3 aggregate
interfaces.
63
Step Command Remarks
• In Layer 3 Ethernet interface
view:
lldp [ agent
By default:
{ nearest-customer |
nearest-nontpmr } ] • Nearest bridge agents and
tlv-enable basic-tlv nearest customer bridge
3. Allow LLDP to advertise the
management-address-tlv agents can advertise the
management address in LLDP
[ ip-address ] management address in LLDP
frames and configure the
frames.
advertised management • In Layer 3 aggregate
address. interface view: • Nearest non-TPMR bridge
lldp agent { nearest-customer agents cannot advertise the
| nearest-nontpmr } management address in LLDP
tlv-enable basic-tlv frames.
management-address-tlv
[ ip-address ]
• In Layer 3 Ethernet interface
view:
lldp [ agent
{ nearest-customer |
nearest-nontpmr } ]
4. Set the encoding format of the management-address-forma By default, the encoding format of
management address to t string the management address is
string. • In Layer 3 aggregate numeric.
interface view:
lldp agent { nearest-customer
| nearest-nontpmr }
management-address-forma
t string
64
Step Command Remarks
5. Set the number of LLDP frames
sent each time fast LLDP frame lldp fast-count count The default setting is 4.
transmission is triggered.
6. Set the fast LLDP frame
lldp timer fast-interval interval The default setting is 1 second.
transmission interval.
65
Step Command Remarks
• In Layer 3 Ethernet interface view:
lldp [ agent { nearest-customer |
nearest-nontpmr } ] notification
remote-change enable By default, LLDP trapping is
3. Enable LLDP trapping.
• In Layer 3 aggregate interface view: disabled.
lldp agent { nearest-customer |
nearest-nontpmr } notification
remote-change enable
4. Enable LLDP-MED trapping
lldp notification med-topology-change By default, LLDP-MED
(in Layer 3 Ethernet
enable trapping is disabled.
interface view).
5. Return to system view. quit N/A
6. (Optional.) Set the LLDP The default setting is 30
lldp timer notification-interval interval
trap transmission interval. seconds.
66
Enabling the system to issue the generated ARP
entry to a Layer 3 Ethernet subinterface after a port
receives an LLDP frame
With this feature enabled, when an interface receives an LLDP frame carrying a management address
TLV in IPv4 format, the system performs the following operations:
• Generates an ARP entry that contains the management address and the source MAC address of the
frame.
• Issues the ARP entry to the Layer 3 subinterface associated with the specified VLAN ID in Dot1q
termination.
To enable the system to issue the generated ARP entry to a Layer 3 Ethernet subinterface after a port
receives an LLDP frame:
Task Command
Display local LLDP display lldp local-information [ global | interface interface-type
information. interface-number ]
Display LLDP status of a display lldp status [ interface interface-type interface-number ] [ agent
port. { nearest-bridge | nearest-customer | nearest-nontpmr } ]
67
Task Command
Display types of
display lldp tlv-config [ interface interface-type interface-number ] [ agent
advertisable optional LLDP
{ nearest-bridge | nearest-customer | nearest-nontpmr } ]
TLVs.
MED
GE1/0/1
NMS
GE1/0/2 GE1/0/1
Switch A Switch B
Configuration procedure
1. Configure Switch A:
# Enable LLDP globally.
<SwitchA> system-view
[SwitchA] lldp global enable
# Enable LLDP on GigabitEthernet 1/0/1. By default, LLDP is enabled on ports.
[SwitchA] interface gigabitethernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] lldp enable
# Set the LLDP operating mode to Rx on GigabitEthernet 1/0/1.
[SwitchA-GigabitEthernet1/0/1] lldp admin-status rx
[SwitchA-GigabitEthernet1/0/1] quit
# Enable LLDP on GigabitEthernet 1/0/2. By default, LLDP is enabled on ports.
[SwitchA] interface gigabitethernet1/2
[SwitchA-GigabitEthernet1/0/2] lldp enable
# Set the LLDP operating mode to Rx on GigabitEthernet 1/0/2.
[SwitchA-GigabitEthernet1/0/2] lldp admin-status rx
[SwitchA-GigabitEthernet1/0/2] quit
2. Configure Switch B:
# Enable LLDP globally.
68
<SwitchB> system-view
[SwitchB] lldp global enable
# Enable LLDP on GigabitEthernet 1/0/1. By default, LLDP is enabled on ports.
[SwitchB] interface gigabitethernet 1/0/1
[SwitchB-GigabitEthernet1/0/1] lldp enable
# Set the LLDP operating mode to Tx on GigabitEthernet 1/0/1.
[SwitchB-GigabitEthernet1/0/1] lldp admin-status tx
[SwitchB-GigabitEthernet1/0/1] quit
69
Polling interval : 0s
Number of LLDP neighbors : 0
Number of MED neighbors : 0
Number of CDP neighbors : 0
Number of sent optional TLV : 16
Number of received unknown TLV : 0
70
The current number of CDP neighbors: 0
LLDP neighbor information last changed time: 0 days, 0 hours, 5 minutes, 20 seconds
Transmit interval : 30s
Fast transmit interval : 1s
Transmit credit max : 5
Hold multiplier : 4
Reinit delay : 2s
Trap interval : 30s
Fast start times : 4
71
LLDP agent nearest-nontpmr:
Port status of LLDP : Enable
Admin status : Disable
Trap flag : No
MED trap flag : No
Polling interval : 0s
Number of LLDP neighbors : 0
Number of MED neighbors : 0
Number of CDP neighbors : 0
Number of sent optional TLV : 1
Number of received unknown TLV : 0
72
Index
73
VLAN, 24, 30 Ethernet link aggregation, 17
VLAN basic settings, 25 LLDP, 67
VLAN group, 29 VLAN, 29
VLAN termination, 32, 34, 40 Dot1q
VLAN termination (default), 38 VLAN termination default, 38
VLAN termination (Dot1q VLAN termination Dot1q ambiguous, 35, 35, 42
ambiguous), 35, 35, 42 VLAN termination Dot1q PPPoE server support, 43
VLAN termination (Dot1q PPPoE server VLAN termination Dot1q unambiguous, 35, 35, 40
support), 43 VLAN termination QinQ ambiguous, 36, 36, 46
VLAN termination (Dot1q VLAN termination QinQ DHCP relay support, 49
unambiguous), 35, 35, 40
VLAN termination QinQ PPPoE server support, 48
VLAN termination (QinQ
VLAN termination QinQ unambiguous, 36, 37, 44
ambiguous), 36, 36, 46
VLAN termination type, 32
VLAN termination (QinQ DHCP relay
VLAN termination untagged, 38
support), 49
dynamic
VLAN termination (QinQ PPPoE server
support), 48 Ethernet link aggregation dynamic mode, 5
VLAN termination (QinQ Ethernet link aggregation edge aggregate
unambiguous), 36, 37, 44 interface, 8
VLAN termination (untagged), 38 Ethernet link aggregation group, 10
VLAN termination packet TPID, 39 Ethernet link aggregation mode, 3
customer Layer 3 Ethernet link aggregation, 19
LLDP customer bridge mode, 61 Layer 3 Ethernet link aggregation edge aggregate
interface, 22
CVLAN
VLAN termination application scenario, 33 E
VLAN termination configuration, 32, 34, 40 enabling
D Ethernet link aggregation traffic redirection, 16
LLDP, 60
default
LLDP ARP entry generation, 67
Ethernet link aggregate interface default
settings, 15 LLDP polling, 62
VLAN default termination, 32, 38 VLAN termination subinterface broadcast
transmission, 38
device
VLAN termination subinterface multicast
LLDP basic configuration, 60, 68
transmission, 38
LLDP configuration, 53, 60
encapsulating
LLDP parameters, 64
LLDP frame encapsulation (Ethernet II), 54
VLAN termination Dot1q PPPoE server
LLDP frame encapsulation (SNAP), 54
support, 43
LLDP frame encapsulation format, 65
VLAN termination QinQ DHCP relay
support, 49 VLAN frame encapsulation, 24
VLAN termination QinQ PPPoE server Ethernet
support, 48 ARP entry generation, 67
DHCP link aggregation. See Ethernet link aggregation
VLAN termination QinQ DHCP relay LLDP frame encapsulation, 54
support, 49 LLDP trapping, 65
VLAN termination QinQ unambiguous, 36 LLDP-MED trapping, 65
displaying port-based VLAN assignment (access port), 27
74
port-based VLAN assignment (hybrid port), 28 traffic redirection, 16
port-based VLAN assignment (trunk port), 28 traffic redirection restrictions, 16
port-based VLAN configuration, 26 F
VLAN basic configuration, 25
format
VLAN configuration, 24, 30
LLDP frame encapsulation (Ethernet II), 54
VLAN frame encapsulation, 24
LLDP frame encapsulation (SNAP), 54
Ethernet link aggregation
LLDP frame encapsulation format, 65
aggregate group Selected ports min/max, 13
LLDP management address encoding format, 63
aggregate interface, 1
frame
aggregate interface (description), 11
LLDP ARP entry generation, 67
aggregate interface (MAC address), 12
LLDP frame encapsulation format, 65
aggregate interface configuration, 11
LLDP MAC address setting, 66
aggregate interface default settings, 15
port-based VLAN frame handling, 27
aggregate interface shutdown, 14
VLAN frame encapsulation, 24
aggregation group, 1
aggregation group restrictions, 9 G
basic concepts, 1 group
configuration, 1, 9, 17 Ethernet link aggregate group Selected ports
configuration types, 2 min/max, 13
display, 17 Ethernet link aggregation, 9
dynamic mode, 5 Ethernet link aggregation group, 1
edge aggregate interface, 8, 14 Ethernet link aggregation group (dynamic), 10
group configuration, 9 Ethernet link aggregation group (static), 10
group configuration (dynamic), 10 Ethernet link aggregation LACP, 5
group configuration (static), 10 Ethernet link aggregation load sharing mode, 8, 15
group load sharing mode, 15 Ethernet link aggregation member port state, 2
how dynamic link aggregation works, 6 VLAN group configuration, 29
interface configuration (expected H
bandwidth), 14
hybrid port
LACP, 5
port-based VLAN assignment (hybrid port), 28
Layer 3 aggregate interface configuration
(MTU), 12 I
Layer 3 aggregation (dynamic), 19 interface
Layer 3 aggregation (static), 17 Ethernet aggregate interface, 11
Layer 3 aggregation load sharing, 20 Ethernet aggregate interface (description), 11
Layer 3 edge aggregate interface, 22 Ethernet aggregate interface (MAC address), 12
load sharing mode, 8 Ethernet link aggregate interface default
maintain, 17 settings, 15
member port, 1 Ethernet link aggregate interface shutdown, 14
member port state, 2, 4, 7 Ethernet link aggregation edge aggregate
modes, 3 interface, 8, 14
operational key, 2 Layer 3 aggregate interface configuration
reference port, 6 (MTU), 12
reference port choice, 3 interval
static mode, 3 Ethernet link aggregation LACP long timeout, 6
75
Ethernet link aggregation LACP short timeout, 6 port-based VLAN assignment (trunk port), 28
IPv4 port-based VLAN configuration, 26
VLAN termination QinQ unambiguous, 36 VLAN basic configuration, 25
K VLAN configuration, 24, 30
VLAN display, 29
key
VLAN group configuration, 29
Ethernet link aggregation operational key, 2
VLAN maintain, 29
L VLAN protocols and standards, 25
LACP VLAN termination configuration, 32, 34, 40
Ethernet link aggregation, 5 VLAN termination default, 38
LAN VLAN termination Dot1q, 35
Virtual Local Area Network. Use VLAN VLAN termination Dot1q ambiguous, 42
LAN switching VLAN termination Dot1q PPPoE server support, 43
Ethernet aggregate interface (description), 11 VLAN termination Dot1q unambiguous, 40
Ethernet link aggregate group Selected ports VLAN termination packet TPID, 39
min/max, 13 VLAN termination QinQ, 36
Ethernet link aggregate interface (expected VLAN termination QinQ ambiguous, 46
bandwidth), 14 VLAN termination QinQ DHCP relay support, 49
Ethernet link aggregate interface default VLAN termination QinQ PPPoE server support, 48
settings, 15
VLAN termination QinQ unambiguous, 44
Ethernet link aggregate interface shutdown, 14
VLAN termination untagged, 38
Ethernet link aggregation basic concepts, 1
Layer 2
Ethernet link aggregation configuration, 1, 9
LLDP basic configuration, 68
Ethernet link aggregation display, 17
LLDP trapping, 65
Ethernet link aggregation dynamic mode, 5
LLDP-MED trapping, 65
Ethernet link aggregation edge aggregate
VLAN basic configuration, 25
interface, 8, 14
VLAN configuration, 24, 30
Ethernet link aggregation group, 9
Layer 3
Ethernet link aggregation group load sharing
aggregate interface configuration (MTU), 12
mode, 15
Ethernet aggregate interface, 11
Ethernet link aggregation group restrictions, 9
Ethernet aggregate interface (description), 11
Ethernet link aggregation LACP, 5
Ethernet aggregate interface (MAC address), 12
Ethernet link aggregation load sharing mode, 8
Ethernet link aggregate group Selected ports
Ethernet link aggregation maintain, 17
min/max, 13
Ethernet link aggregation static mode, 3
Ethernet link aggregate interface (expected
Ethernet link aggregation traffic redirection, 16
bandwidth), 14
Ethernet link aggregation traffic redirection
Ethernet link aggregate interface default
restrictions, 16
settings, 15
LLDP basic concepts, 53
Ethernet link aggregate interface shutdown, 14
LLDP basic configuration, 60, 68
Ethernet link aggregation (dynamic), 19
LLDP configuration, 53, 60
Ethernet link aggregation (static), 17
LLDP display, 67
Ethernet link aggregation configuration, 1, 9, 17
LLDP protocols and standards, 59
Ethernet link aggregation edge aggregate
port-based VLAN assignment (access port), 27 interface, 8, 14, 22
port-based VLAN assignment (hybrid port), 28 Ethernet link aggregation group, 9
76
Ethernet link aggregation group (dynamic), 10 operating mode set, 61
Ethernet link aggregation group (static), 10 parameter set, 64
Ethernet link aggregation group load sharing polling enable, 62
mode, 15 protocols and standards, 59
Ethernet link aggregation load sharing, 20 reinitialization delay, 62
Ethernet link aggregation traffic redirection, 16 trapping configuration, 65
LLDP ARP entry generation, 67 LLDPDU
LLDP basic configuration, 68 LLDP basic configuration, 60, 68
LLDP trapping, 65 LLDP configuration, 53, 60
LLDP-MED trapping, 65 LLDP parameters, 64
port-based VLAN assignment (access port), 27 management address configuration, 63
port-based VLAN assignment (hybrid port), 28 management address encoding format, 63
port-based VLAN assignment (trunk port), 28 management address TLV, 58
port-based VLAN configuration, 26 TLV basic management types, 55
link TLV LLDP-MED types, 55
aggregation. See Ethernet link aggregation TLV organization-specific types, 55
link layer discovery protocol. Use LLDP load sharing
LLDP Ethernet link aggregation group load sharing, 8
advertisable TLV configuration, 62 Ethernet link aggregation load sharing mode, 15
agent, 53 Ethernet link aggregation packet type-based load
ARP entry generation, 67 sharing, 8
basic concepts, 53 Ethernet link aggregation per-flow load sharing, 8
basic configuration, 60, 68 Ethernet link aggregation per-packet load
bridge mode setting, 61 sharing, 8
configuration, 53, 60 Layer 3 Ethernet link aggregation configuration, 20
display, 67 M
enable, 60
MAC addressing
frame encapsulation (Ethernet II), 54
Ethernet aggregate interface, 12
frame encapsulation (SNAP), 54
LLDP MAC address setting, 66
frame encapsulation format, 65
VLAN frame encapsulation, 24
frame format, 54
MAC relay (LLDP agent), 53
frame reception, 59
maintaining
frame transmission, 59
Ethernet link aggregation, 17
how it works, 58
VLAN, 29
LLDPDU management address TLV, 58
management address
LLDPDU TLV types, 55
LLDP encoding format, 63
LLDPDU TLVs, 55
MED (LLDP-MED trapping), 65
LLDP-MED trapping configuration, 65
MIB
MAC address setting, 66
LLDP basic configuration, 60, 68
management address configuration, 63
LLDP configuration, 53, 60
management address encoding format, 63
mode
operating mode (disable), 58
Ethernet link aggregation dynamic, 3, 5
operating mode (Rx), 58
Ethernet link aggregation LACP operation active, 5
operating mode (Tx), 58
Ethernet link aggregation LACP operation
operating mode (TxRx), 58 passive, 5
77
Ethernet link aggregation load sharing, 8 VLAN termination Dot1q, 35
Ethernet link aggregation static, 3, 3 VLAN termination Dot1q ambiguous, 35, 42
LLDP customer bridge mode, 61 VLAN termination Dot1q PPPoE server support, 43
LLDP disable, 58, 61 VLAN termination Dot1q unambiguous, 35, 40
LLDP Rx, 58, 61 VLAN termination packet TPID, 39
LLDP service bridge mode, 61 VLAN termination QinQ, 36
LLDP Tx, 58, 61 VLAN termination QinQ ambiguous, 36, 46
LLDP TxRx, 58, 61 VLAN termination QinQ DHCP relay support, 49
MPLS VLAN termination QinQ PPPoE server support, 48
VLAN termination QinQ unambiguous, 36 VLAN termination QinQ unambiguous, 37, 44
MTU VLAN termination subinterface broadcast
Layer 3 Ethernet aggregate interface, 12 transmission, 38
multicast VLAN termination subinterface multicast
VLAN termination transmission, 38 transmission, 38
VLAN termination types, 32
N
VLAN termination untagged, 38
network network management
Ethernet link aggregation configuration types, 2 Ethernet link aggregation configuration, 1, 9, 17
Ethernet link aggregation dynamic mode, 5 LLDP basic concepts, 53
Ethernet link aggregation edge aggregate LLDP configuration, 53, 60
interface, 8
VLAN configuration, 24, 30
Ethernet link aggregation LACP, 5
VLAN termination configuration, 32, 34, 40
Ethernet link aggregation member port
state, 4, 7 O
Ethernet link aggregation modes, 3 operational key (Ethernet link aggregation), 2
Ethernet link aggregation operational key, 2 organization-specific LLDPDU TLV types, 55
Ethernet link aggregation reference port, 6 P
Ethernet link aggregation reference port
packet
choice, 3
Ethernet link aggregation packet type-based load
Ethernet link aggregation static mode, 3
sharing, 8
Layer 3 Ethernet link aggregation (dynamic), 19
VLAN termination configuration, 32, 34, 40
Layer 3 Ethernet link aggregation (static), 17
VLAN termination Dot1q, 35
Layer 3 Ethernet link aggregation edge
VLAN termination QinQ, 36
aggregate interface, 22
per-flow load sharing, 8
Layer 3 Ethernet link aggregation load
sharing, 20 per-packet load sharing, 8
LLDP basic configuration, 60, 68 polling
LLDP MAC address setting, 66 LLDP enable, 62
port-based VLAN assignment (access port), 27 port
port-based VLAN assignment (hybrid port), 28 aggregate interface (MAC address), 12
port-based VLAN assignment (trunk port), 28 Ethernet aggregate interface, 11
port-based VLAN configuration, 26 Ethernet aggregate interface (description), 11
VLAN basic configuration, 25 Ethernet link aggregate group Selected ports
min/max, 13
VLAN group configuration, 29
Ethernet link aggregate interface (expected
VLAN termination application scenario, 33
bandwidth), 14
VLAN termination default, 38
78
Ethernet link aggregate interface default LLDP TxRx operating mode, 58
settings, 15 VLAN port link type, 26
Ethernet link aggregate interface shutdown, 14 port-based VLAN
Ethernet link aggregation access port assignment (interface view), 27
configuration, 1, 9, 17 access port assignment (VLAN view), 27
Ethernet link aggregation configuration types, 2 assignment (access port), 27
Ethernet link aggregation dynamic mode, 5 assignment (hybrid port), 28
Ethernet link aggregation edge aggregate assignment (trunk port), 28
interface, 8, 14
configuration, 26
Ethernet link aggregation group, 9
port frame handling, 27
Ethernet link aggregation group (dynamic), 10
port link type, 26
Ethernet link aggregation group (static), 10
PVID, 26
Ethernet link aggregation LACP, 5
PPPoE
Ethernet link aggregation LACP port priority, 5
VLAN termination Dot1q PPPoE server support, 43
Ethernet link aggregation load sharing mode, 8
VLAN termination QinQ PPPoE server support, 48
Ethernet link aggregation member port, 1
VLAN termination QinQ unambiguous, 36
Ethernet link aggregation member port
priority
state, 2, 4, 7
Ethernet link aggregation LACP, 5
Ethernet link aggregation modes, 3
Ethernet link aggregation LACP port priority, 5
Ethernet link aggregation operational key, 2
Ethernet link aggregation LACP system priority, 5
Ethernet link aggregation reference port, 6
procedure
Ethernet link aggregation reference port
assigning port-based VLAN access port, 27
choice, 3
assigning port-based VLAN access port (interface
Ethernet link aggregation static mode, 3
view), 27
Ethernet link aggregation traffic redirection, 16
assigning port-based VLAN access port (VLAN
Layer 3 aggregate interface configuration
view), 27
(MTU), 12
assigning port-based VLAN hybrid port, 28
Layer 3 Ethernet link aggregation (dynamic), 19
assigning port-based VLAN trunk port, 28
Layer 3 Ethernet link aggregation (static), 17
configuring Ethernet aggregate interface, 11
Layer 3 Ethernet link aggregation edge
configuring Ethernet link aggregation, 9
aggregate interface, 22
configuring Ethernet link aggregation edge
Layer 3 Ethernet link aggregation load
aggregate interface, 14
sharing, 20
configuring Ethernet link aggregation group, 9
LLDP ARP entry generation, 67
configuring Ethernet link aggregation group
LLDP basic configuration, 60, 68
(dynamic), 10
LLDP configuration, 53, 60
configuring Ethernet link aggregation group
LLDP disable operating mode, 58
(static), 10
LLDP enable, 60
configuring Layer 3 Ethernet link aggregation
LLDP frame encapsulation format, 65 (dynamic), 19
LLDP frame reception, 59 configuring Layer 3 Ethernet link aggregation
LLDP frame transmission, 59 (static), 17
LLDP operating mode, 61 configuring Layer 3 Ethernet link aggregation edge
LLDP polling, 62 aggregate interface, 22
LLDP reinitialization delay, 62 configuring Layer 3 Ethernet link aggregation load
LLDP Rx operating mode, 58 sharing, 20
LLDP Tx operating mode, 58 configuring LLDP, 60
79
configuring LLDP advertisable TLVs, 62 setting Ethernet aggregate interface (MAC
configuring LLDP basics, 60, 68 address), 12
configuring LLDP management address, 63 setting Ethernet link aggregate group Selected ports
configuring LLDP management address min/max, 13
encoding format, 63 setting Ethernet link aggregate interface (expected
configuring LLDP trapping, 65 bandwidth), 14
configuring LLDP-MED trapping, 65 setting Ethernet link aggregation group load
sharing mode, 15
configuring port-based VLAN, 26
setting Ethernet link aggregation load sharing
configuring VLAN basic settings, 25
mode (global), 15
configuring VLAN group, 29
setting Ethernet link aggregation load sharing
configuring VLAN termination, 34
mode (group-specific), 16
configuring VLAN termination (default), 38
setting Layer 3 aggregate interface (MTU), 12
configuring VLAN termination (Dot1q
setting LLDP bridge mode, 61
ambiguous), 35, 35, 42
setting LLDP frame encapsulation format, 65
configuring VLAN termination (Dot1q PPPoE
setting LLDP MAC address, 66
server support), 43
setting LLDP operating mode, 61
configuring VLAN termination (Dot1q
unambiguous), 35, 35, 40 setting LLDP parameters, 64
configuring VLAN termination (QinQ setting LLDP reinitialization delay, 62
ambiguous), 36, 36, 46 shutting down Ethernet link aggregate interface, 14
configuring VLAN termination (QinQ DHCP protocols and standards
relay support), 49 Ethernet link aggregation protocol configuration, 2
configuring VLAN termination (QinQ PPPoE LLDP, 59
server support), 48 VLAN, 25
configuring VLAN termination (QinQ PVID (port-based VLAN), 26
unambiguous), 36, 37, 44
Q
configuring VLAN termination (untagged), 38
configuring VLAN termination packet TPID, 39 QinQ
displaying Ethernet link aggregation, 17 VLAN termination QinQ ambiguous, 36, 36, 46
displaying LLDP, 67 VLAN termination QinQ DHCP relay support, 49
displaying VLAN, 29 VLAN termination QinQ PPPoE server support, 48
enabling Ethernet link aggregation traffic VLAN termination QinQ unambiguous, 36, 37, 44
redirection, 16 VLAN termination type, 32
enabling LLDP, 60 R
enabling LLDP ARP entry generation, 67
receiving
enabling LLDP polling, 62
LLDP frames, 59
enabling VLAN termination subinterface
reference port (Ethernet link aggregation), 3, 6
broadcast transmission, 38
reinitialization delay (LLDP), 62
enabling VLAN termination subinterface
multicast transmission, 38 restoring
maintaining Ethernet link aggregation, 17 Ethernet link aggregate interface default
settings, 15
maintaining VLAN, 29
restrictions
restoring Ethernet link aggregate interface
default settings, 15 Ethernet link aggregation group, 9
setting Ethernet aggregate interface Ethernet link aggregation traffic redirection, 16
(description), 11 S
80
selecting SVLAN
Ethernet link aggregation Selected ports VLAN termination application scenario, 33
min/max, 13 VLAN termination configuration, 32, 34, 40
Ethernet link aggregation selected state, 2
T
Ethernet link aggregation unselected state, 2
tag
service
VLAN termination application scenario, 33
LLDP service bridge mode, 61
VLAN termination configuration, 32, 34, 40
setting
VLAN termination Dot1q, 35
Ethernet aggregate interface (description), 11
VLAN termination packet TPID, 39
Ethernet aggregate interface (MAC
address), 12 VLAN termination QinQ, 36
Ethernet link aggregate group Selected ports VLAN termination types, 32
min/max, 13 time
Ethernet link aggregate interface (expected Ethernet link aggregation LACP timeout interval, 5
bandwidth), 14 timeout
Ethernet link aggregation group load sharing Ethernet link aggregation LACP long timeout
mode, 15 interval, 6
Ethernet link aggregation load sharing mode Ethernet link aggregation LACP short timeout
(global), 15 interval, 6
Ethernet link aggregation load sharing mode timer
(group-specific), 16 LLDP reinitialization delay, 62
Ethernet link aggregation member port TLV
state, 4, 7 LLDP advertisable TLV configuration, 62
Layer 3 aggregate interface (MTU), 12 LLDP management address configuration, 63
LLDP bridge mode, 61 LLDP management address encoding format, 63
LLDP frame encapsulation format, 65 LLDP parameters, 64
LLDP MAC address, 66 LLDPDU basic management types, 55
LLDP operating mode, 61 LLDPDU LLDP-MED types, 55
LLDP parameters, 64 LLDPDU management address TLV, 58
LLDP reinitialization delay, 62 LLDPDU organization-specific types, 55
shutting down TPID for VLAN-tagged packets, 39
Ethernet link aggregate interface, 14 traffic
SNAP Ethernet link aggregation traffic redirection, 16
LLDP frame encapsulation, 54 transmitting
LLDP frame encapsulation format, 65 LLDP frames, 59
state VLAN termination broadcast, 38
Ethernet link aggregation member port VLAN termination multicast, 38
state, 2, 4, 7
trapping
static
LLDP configuration, 65
Ethernet link aggregation group, 10
LLDP-MED configuration, 65
Ethernet link aggregation mode, 3
trunk port
Ethernet link aggregation static mode, 3
port-based VLAN assignment (trunk port), 28
Layer 3 Ethernet link aggregation, 17
type
subinterface
VLAN termination default, 32
LLDP ARP entry generation, 67
VLAN termination Dot1q, 32
LLDP MAC address setting, 66
81
VLAN termination QinQ, 32 VLAN termination LAN-WAN communication, 33
VLAN termination untagged, 32
U
untagged VLAN termination, 32, 38
V
virtual
Local Area Network. Use VLAN
Virtual Local Area Network. Use VLAN
VLAN
basic configuration, 25
configuration, 24, 30
display, 29
frame encapsulation, 24
group configuration, 29
LLDP MAC address setting, 66
maintain, 29
port link type, 26
port-based configuration, 26
port-based VLAN assignment (access port), 27
port-based VLAN assignment (hybrid port), 28
port-based VLAN assignment (trunk port), 28
port-based VLAN frame handling, 27
protocols and standards, 25
PVID, 26
VLAN termination
application scenario, 33
configuration, 32, 34, 40
default, 38
Dot1q ambiguous, 35, 35, 42
Dot1q PPPoE server support, 43
Dot1q unambiguous, 35, 35, 40
packet TPID, 39
QinQ ambiguous, 36, 36, 46
QinQ DHCP relay support, 49
QinQ PPPoE server support, 48
QinQ unambiguous, 36, 37, 44
subinterface broadcast transmission, 38
subinterface multicast transmission, 38
types, 32
untagged, 38
W
WAN access
82