Fat AP and Cloud AP V200R019C00 Command Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.

port link-type

port link-type

Function

The port link-type command sets the link type of an interface.

The undo port link-type command restores the default link type of an interface.

By default, the link type of an interface is hybrid.

Format

port link-type { access | hybrid | trunk }

undo port link-type

Parameters

Parameter

Description

Value

access

Sets the link type of an interface to access.

-

hybrid

Sets the link type of an interface to hybrid.

-

trunk

Sets the link type of an interface to trunk.

-

Views

GE interface view, Eth-Trunk interface view, MultiGE interface view, XGE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Characteristics of different interfaces are:
  • An access interface connects to a user device. It can connect only to an access link, and Ethernet frames transmitted on the access link are untagged. An access interface adds a VLAN tag to packets and sets the VID field in the VLAN tag to the default VLAN ID. The access link transmits only the packets with the default VLAN ID.
  • A trunk interface connects to a wireless access point and can connect only to a trunk link. A trunk interface allows frames from multiple VLANs to pass.
  • A hybrid interface can connect to either a user device or a wireless access point, and it can connect to an access link or a trunk link. A hybrid interface allows frames from multiple VLANs to pass and can remove VLAN tags of outgoing frames.

Prerequisites

Before changing the interface type, restore the default VLAN configuration of the interface so that the interface belongs to only VLAN 1.

Follow-up Procedure

Add the interface to VLANs.

Precautions

If you run the port link-type command multiple times in the same interface view, only the latest configuration takes effect.

Example

# Set the link type of GE0/0/1 to trunk.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
Translation
Favorite
Download
Update Date:2021-11-18
Document ID:EDOC1100096311
Views:4161303
Downloads:1256
Average rating:0.0Points

Digital Signature File

digtal sigature tool