< Home

Adding a Layer 2 Port to an ERPS Ring and Configuring the Port Role

Context

After ERPS is configured, add Layer 2 ports to an ERPS ring and configure port roles so that ERPS can work properly.

You can add a Layer 2 port to an ERPS ring in either of the following ways:
  • In the ERPS ring view, add a specified port to the ERPS ring and configure the port role.

  • In the interface view, add the current port to the ERPS ring and configure the port role.

  • A port can be added to at most two ERPS rings, but cannot be added to ERPS rings configured with the same protected instance.

  • An ERPS-enabled port needs to allow packets of control VLANs and data VLANs to pass through, so the link type of the port must be configured as trunk or hybrid.

  • Flush-FDB packets for updating MAC addresses cannot be separately sent, so do not configure a direct link between two upstream nodes as the RPL.

  • Before changing the port role, use the shutdown command to disable the port. When the port role is changed, use the undo shutdown command to enable the port. This prevents traffic interruptions.

  • Before adding an interface to an ERPS ring, disable port security on the interface; otherwise, loops cannot be prevented.

Prerequisites

  • The port is not a Layer 3 port. If the port is a Layer 3 port, run the portswitch command to switch the port to the Layer 2 mode.

  • Spanning Tree Protocol (STP), Rapid Ring Protection Protocol (RRPP), Smart Ethernet Protection (SEP), or Smart Link is not enabled on the port.
    • If the port has STP enabled, run the stp disable command in the interface view to disable STP.
    • If the port has RRPP enabled, run the undo ring ring-id command in the RRPP domain view to disable RRPP.
    • If the port has SEP enabled, run the undo sep segment segment-id command in the interface view to disable SEP.
    • If the port has Smart Link enabled, run the undo port command in the Smart Link group view to disable Smart Link.
  • The control-vlan command has been executed to configure a control VLAN and the protected-instance command has been executed to configure an ERP instance.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Add a Layer 2 port to an ERPS ring and configure the port role in either of the following ways.

    • In the ERPS ring view, add a specified port to the ERPS ring and configure the port role.
      1. Run interface interface-type interface-number

        The interface view is displayed.

      2. Run stp disable

        STP is disabled on the ERPS-enabled port.

      3. Run port link-type trunk

        The link type of the ERPS-enabled port is configured as trunk.

      4. Run port trunk allow-pass vlan { { vlan-id1 [ to vlan-id2 ] }&<1-10> | all }

        The VLANs allowed by the ERPS-enabled port are specified.

        After the control-vlan command is used in the ERPS ring view to configure a control VLAN and the port interface-type interface-number [ rpl owner ] command is configured, the ports in the ERPS ring allow packets of the control VLAN to pass through. Therefore, you need to specify only the IDs of data VLANs in this step.

      5. Run quit

        Return to the system view.

      6. Run erps ring ring-id

        The ERPS ring view is displayed.

      7. Run port interface-type interface-number [ rpl owner ]

        The port is added to the ERPS ring and its role is configured. If rpl owner is specified, the port is configured as an RPL owner port. If rpl owner is not specified, the port is a common port.

    • In the interface view, add the current port to the ERPS ring and configure the port role.
      1. Run interface interface-type interface-number

        The specified interface view is displayed.

      2. Run stp disable

        STP is disabled on the ERPS-enabled port.

      3. Run port link-type trunk

        The link type of the ERPS-enabled port is configured as trunk.

      4. Run port trunk allow-pass vlan { { vlan-id1 [ to vlan-id2 ] }&<1-10> | all }

        The VLANs allowed by the ERPS-enabled port are specified.

        After the control-vlan command is used in the ERPS ring view to configure a control VLAN and the port interface-type interface-number [ rpl owner ] command is configured, the ports in the ERPS ring allow packets of the control VLAN to pass through. Therefore, you need to specify only the IDs of data VLANs in this step.

      5. Run erps ring ring-id [ rpl owner ]

        The current port is added to the ERPS ring and its role is configured. If rpl owner is specified, the port is configured as an RPL owner port. If rpl owner is not specified, the port is a common port.

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