03-Layer 2 - LAN Switching Command Reference

HomeSupportRoutersH3C SR8800 Router SeriesReference GuidesCommand ReferencesH3C SR8800 Command Reference-Release3347-6W10303-Layer 2 - LAN Switching Command Reference
09-VLAN Termination Commands
Title Size Download
09-VLAN Termination Commands 78.14 KB

 

 

NOTE:

·       In this documentation, SPC cards refer to the cards prefixed with SPC, for example, SPC-GT48L, and SPE cards refer to the cards prefixed with SPE, for example, SPE-1020-E-II.

·       Only SPE cards support VLAN termination.

 

dot1q ethernet-type

Syntax

dot1q ethernet-type hex-value

undo dot1q ethernet-type

View

Layer 3 Ethernet interface view, Layer 3 aggregate interface view

Default level

2: System level

Parameters

hex-value: Hexadecimal tag protocol identifier (TPID) value, excluding the common protocol type values listed in Table 1.

Table 1 Common protocol type values

Protocol

Value

ARP

0x0806

PUP

0x0200

RARP

0x8035

IP

0x0800

IPv6

0x86DD

PPPoE

0x8863/0x8864

MPLS

0x8847/0x8848

IPX/SPX

0x8137

IS-IS

0x8000

LACP

0x8809

802.1X

0x888E

Cluster

0x88A7

Reserved on the router

0xFFFD/0xFFFE/0xFFFF

 

Description

Use the dot1q ethernet-type command to set the TPID value in the outer VLAN tag of packets received and sent by the interface. If the interface receives and sends QinQ packets, the TPID value in the inner VLAN tag of packets is always 0x8100, and is not configurable.

Use the undo dot1q ethernet-type command to restore the default.

By default, the TPID value for VLAN-tagged packets received and sent by the router is 0x8100.

After you configure the TPID value, only packets whose TPID is 0x8100 or the value you configured will be processed as VLAN-tagged packets. When a packet is sent out the interface, the TPID value you configured will be applied in the VLAN tag of the packet.

The dot1q ethernet-type command can be configured only on main Layer 3 Ethernet interfaces and Layer 3 aggregate interfaces, not on subinterfaces or aggregation member ports. A main Layer 3 Ethernet interface configured with this command cannot be added to an aggregation group.

Configurations made in Layer 3 Ethernet interface view apply to all its subinterfaces. Configurations made in Layer 3 aggregate interface view apply to all Layer 3 aggregate subinterfaces of the interface.

To change a non-default TPID value to another non-default TPID value, you must first restore the default TPID value, 0x8100.

Configuration of this command on an interface of a card applies to all interfaces on the card.

Examples

# Set the TPID value of the VLAN-tagged packets that can be received and sent by Layer 3 aggregate interface Route-Aggregation 2 to 0x9100.

<Sysname> system-view

[Sysname] interface Route-Aggregation 2

[Sysname-Route-Aggregation2] dot1q ethernet-type 9100

second-dot1q

Syntax

second-dot1q { any | vlan-id-list }

undo second-dot1q { any | vlan-id-list }

View

Layer 3 Ethernet subinterface view, Layer 3 aggregate subinterface view, VLAN interface view

Default level

2: System level

Parameters

any: Configure the subinterface or VLAN interface to terminate any QinQ packet whose outer VLAN ID is the subinterface number and whose inner VLAN ID ranges from 1 to 4094.

vlan-id-list: A list of inner VLAN IDs in the format of vlan-id-list = { vlan-id1 [ to vlan-id2 ] }&<1-10>, where the vlan-id argument ranges from 1 to 4094 and &<1-10> indicates that you can specify up to 10 inner VLAN ID ranges.

Description

Use the second-dot1q command to enable QinQ termination, and specify the inner VLAN IDs of the QinQ packets that can be terminated by the subinterface or VLAN interface. The outer VLAN ID of QinQ packets that can be terminated by the subinterface is the subinterface number, and is not configurable.

Use the undo second-dot1q command to restore the default.

By default, a subinterface or VLAN interface terminates only Dot1q packets.

After you configure the second-dot1q command, the subinterface or VLAN interface can only terminate QinQ packets.

After you use the undo second-dot1q command to disable the subinterface or VLAN interface from terminating QinQ packets, the subinterface will restart, and the ARP table entry corresponding to the subinterface will be removed.

Examples

# Configure GigabitEthernet 2/1/7.20 to terminate QinQ packets with inner VLAN IDs ranging from 10 to 20; configure GigabitEthernet 2/1/7.25 to terminate QinQ packets with inner VLAN ID 100; configure GigabitEthernet 2/1/7.100 to terminate QinQ packets with any inner VLAN ID.

<Sysname> system-view

[Sysname] interface GigabitEthernet2/1/7.20

[Sysname-GigabitEthernet2/1/7.20] second-dot1q 10 to 20

[Sysname-GigabitEthernet2/1/7.20] quit

[Sysname] interface GigabitEthernet2/1/7.25

[Sysname-GigabitEthernet2/1/7.25] second-dot1q 100

[Sysname-GigabitEthernet2/1/7.25] quit

[Sysname] interface GigabitEthernet2/1/7.100

[Sysname-GigabitEthernet2/1/7.100] second-dot1q any

The following table describes the results of the configuration:

 

Layer 3 Ethernet subinterface

Outer VLAN ID of QinQ packets that the subinterface can terminate

Inner VLAN IDs of QinQ packets that the subinterface can terminate

GigabitEthernet2/1/7.20

20

1020

GigabitEthernet2/1/7.25

25

100

GigabitEthernet2/1/7.100

100

14094

 

# Configure VLAN-interface 10 to terminate QinQ packets with inner VLAN IDs ranging from 10 to 20; configure VLAN-interface 12 to terminate QinQ packets with inner VLAN ID 100; configure VLAN-interface 100 to terminate QinQ packets with any inner VLAN ID.

<Sysname> system-view

[Sysname] interface Vlan-interface 10

[Sysname-Vlan-interface10] second-dot1q 10 to 20

[Sysname-Vlan-interface10] quit

[Sysname] interface Vlan-interface 12

[Sysname-Vlan-interface12] second-dot1q 100

[Sysname-Vlan-interface12] quit

[Sysname] interface Vlan-interface 100

[Sysname-Vlan-interface100] second-dot1q any

The following table shows the results of the configuration:

 

Layer 3 Ethernet subinterface

Outer VLAN ID of QinQ packets that the subinterface can terminate

Inner VLAN IDs of QinQ packets that the subinterface can terminate

VLAN-interface 10

10

1020

VLAN-interface 12

12

100

VLAN-interface 100

100

14094

 

vlan-termination broadcast enable

Syntax

vlan-termination broadcast enable

undo vlan-termination broadcast enable

View

Layer 3 Ethernet subinterface view, Layer 3 aggregate subinterface view, VLAN interface view

Default level

2: System level

Parameters

None

Description

Use the vlan-termination broadcast enable command to enable the current subinterface or VLAN interface to send broadcast and multicast packets.

Use the undo vlan-termination broadcast enable command to restore the default.

By default, an ambiguous QinQ termination-enabled subinterface or VLAN interface drops broadcast and multicast packets. Ambiguous QinQ termination terminates QinQ packets with a specific range of inner VLAN IDs.

Examples

# Enable Layer 3 Ethernet subinterface GigabitEthernet 3/1/1.512 to send broadcast and multicast packets.

<Sysname> system-view

[Sysname] interface GigabitEthernet 3/1/1.512

[Sysname-GigabitEthernet3/1/1.512] second-dot1q 10 to 20

[Sysname-GigabitEthernet3/1/1.512] vlan-termination broadcast enable

After the above configuration, when GigabitEthernet 3/1/1.512 receives broadcast or multicast packets with VLAN IDs ranging from 10 to 20, it broadcasts or multicasts the packets within the corresponding VLANs.

  • 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
新华三官网