01-Access Volume

HomeSupportResource CenterRoutersH3C SR6600 Router SeriesH3C SR6600 Router SeriesTechnical DocumentsReference GuidesCommand ReferencesH3C SR6600 Command Manual-Release 2315(V1.09)01-Access Volume
13-VLAN Termination Commands
Title Size Download
13-VLAN Termination Commands 56.09 KB

VLAN Termination Configuration Commands

dot1q ethernet-type

Syntax

dot1q ethernet-type hex-value

undo dot1q ethernet-type

View

Ethernet interface view

Default Level

2: System level

Parameters

hex-value: Ethernet type field value (TPID value) of VLAN packets, which is a four-character hexadecimal value ranging from 0x1 to 0xFFFF. However, you are not allowed to use the protocol type values listed in Table 1-1.

Table 1-1 Protocol type values that cannot be used for the hex-value argument.

Protocol type

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 device

0xFFFD/0xFFFE/0xFFFF

 

Description

Use the dot1q ethernet-type command to configure the TPID value in the VLAN tag field for packets received and sent by the interface.

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

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

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

Note that:

l          The dot1q ethernet-type command can be configured only on main Ethernet interfaces, not on subinterfaces. Configurations made in Ethernet interface view apply to all its subinterfaces.

l          Each configuration you made will overwrite the previous one, so only the latest configuration takes effect.

Examples

# Set the TPID value of the VLAN packets that can be received and sent by all subinterfaces under GigabitEthernet 1/1 to 0x9100.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/1

[Sysname-GigabitEthernet1/1] dot1q ethernet-type 9100

vlan-type dot1q vid

Syntax

vlan-type dot1q vid vlan-id-list

undo vlan-type dot1q vid vlan-id-list

View

Ethernet subinterface view

Default Level

2: System level

Parameters

vlan-id-list: Range of VLAN IDs of dot1q packets that can be terminated by the current subinterface. vlan-id-list = { vlan-id1 [ to vlan-id2 ] }&<1-10>. The vlan-id argument is in the range 1 to 4094. &<1-10> indicates that you can input up to ten VLAN ID ranges.

vlan-id: VLAN ID, ranging from 1 to 4094.

Description

Use the vlan-type dot1q vid command to enable Dot1q termination on a subinterface, and specify the range of VLAN IDs in the Dot1q packets that can be terminated by the subinterface.

Use the undo vlan-type dot1q vid command to disable Dot1q termination on a subinterface over Dot1q packets with specified VLAN IDs.

By default, Dot1q termination is disabled on a subinterface.

Different subinterfaces under a main Ethernet interface cannot be configured to terminate Dot1q packets from the same VLAN. That is, the VLAN ID ranges specified by the vlan-id-list argument for different subinterfaces cannot overlap with each other.

Examples

# Configure GigabitEthernet 1/1.1 to terminate Dot1q packets with VLAN IDs in the range 2 to 100.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/1.1

[Sysname-GigabitEthernet1/1.1] vlan-type dot1q vid 2 to 100

After the above configuration, when GigabitEthernet 1/1.1 receives a packet whose VLAN ID is in the range 2 to 100, it will terminate this packet.

vlan-type dot1q vid second-dot1q

Syntax

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

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

View

Ethernet subinterface view

Default Level

2: System level

Parameters

vlan-id: Outer VLAN ID, ranging from 1 to 4094.

any: Specifies all the values between 1 and 4094 other than the inner VLAN IDs assigned to other subinterfaces with the same outer VLAN ID as the current subinterface.

vlan-id-list: Inner VLAN ID range. vlan-id-list = { vlan-id1 [ to vlan-id2 ] }&<1-10>. The vlan-id argument is in the range 1 to 4094. &<1-10> indicates that you can input up to ten inner VLAN ID ranges.

Description

Use the vlan-type dot1q vid second-dot1q command to specify QinQ packets that can be terminated by the current subinterface.

Use the undo vlan-type dot1q vid second-dot1q command to restore the default.

By default, QinQ termination is not enabled on an Ethernet subinterface.

Different subinterfaces under the same main Ethernet interface cannot terminate QinQ packets with the same inner and outer VLAN IDs. That is, after you configure the same outer VLAN ID on two different subinterfaces under a main Ethernet interface, you need to make sure that their inner VLAN ID ranges do not overlap with each other.

Examples

# Configure GigabitEthernet 1/1.1 to terminate QinQ packets whose inner and outer VLAN IDs are both 100.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/1.1

[Sysname-GigabitEthernet1/1.1] vlan-type dot1q vid 100 second-dot1q 100

# Configure GigabitEthernet 1/1.2 to terminate QinQ packets with outer VLAN ID 100 and inner VLAN IDs in the range 200 to 300.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/1.2

[Sysname-GigabitEthernet1/1.2] vlan-type dot1q vid 100 second-dot1q 200 to 300

# Configure GigabitEthernet 1/1.3 to terminate QinQ packets whose outer VLAN ID is 100 and inner VLAN ID is any value between 1 and 4094.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/1.3

[Sysname-GigabitEthernet1/1.3] vlan-type dot1q vid 100 second-dot1q any

# Configure GigabitEthernet 1/1.4 to terminate QinQ packets whose outer VLAN ID is 100 and inner VLAN ID is in the range 500 to 600.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/1.4

[Sysname-GigabitEthernet1/1.4] vlan-type dot1q vid 100 second-dot1q 500 to 600

# Configure GigabitEthernet 1/1.5 to terminate QinQ packets whose outer VLAN ID is 200 and inner VLAN ID is in the range 500 to 600.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/1.5

[Sysname-GigabitEthernet1/1.5] vlan-type dot1q vid 200 second-dot1q 500 to 600

The following table describes the results after the above configuration:

Ethernet subinterface

Outer VLAN ID of QinQ packets that can be terminated by the current subinterface

Inner VLAN IDs of QinQ packets that can be terminated by the current subinterface

GigabitEthernet 1/1.1

100

100

GigabitEthernet 1/1.2

100

200300

GigabitEthernet 1/1.3

100

199, 101199, 301499 and 6014094. That is, it can be any value between 1 and 4094 other than 100 or a value between 200 and 300 or 500 and 600.

GigabitEthernet 1/1.4

100

500600

GigabitEthernet 1/1.5

200

500600

 

vlan-termination broadcast enable

Syntax

vlan-termination broadcast enable

undo vlan-termination broadcast enable

View

Ethernet subinterface view

Default Level

2: System level

Parameters

None

Description

Use the vlan-termination broadcast enable command to enable the current subinterface to transmit broadcast/multicast packets.

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

By default, a VLAN termination-enabled subinterface cannot transmit broadcast/multicast packets.

 

You can enable this feature only on subinterfaces configured with ambiguous Dot1q/QinQ termination, not on those configured with unambiguous Dot1q/QinQ termination.

 

Examples

# Enable subinterface GigabitEthernet 1/1.10 to transmit broadcast/multicast packets.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/1.10

[Sysname-GigabitEthernet1/1.10] vlan-type dot1q vid 10 to 20

[Sysname-GigabitEthernet1/1.10] vlan-termination broadcast enable

After the above configuration is completed, when GigabitEthernet 1/1.10 receives broadcast/multicast packets with VLAN IDs in the range 10 to 20, it broadcasts or multicasts the packets within VLAN 10 through VLAN 20.

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