< Home

control-vlan (ERPS ring view)

Function

The control-vlan command configures a control VLAN for an ERPS ring to forward RAPS PDUs.

The undo control-vlan command deletes the configured control VLAN.

By default, no control VLAN is configured in an ERPS ring.

Format

control-vlan vlan-id

undo control-vlan

Parameters

Parameter Description Value
vlan-id Specifies the ID of a control VLAN for an ERPS ring. The value is an integer that ranges from 1 to 4094.

Views

ERPS ring view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After an ERPS ring is created, run the control-vlan command to create the control VLAN. Unlike a data VLAN, a control VLAN is used only to forward ERPS protocol packets but not forward service packets in an ERPS ring, which improves the security of the ERPS protocol.

Precautions

  • If you run the control-vlan command multiple times, only the latest configuration takes effect.

  • After a control VLAN is created, the vlan batch { vlan-id1 [ to vlan-id2 ] } &<1-10> command used to create common VLANs is displayed in the configuration file.

  • After a port is added to an ERPS ring configured with a control VLAN, the port is added to the control VLAN.
    • If the port is a trunk port, the port trunk allow-pass vlan vlan-id command is displayed in the record of the port that has been added to the ERPS ring in the configuration file.
    • If the port is a hybrid port, the port hybrid tagged vlan vlan-id command is displayed in the record of the port that has been added to the ERPS ring in the configuration file.
  • All the devices in an ERPS ring must use the same control VLAN in an ERPS ring, and different ERPS rings must use different control VLANs.

  • The control VLAN must be not created, and is not used by other features. In addition, no interface is added to the control VLAN.

  • If ports have been added to an ERPS ring, the control VLAN cannot be modified. To delete the configured control VLAN, run the undo erps ring command in the interface view or the undo port command in the ERPS ring view to delete ports from the ERPS ring, and run the undo control-vlan command to delete the control VLAN.

  • Run the display erps command to check whether the control VLAN is configured or which VLAN is configured as the control VLAN.

Example

# Configure control VLAN 5 in ERPS ring 1.

<HUAWEI> system-view
[HUAWEI] erps ring 1
[HUAWEI-erps-ring1] control-vlan 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >