03-Layer 2—LAN Switching Command Reference

HomeSupportResource CenterReference GuidesCommand ReferencesH3C S5130S-EI[HI][SI]&S5120V2-SI&S3100V3-EI&E100C&E500C[D] Command References-R63xx-6W10303-Layer 2—LAN Switching Command Reference
14-L2PT commands
Title Size Download
14-L2PT commands 66.69 KB

L2PT commands

display l2protocol statistics

Use display l2protocol statistics to display Layer 2 Protocol Tunneling (L2PT) statistics.

Syntax

display l2protocol statistics [ interface interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

interface interface-type interface-number: Specifies a Layer 2 Ethernet or aggregate interface by its type and number. If you do not specify this option, the command displays L2PT statistics for all Layer 2 Ethernet and aggregate interfaces.

Examples

# Display L2PT statistics for all Layer 2 Ethernet and aggregate interfaces.

<Sysname> display l2protocol statistics

L2PT statistics information on interface Bridge-Aggregation1:

Protocol  Encapsulated      Decapsulated      Forwarded         Dropped

CDP       0                 0                 0                 0

DLDP      0                 3                 0                 0

EOAM      0                 2                 0                 0

GVRP      8                 4                 9                 2

LACP      0                 0                 0                 0

LLDP      0                 3                 0                 0

MVRP      0                 0                 0                 0

PAGP      0                 1                 0                 0

PVST      0                 0                 0                 0

STP       5                 5                 5                 0

Tunnel    N/A               N/A               100               10

VTP       0                 6                 0                 0

UDLD      0                 0                 0                 0

DTP       0                 0                 0                 0

CFD       0                 0                 0                 0

 

L2PT statistics information on interface GigabitEthernet1/0/1:

Protocol  Encapsulated      Decapsulated      Forwarded         Dropped

CDP       0                 0                 0                 0

DLDP      2                 3                 3                 0

EOAM      5                 2                 9                 0

GVRP      8                 4                 9                 2

LACP      0                 0                 0                 0

LLDP      3                 3                 3                 3

MVRP      0                 0                 0                 0

PAGP      5                 1                 7                 3

PVST      0                 0                 0                 0

STP       5                 5                 5                 0

Tunnel    N/A               N/A               100               10

VTP       0                 6                 0                 0

UDLD      0                 0                 0                 0

DTP       0                 0                 0                 0

CFD       0                 0                 0                 0

Table 1 Command output

Field

Description

Protocol

Protocol. The DTP and CFD protocols are supported only in Release 6331 and later.

Encapsulated

Number of encapsulated packets.

The number increases by 1 when the interface receives and encapsulates a protocol packet from a customer network.

For protocol Tunnel, which represents tunneled packets, this field displays N/A.

Decapsulated

Number of decapsulated packets.

The number increases by 1 when the interface receives and decapsulates a tunneled packet from the service provider network.

For protocol Tunnel, which represents tunneled packets, this field displays N/A.

Forwarded

Number of forwarded packets.

The number increases by 1 when the interface receives a protocol packet and forwards it.

The number increases by 1 for protocol Tunnel when the interface receives a tunneled packet and forwards it. If no interface of the PE is connected to customer networks, the number does not increase.

Dropped

Number of dropped packets.

The number increases by 1 when the interface receives a protocol packet and drops it. Protocol packets dropped by hardware are not counted.

The number increases by 1 for protocol Tunnel when the interface receives a tunneled packet and drops it.

l2protocol tunnel dot1q

Use l2protocol tunnel dot1q to enable L2PT for a protocol.

Use undo l2protocol tunnel dot1q to disable L2PT for a protocol.

Syntax

In Layer 2 Ethernet interface view:

l2protocol { cdp | cfd | dldp | dtp | eoam | gvrp | lacp | lldp | mvrp | pagp | pvst | stp | udld | vtp } tunnel dot1q

undo l2protocol { cdp | cfd | dldp | dtp | eoam | gvrp | lacp | lldp | mvrp | pagp | pvst | stp | udld | vtp } tunnel dot1q

In Layer 2 aggregate interface view:

l2protocol { cdp | cfd | gvrp | lacp | lldp | mvrp | pagp | pvst | stp | udld | vtp } tunnel dot1q

undo l2protocol { cdp | cfd | gvrp | lacp | lldp | mvrp | pagp | pvst | stp | udld | vtp } tunnel dot1q

Default

L2PT is disabled for all protocols.

Views

Layer 2 Ethernet interface view

Layer 2 aggregate interface view

Predefined user roles

network-admin

Parameters

cdp: Specifies CDP.

cfd: Specifies CFD.

dldp: Specifies DLDP.

dtp: Specifies DTP.

eoam: Specifies EOAM.

gvrp: Specifies GVRP.

lacp: Specifies LACP.

lldp: Specifies LLDP. L2PT for LLDP supports LLDP packets from only nearest bridge agents.

mvrp: Specifies MVRP.

pagp: Specifies PAgP.

pvst: Specifies PVST.

stp: Specifies STP.

udld: Specifies UDLD.

vtp: Specifies VTP.

 

 

NOTE:

The dtp and cfd keywords are supported only in Release 6331 and later.

 

Usage guidelines

Before you enable L2PT for a protocol on a port, perform the following tasks:

·     Enable the protocol on the CE, and disable the protocol on the port.

·     Enable L2PT only on customer-facing PE ports. If you enable L2PT on ports connected to the service provider network, L2PT determines that the ports are connected to a customer network.

·     Disable the protocol (for example, STP) on the PE ports connecting to an aggregate interface on a CE when the following conditions exist:

¡     The protocol is running on the aggregate interface on the CE.

¡     The aggregate interface on the CE connects to an L2PT-enabled port on the PE.

You can enable L2PT on member ports of a Layer 2 aggregation group, but the configuration does not take effect.

Examples

# Disable STP and enable L2PT for STP on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] undo stp enable

[Sysname-GigabitEthernet1/0/1] l2protocol stp tunnel dot1q

# Disable STP and enable L2PT for STP on Bridge-Aggregation 1.

<Sysname> system-view

[Sysname] interface bridge-aggregation 1

[Sysname-Bridge-Aggregation1] undo stp enable

[Sysname-Bridge-Aggregation1] l2protocol stp tunnel dot1q

l2protocol tunnel-dmac

Use l2protocol tunnel-dmac to set the destination multicast MAC address for tunneled packets of all protocols.

Use undo l2protocol tunnel-dmac to restore the default.

Syntax

l2protocol tunnel-dmac mac-address

undo l2protocol tunnel-dmac

Default

The tunneled packets use 010f-e200-0003 as the destination multicast MAC address.

Views

System view

Predefined user roles

network-admin

Parameters

mac-address: Specifies a destination multicast MAC address. The available addresses are 0100-0ccd-cdd0, 0100-0ccd-cdd1, 0100-0ccd-cdd2, and 010f-e200-0003.

Usage guidelines

The l2protocol tunnel-dmac command sets the destination multicast MAC address for tunneled packets of all protocols. The l2protocol type tunnel-dmac command sets the destination multicast MAC address for tunneled packets of the specified protocol. If both commands are executed, the l2protocol type tunnel-dmac command takes priority.

 

 

NOTE:

The l2protocol type tunnel-dmac command is supported only in Release 6331 and later.

 

Examples

# Set the destination multicast MAC address to 0100-0ccd-cdd0 for tunneled packets.

<Sysname> system-view

[Sysname] l2protocol tunnel-dmac 0100-0ccd-cdd0

Related commands

l2protocol type tunnel-dmac

l2protocol type tunnel-dmac

Use l2protocol type tunnel-dmac to set the destination multicast MAC address for tunneled packets of the specified protocol.

Use undo l2protocol type tunnel-dmac to restore the default.

 

 

NOTE:

The l2protocol type tunnel-dmac command is supported only in Release 6331 and later.

 

Syntax

l2protocol type { cdp | cfd | dldp | dtp | eoam | gvrp | lacp | lldp | mvrp | pagp | pvst | stp | udld | vtp } tunnel-dmac mac-address

undo l2protocol type { cdp | cfd | dldp | dtp | eoam | gvrp | lacp | lldp | mvrp | pagp | pvst | stp | udld | vtp } tunnel-dmac

Default

The tunneled packets of all protocols use 010f-e200-0003 as the destination multicast MAC address.

Views

System view

Predefined user roles

network-admin

Parameters

cdp: Specifies CDP.

cfd: Specifies CFD.

dldp: Specifies DLDP.

dtp: Specifies DTP.

eoam: Specifies EOAM.

gvrp: Specifies GVRP.

lacp: Specifies LACP.

lldp: Specifies LLDP.

mvrp: Specifies MVRP.

pagp: Specifies PAgP.

pvst: Specifies PVST.

stp: Specifies STP.

udld: Specifies UDLD.

vtp: Specifies VTP.

mac-address: Specifies a destination multicast MAC address for tunneled packets of the specified protocol, in the range of 0100-0000-0000 to 01ff-ffff-ffff.

Usage guidelines

The l2protocol tunnel-dmac command sets the destination multicast MAC address for tunneled packets of all protocols. This command sets the destination multicast MAC address for tunneled packets of the specified protocol. If both commands are executed, the l2protocol type tunnel-dmac command takes priority.

For tunneled packets to be recognized, set the same destination multicast MAC address for packets of the same protocol on PEs that are connected to the same customer network.

If you execute this command multiple times for a protocol, the most recent configuration takes effect.

Examples

# Set the destination multicast MAC address to 0100-0ccd-cddc for tunneled packets of CFD.

<Sysname> system-view

[Sysname] l2protocol type cfd tunnel-dmac 0100-0ccd-cddc

Related commands

l2protocol tunnel-dmac

reset l2protocol statistics

Use reset l2protocol statistics to clear L2PT statistics.

Syntax

reset l2protocol statistics [ interface interface-type interface-number ]

Views

User view

Predefined user roles

network-admin

Parameters

interface interface-type interface-number: Specifies a Layer 2 Ethernet or aggregate interface by its type and number. If you do not specify this option, the command clears L2PT statistics on all Layer 2 Ethernet and aggregate interfaces.

Examples

# Clear L2PT statistics on all Layer 2 Ethernet and aggregate interfaces.

<Sysname> reset l2protocol statistics

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网