< Home

port link-type

Function

The port link-type command sets the type of a Layer 2 port.

The undo port link-type command restores the port type to the default.

Format

port link-type { access | hybrid | trunk }

undo port link-type

Parameters

Parameter Description Value

access

Specifies the access port.

-

hybrid

Specifies the hybrid port.

-

trunk

Specifies the trunk port.

-

Views

Layer 2 Ethernet interface view, Layer 2 Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

By default, the link-type of a Layer 2 port is hybrid.

Example

# Set the GigabitEthernet 0/0/1 to a trunk port.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/1
[sysname-GigabitEthernet0/0/1] port link-type trunk
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >