dcn vlan (Ethernet interface view)

Function

The dcn vlan command configures a DCN virtual local area network (VLAN).

The undo dcn vlan command deletes the DCN VLAN configuration.

This command varies in transport and router modes. For detailed differences, see Differences Between Commands in Transport and Router Modes. This topic describes the command configuration in router mode.

By default, the DCN VLAN ID is 0.

Format

dcn vlan { beginVlan [ to endVlan ] } &<1-4094>

undo dcn vlan

undo dcn vlan { beginVlan [ to endVlan ] } &<1-4094>

Parameters

Parameter Description Value
beginVlan

Specifies a start DCN VLAN ID.

The value is an integer ranging from 1 to 4094.

to endVlan

Specifies an end DCN VLAN ID.

  • endvlan-id must be greater than or equal to beginvlan-id so that they specify a VLAN range.
  • If to endvlan-id is not specified, only the VLAN specified by beginvlan-id is used as a DCN VLAN.
  • The difference between endvlan-id and beginvlan-id must not be larger than 64.

This parameter can be configured only in the Ethernet view, or GE interface view.

The value is an integer ranging from 1 to 4094.

Views

100GE interface view, 40GE interface view, GE optical interface view, GE electrical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dcn write

Usage Guidelines

Usage Scenario

To enable DCN packets to pass through a Layer 2 network, run the dcn vlan command to configure a DCN VLAN. Then, the DCN VLAN ID specified in this command will be added to DCN packets before they are sent out.

Prerequisites

The DCN feature has been enabled globally using the dcn command in the system view.

Precautions

Running this command in the interface view to configure a DCN VLAN refreshes the DCN VLAN configurations of only the interface.

New configurations overwrite existing configurations.

In VS mode, this command is supported only by the admin VS.

Example

# Configure DCN VLAN 4093 on GE 0/1/0.
<HUAWEI> system-view
[~HUAWEI] dcn
Warning: This operation will enable DCN function. Continue? [Y/N]:y
[*HUAWEI-dcn] quit
[*HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] dcn
[*HUAWEI-GigabitEthernet0/1/0] dcn vlan 4093
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >