R211x-HP Flexfabric 11900 Layer 2 - LAN Switching Command Reference
188
mdc-admin
Parameters
vlan-id: Specifies a VLAN ID in the range of 1 to 4094. Though VLAN 1 is in the valid value range, it
cannot be configured in the command.
Usage guidelines
If the port is an access port, the device changes the link type of the port to hybrid and configures the
specified VLAN as the PVID of the port. If the port is a trunk or hybrid port, the device does not change
the link type or PVID of the port.
If the port is originally a hybrid port, or if the port is a hybrid port changed from an access port by the
port private-vlan vlan-id promiscuous command, the system automatically assigns the port to the
primary VLAN and the associated secondary VLANs as an untagged member. If the port has been
assigned to some of the primary VLAN and secondary VLANs as a tagged member, the tagged member
attribute is not changed in these VLANs.
If the port has been configured to operate in promiscuous mode, the system automatically executes the
undo port private-vlan command and then the port private-vlan vlan-id promiscuous command.
When you execute the undo port private-vlan command on a port that is operating in promiscuous mode
in a VLAN, the command removes the port from the VLAN.
You can configure the VLAN as a primary VLAN before or after you execute the port private-vlan vlan-id
promiscuous command.
The port private-vlan vlan-id promiscuous command and the port private-vlan vlan-id-list trunk
promiscuous command are mutually exclusive.
Examples
# VLAN 2 is a primary VLAN, and it is associated with secondary VLAN 20. Configure the access port
Ten-GigabitEthernet 1/0/1 to operate in promiscuous mode in VLAN 2, and then cancel the
configuration.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] display this
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
#
return
[Sysname-Ten-GigabitEthernet1/0/1] port private-vlan 2 promiscuous
[Sysname-Ten-GigabitEthernet1/0/1] display this
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-type hybrid
port private-vlan 2 promiscuous
undo port hybrid vlan 1
port hybrid vlan 2 20 untagged
port hybrid pvid vlan 2
#
return










