The dot1q vid command specifies the VLAN ID for packets on a sub-interface for dot1q VLAN tag termination, to which a BFD session is bound.
The undo dot1q command deletes the VLAN ID specified for packets on a sub-interface for dot1q VLAN tag termination, to which a BFD session is bound.
By default, no VLAN ID is specified.
Usage Scenario
During the configuration of a BFD session, after the BFD session bound to a sub-interface for dot1q VLAN tag termination, the dot1q command can be run to specify a VLAN ID to ensure that packets are sent over the correct VLAN.
Prerequisites
Before using the dot1q command,
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/0.1 [*HUAWEI-GigabitEthernet0/1/0.1] encapsulation dot1q-termination [*HUAWEI-GigabitEthernet0/1/0.1] dot1q termination vid 1 [*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 3 [*HUAWEI-bfd-session-test] discriminator remote 4 [*HUAWEI-bfd-session-test] dot1q vid 1