No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - Interface Management

S7700 and S9700 V200R010C00

This document describes the principles and configurations of interfaces and provides configuration examples.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring a Sub-interface

Configuring a Sub-interface

Context

Sub-interfaces are multiple logical interfaces configured on a main interface to allow the main interface to communicate with multiple remote interfaces. Sub-interfaces can share physical layer parameters of their main interface, or be configured with their respective link layer parameters and network layer parameters. Disabling or activating sub-interfaces does not affect the main interface status, but the main interface status change affects the status of sub-interfaces. Sub-interfaces work properly only when their main interface is in Up state. Associating a sub-interface with a VLAN implements inter-VLAN communication and applies to Dot1q termination and QinQ termination scenarios.

The switch supports sub-interface configuration on Ethernet interfaces and Eth-Trunks.

NOTE:
  • Only the E series, X series, F series and SC series cards on the S7700 and S9700 support sub-interface configuration. For details about the cards, see Cards in the Hardware Description.

  • Only hybrid and trunk interfaces on the preceding series of cards support sub-interface configuration.
  • After you run the undo portswitch command to switch Layer 2 interfaces on the preceding series of cards into Layer 3 interfaces, you can configure sub-interfaces on the interfaces.

  • The SA series cards do not support sub-interface configuration and cannot forward IP traffic to sub-interfaces on other cards.

  • You are advised to add a member interface to an Eth-Trunk and then configure an Eth-Trunk sub-interface. The Eth-Trunk sub-interface can be successfully configured only when the card on which the member interface locates supports sub-interface configuration.

  • VLAN termination sub-interfaces cannot be created on a VCMP client.

Pre-configuration Tasks

Before configuring a sub-interface, properly connect the physical interface of the sub-interface.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number.subinterface-number

    The sub-interface view is displayed.

    subinterface-number specifies the number of a sub-interface.

  3. Configure a sub-interface to transmit services based on the service type.

    • Layer 2 Sub-interface

      When configuring a Layer 2 sub-interface, you only need to configure a sub-interface for termination.

      VLAN packets are classified into Dot1q packets (one layer of VLAN tag) and QinQ packets (double layers of tags). Accordingly, there are two VLAN tag termination modes. Dot1q termination terminates Dot1q packets and QinQ termination terminates QinQ packets. Run either of the following commands to configure a sub-interface for termination based on site requirements.

      • Run:
        dot1q termination vid low-pe-vid [ to high-pe-vid ]

        The allowed VLAN is configured on the sub-interface for dot1q VLAN termination.

      • Run:
        qinq termination pe-vid pe-vid ce-vid ce-vid1 [ to ce-vid2 ]

        The allowed VLAN is configured on the sub-interface for qinq VLAN termination.

    • Layer 3 Sub-interface(IPv4)

      1. Run:

        ip address ip-address { mask | mask-length } [ sub ]

        The IP address of the sub-interface is configured.

        NOTE:

        Specify the sub parameter when you need to configure a secondary IP address for the sub-interface.

      2. Configure a sub-interface for termination.

        VLAN packets are classified into Dot1q packets (one layer of VLAN tag) and QinQ packets (double layers of tags). Accordingly, there are two VLAN tag termination modes. Dot1q termination terminates Dot1q packets and QinQ termination terminates QinQ packets. Run either of the following commands to configure a sub-interface for termination based on site requirements.

        • Run:
          dot1q termination vid low-pe-vid [ to high-pe-vid ]

          The allowed VLAN is configured on the sub-interface for dot1q VLAN termination.

        • Run:
          qinq termination pe-vid pe-vid ce-vid ce-vid1 [ to ce-vid2 ]

          The allowed VLAN is configured on the sub-interface for qinq VLAN termination.

      3. Run:

        arp broadcast enable

        The ARP broadcast function is enabled on the sub-interface.

        NOTE:

        When you enable or disable the ARP broadcast function on a sub-interface, the routing status of the sub-interface becomes Down and then Up. This result in flapping of routes on the entire network, affecting the normal operation of services.

    • Layer 3 Sub-interface(IPv6)

      1. Configure a sub-interface for termination.

        VLAN packets are classified into Dot1q packets (one layer of VLAN tag) and QinQ packets (double layers of tags). Accordingly, there are two VLAN tag termination modes. Dot1q termination terminates Dot1q packets and QinQ termination terminates QinQ packets. Run either of the following commands to configure a sub-interface for termination based on site requirements.

        • Run:
          dot1q termination vid low-pe-vid [ to high-pe-vid ]

          The allowed VLAN is configured on the sub-interface for dot1q VLAN termination.

        • Run:
          qinq termination pe-vid pe-vid ce-vid ce-vid1 [ to ce-vid2 ]

          The allowed VLAN is configured on the termination sub-interface for qinq VLAN termination.

      2. Run
        ipv6 enable

        The IPv6 service is enabled on the sub-interface.

      3. Run
        ipv6 address { ipv6-address prefix-length |ipv6-address/prefix-length }

        The global unicast IPv6 address is configured for the termination sub-interface.

      4. Run
        ipv6 nd ns multicast-enable

        A termination sub-interface is enabled from sending NS multicast packets.

Checking the Configuration

  • Run the display interface [ interface-type [ interface-number [.subnumber ] ] ] command to check the status of a specified sub-interface.
  • Run the display dot1q information termination [ interface interface-type interface-number [.subinterface-number ] ] command to check names of all interfaces configured with dot1q VLAN tag termination and the sub-interface configuration.
  • Run the display qinq information termination [ interface interface-type interface-number [.subinterface-number ] ] command to check names of all interfaces configured with QinQ VLAN tag termination and the sub-interface configuration.
Translation
Download
Updated: 2019-04-18

Document ID: EDOC1000141901

Views: 18479

Downloads: 79

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next