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 Change the Link Type of an Interface?
The link type of an interface can be access, trunk, hybrid, or dot1q-tunnel.
Run the port link-type { access | trunk | hybrid | dot1q-tunnel } command and enter y or n as prompted. When the interface uses the default
VLAN configuration, the system does not display any message. The link
type of the interface is changed directly.
- When you enter y and press Enter, the device automatically deletes the non-default VLAN configuration of the interface and sets the link type of the interface to the specified one.
- When you enter n and press Enter, the device retains the current link type and VLAN configuration of the interface.
<HUAWEI> system-view [HUAWEI] interface GigabitEthernet1/0/1 [HUAWEI-GigabitEthernet1/0/1] port link-type hybrid Warning: This command will delete VLANs on this port. Continue?[Y/N]:y Info: This operation may take a few seconds. Please wait for a moment...done.