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

Troubleshooting Guide

CloudEngine 16800, 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches

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).
How Do I Configure the Link Type of an Interface?

How Do I Configure the Link Type of an Interface?

Descriptions of link types

Table 22-71 Link types and applications

Type

Usage Scenario

Access

An access interface on a switch is used to connect a user host. The access interface sends only untagged Ethernet frames to the remote device.

Trunk

A trunk interface on a switch is used to connect to another switch. The trunk interface allows Ethernet frames from multiple VLANs to pass.

Hybrid

A hybrid interface on a switch can connect either to a host or to another switch. The hybrid interface allows Ethernet frames from multiple VLANs to pass, and can be configured to determine whether the Ethernet frames from the outbound interface carry tags.

Configurations of link types

The following provides configuration examples of three link types. By default, the link type of an interface is access.

  • Access interface
    <HUAWEI> system-view
    [~HUAWEI] vlan batch 3
    [*HUAWEI] interface 10ge 1/0/1
    [*HUAWEI-10GE1/0/1] port link-type access  //Set the link type to access.
    [*HUAWEI-10GE1/0/1] port default vlan 3  //Set the default VLAN ID of the access interface to 3.
    [*HUAWEI-10GE1/0/1] quit
    [*HUAWEI] commit
  • Trunk interface
    <HUAWEI> system-view
    [~HUAWEI] vlan batch 10 to 30
    [*HUAWEI] interface 10ge 1/0/1
    [*HUAWEI-10GE1/0/1] port link-type trunk  //Set the link type to trunk.
    [*HUAWEI-10GE1/0/1] port trunk allow-pass vlan 10 to 30  //Set the range of VLANs allowed by the trunk interface to 10-30.
    [*HUAWEI-10GE1/0/1] quit
    [*HUAWEI] commit
  • Hybrid interface
    <HUAWEI> system-view
    [~HUAWEI] vlan batch 3 to 9
    [*HUAWEI] interface 10ge 1/0/1
    [*HUAWEI-10GE1/0/1] port link-type hybrid  //Set the link type to hybrid.
    [*HUAWEI-10GE1/0/1] port hybrid untagged vlan 3 to 5  //Set the range of VLANs allowed by the hybrid interface in untagged mode to 3-5.
    [*HUAWEI-10GE1/0/1] port hybrid tagged vlan 6 to 9  //Set the range of VLANs allowed by the hybrid interface in tagged mode to 6-9.
    [*HUAWEI-10GE1/0/1] quit
    [*HUAWEI] commit
Translation
Download
Updated: 2020-01-07

Document ID: EDOC1000060766

Views: 608343

Downloads: 2951

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next