qinq

Function

The qinq command specifies inner and outer tags for packets on a sub-interface for QinQ VLAN tag termination, to which a BFD session is bound.

The undo qinq command deletes inner and outer tags specified for packets on a sub-interface for QinQ VLAN tag termination, to which a BFD session is bound.

By default, inner and outer tags are not specified for packets on a sub-interface for QinQ VLAN tag termination, to which a BFD session is bound.

Format

qinq pe-vid pe-vid ce-vid ce-vid

undo qinq

Parameters

Parameter Description Value
pe-vid pe-vid

Specifies the value of the outer tag in a BFD packet.

An integer ranging from 1 to 4094

ce-vid ce-vid

Specifies the value of the inner tag in a BFD packet.

An integer ranging from 1 to 4094

Views

BFD session view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bfd write

Usage Guidelines

Usage Scenario

During the configuration of a BFD session, after the BFD session is bound to a sub-interface for QinQ VLAN tag termination, the qinq pe-vid ce-vid command can be run to specify the outer and inner tags for packets to be sent over VLANs.

Prerequisites

Before using the qinq command,

  • Run the control-vid command on the sub-interface for QinQ VLAN tag termination, to which the BFD session is bound. Otherwise, the qinq command will fail to be configured.
  • Run the qinq termination pe-vid ce-vid command on the sub-interface for QinQ VLAN tag termination, to which the BFD session is bound. Otherwise, the qinq command will fail to take effect after being configured.

    The qinq command is applicable to a sub-interface for QinQ VLAN tag termination, to which a multicast BFD session is bound. This requires that the bfd bind peer-ip default-ip command be run during the establishment of the BFD session.

Example

# Set the outer tag to 1 and inner tag to 2 for packets on a sub-interface for QinQ VLAN tag termination, to which the multicast BFD session named test is bound.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0.1
[*HUAWEI-GigabitEthernet0/1/0.1] encapsulation qinq-termination
[*HUAWEI-GigabitEthernet0/1/0.1] qinq termination pe-vid 1 ce-vid 2
[*HUAWEI-GigabitEthernet0/1/0.1] quit
[*HUAWEI] bfd
[*HUAWEI-bfd] quit
[*HUAWEI] bfd test bind peer-ip default-ip interface GigabitEthernet 0/1/0.1
[*HUAWEI-bfd-session-test] discriminator local 1
[*HUAWEI-bfd-session-test] discriminator remote 2
[*HUAWEI-bfd-session-test] qinq pe-vid 1 ce-vid 2
Table 1 Description of the qinq command output
Item Description
pe-vid

Specifies the value of the outer tag in a BFD packet.

ce-vid

Specifies the value of the inner tag in a BFD packet.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >