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


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


Configuration Guide - Ethernet Switching

S1720, S2700, S5700, and S6720 V200R012(C00 and C20)

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, VLAN aggregation, MUX VLAN, VLAN termination, Voice VLAN, VLAN mapping, QinQ, GVRP, VCMP, STP/RSTP/MSTP, VBST, SEP, RRPP, ERPS, LBDT, and Layer 2 protocol transparent transmission.
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).
Creating an Eth-Trunk Sub-interface

Creating an Eth-Trunk Sub-interface


To transmit both Layer 2 and Layer 3 services over the same physical link, create a sub-interface on a Layer 2 Eth-Trunk.

If Layer 2 switching devices belong to different VLANs and hosts in the VLANs need to communicate with each other, you need to create sub-interfaces on the Eth-Trunk connecting a Layer 3 device to a Layer 2 switching device, bind a VLAN to each sub-interface, and configure an IP address for each sub-interface.

After the configuration is complete, hosts in the VLANs can use these sub-interfaces to communicate with each other. Eth-Trunk sub-interfaces can be configured to terminate Dot1q and QinQ VLAN tags.

After Layer 2 Eth-Trunk sub-interfaces are configured, the Eth-Trunk provides Layer 2 functions and the sub-interfaces provide Layer 3 functions.


Only the S5720EI, S5720HI, S5730HI, S6720EI, S6720HI, and S6720S-EI support Eth-Trunk sub-interfaces.

Figure 3-21  Typical application scenario of Layer 2 Eth-Trunk sub-interfaces


  1. Run system-view

    The system view is displayed.

  2. Run interface eth-trunk trunk-id

    An Eth-Trunk is created and the Eth-Trunk interface view is displayed.

  3. Run quit

    The system view is displayed.

  4. Run interface eth-trunk trunk-id.subnumber

    An Eth-Trunk sub-interface is created.

    subnumber specifies the number of a sub-interface. The value is in the range 1 to 4096.

    • Only the S5720EI, S5720HI, S5730HI, S6720EI, S6720HI, and S6720S-EI support Ethernet sub-interfaces.

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

    • After an interface is added to an Eth-Trunk, sub-interfaces cannot be configured on the interface.

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

  5. Run ip address ip-address { mask | mask-length } [ sub ]

    An IP address is configured for the sub-interface.

    When configuring multiple IP addresses for an Eth-Trunk sub-interface, use the sub keyword to indicate the second and subsequent IP addresses.

Updated: 2018-12-24

Document ID: EDOC1100038339

Views: 166326

Downloads: 697

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