< Home

port hybrid pvid

Function

The port hybrid pvid command sets the default VLAN ID of the hybrid port.

The undo port hybrid pvid command restores the default VLAN ID of the hybrid port.

Format

port hybrid pvid vlan vlan-id

undo port hybrid pvid vlan

Parameters

Parameter Description Value
vlan vlan-id Specifies the default VLAN ID of the hybrid port. The value is an integer ranging from 1 to 4094.

Views

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

Default Level

2: Configuration level

Usage Guidelines

This command can be configured only when link-type of the Layer 2 Ethernet interface is set to hybrid by running the port link-type command.

Before the configuration, ensure that the VLAN already exists; otherwise, the system displays a message indicating that the input VLAN does not exist.

Example

# Set the default VLAN ID of the hybrid port, GigabitEthernet 0/0/1, to 2.

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