(Optional) Configuring the VLAN Range for Loop Detection Packets Sent by a Sub-interface for VLAN Tag Termination

Specify the VLAN range for the loop detection packets sent by a sub-interface for dot1q or QinQ VLAN tag termination. This prevents a PE from sending detection packets with the VLAN IDs of all ranges, thus avoiding unnecessary CPU consumption.

Context

Perform the following steps on PEs.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number interface-number

    The view of the PE Ethernet interface or Eth-Trunk interface that connects to a CE is displayed.

  3. (Optional) Create a user VLAN group.
    1. Run vlan-group group-id

      A user VLAN group is created.

    2. Run group mode { single | multiple }

      The working mode of the VLAN group is configured.

      • single: A VLAN group is considered as a user. This means that you cannot collect statistics about QinQ packets based on a VLAN or a VLAN range.
      • multiple: VLANs and VLAN ranges in a VLAN group are considered as different users. This means that you can collect statistics about QinQ packets based on a VLAN or VLAN range to implement refined management.

    3. Run quit

      Return to the view of the Ethernet sub-interface at the user-side of the PE.

    Configuring a VLAN group allows you to achieve the following purposes:

    • Deploy QoS policies based on services or users so that higher priority service traffic is preferentially forwarded, improving user experience.
    • View statistics about QinQ packets to check whether a device is functioning properly.

  4. Configuring the VLAN range for loop detection packets sent by a sub-interface

    • For dot1q VLAN tag termination
      1. Run control-vid vid dot1q-termination [ rt-protocol ]

        A sub-interface for VLAN tag termination is specified and the sub-interface is configured to terminate single-tagged user packets.

      2. Run dot1q termination vid low-pe-vid [ to high-pe-vid ] [ vlan-group group-id ]

        dot1q VLAN tag termination is configured on the sub-interface.

      3. Run loop-detect detection vid low-vid [ to high-vid ]

        The VLAN range for the loop detection packets sent by the sub-interface for dot1q VLAN tag termination is configured.

        It is recommended that the VLAN ranges of loop detection packets to be sent between the AC interfaces on the interconnected devices be equal or should at least overlap.

    • For QinQ VLAN tag termination
      1. Run control-vid vid qinq-termination [ local-switch | [ rt-protocol | dynamic ] * ]

        A sub-interface for VLAN tag termination is specified and the sub-interface is configured to terminate double-tagged user packets.

      2. Run qinq termination pe-vid pe-vid [ to high-pe-vid ] ce-vid ce-vid [ to high-ce-vid ] [ vlan-group group-id ]

        QinQ VLAN tag termination is configured on the sub-interface.

      3. Run loop-detect detection pe-vid pe-vid ce-vid low-vid [ to high-vid ]

        The VLAN range for the loop detection packets sent by the sub-interface for QinQ VLAN tag termination is configured.

        pe-vid indicates the outer VLAN ID of the loop detection packets sent by the sub-interface for QinQ VLAN tag termination; ce-vid indicates the inner VLAN ID. A sub-interface for QinQ VLAN tag termination can send double-tagged loop detection packets with a specific outer VLAN ID.

        The VLAN ranges of loop detection packets to be sent between the AC interfaces on the interconnected devices had better be equal or should at least overlap.

  5. Run quit

    Return to the system view.

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