HP FlexNetwork 5130 HI series Command Reference Manual page 221

Layer 2 - lan switching
Table of Contents

Advertisement

You can configure the specified VLANs as secondary VLANs before or after you execute the port
private-vlan trunk secondary command.
This command does not take effect on the specified VLAN if any of the following conditions applies:
The specified VLAN does not exist.
The specified VLAN is not a secondary VLAN and is used for other purposes.
The specified VLAN shares the same primary VLAN with other secondary VLANs, and the
current port has been configured as a trunk secondary port in one of the other secondary
VLANs.
The port private-vlan trunk secondary command is mutually exclusive with the port private-vlan
host, port private-vlan promiscuous, and port private-vlan trunk promiscuous commands.
If multiple secondary VLANs associated with different primary VLANs need to pass through the
downlink port, use the port private-vlan trunk secondary command to assign the port to these
secondary VLANs. The port can then transmit packets from these secondary VLANs with VLAN
tags.
If only one secondary VLAN needs to pass through the downlink port, use the port private-vlan
host command to assign the port to the secondary VLAN. The port can then transmit packets from
the secondary VLAN without VLAN tags.
Examples
In this example, VLANs 2 and 3 are primary VLANs. VLAN 2 is associated with secondary
VLAN 20. VLAN 3 is associated with secondary VLAN 30.
# Display information about GigabitEthernet 1/0/1.
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
#
return
# Configure GigabitEthernet 1/0/1 as a trunk secondary port of VLANs 20 and 30, and then
verify the configuration.
[Sysname-GigabitEthernet1/0/1] port private-vlan 20 30 trunk secondary
[Sysname-GigabitEthernet1/0/1] display this
#
interface GigabitEthernet1/0/1
port link-type hybrid
port hybrid vlan 2 3 20 30 tagged
port hybrid vlan 1 untagged
port private-vlan 20 30 trunk secondary
#
return
The output shows that:
The port link type of GigabitEthernet 1/0/1 is hybrid.
GigabitEthernet 1/0/1 is a tagged member of VLANs 2, 3, 20, and 30.
GigabitEthernet 1/0/1 is a trunk secondary port of VLANs 20 and 30.
# Execute the undo port private-vlan trunk secondary command on GigabitEthernet 1/0/1,
and then verify the configuration.
[Sysname-GigabitEthernet1/0/1] undo port private-vlan 20 30 trunk secondary
[Sysname-GigabitEthernet1/0/1] display this
#
213

Advertisement

Table of Contents
loading

Table of Contents