beautypg.com

Switchport private-vlan trunk allowed vlan – Brocade Network OS Command Reference v4.1.0 User Manual

Page 1323

background image

Network OS Command Reference

1285

53-1003115-01

switchport private-vlan trunk allowed vlan

2

switchport private-vlan trunk allowed vlan

Adds a VLAN to a private VLAN (PVLAN) trunk port.

Synopsis

switchport private-vlan trunk allowed vlan {all | none | [add | remove | except] vlan_id] ctag ctag}

no switchport private-vlan trunk allowed vlan vlan_id

Operands

all Allows

all

VLANs.

none

Removes all VLANs except for VLAN 1.

add

Adds a specified VLAN.

remove

Removes the specified VLAN.

except

Allows all VLANs except the specified VLAN.

vlan_id

Specifies a VLAN. Refer to the Usage Guideines.

ctag ctag

Specifies an incoming C-TAG that is associated with a service or transport
VF in a Virtual Fabrics context.

Defaults

The port will have default VLAN 1.

Command Modes

Interface subtype configuration mode

Description

This command adds a VLAN to PVLAN trunk port.

Usage Guidelines

Use the no form of this command to remove a VLAN or C-TAG from a trunk port.

On the Brocade VDX family of switches, VLANs are treated as interfaces from a configuration point
of view. By default, all the DCB ports are assigned to VLAN 1 (VLAN ID equals 1). Valid VLAN IDs
are as follows:

On Brocade VDX 8770 switches: 1 through 4086 for 802.1Q VLANs (VLAN IDs 4087
through 4095 are reserved on these switches) and 4096 through 8191 for service or
transport VFs in a Virtual Fabrics context.

On all other Brocade VDX switches: 1 through 3962 for 802.1Q VLANs (VLAN IDs 3963
through 4095 are reserved on these switches) and 4096 through 8191 for service or
transport VFs in a Virtual Fabrics context

For service or

transport VFs

(VLAN ID 4096

through 8191),

the C-TAG cannot

be a default

VLAN, a reserved

VLAN, and FCoE

VLAN, or an

internal control

VLAN.Examples

The following illustrates the configuration of PVLANs for both 802.1Q VLANs and service or
transport VFs in a Virtual Fabrics context.

Configure a PVLAN trunk port:

switch(config)# int te 4/1

switch(config-if-te-2/0/2)# switchport mode private-vlan trunk

Configure 802.1Q VLANs and service or transport VFs in a Virtual Fabrics context:

switch(config-if-te-2/0/2)# switchport private-vlan trunk allowed vlan add 400

switch(config-if-te-2/0/2)# switchport private-vlan trunk allowed vlan add 5000

ctag 100

Configure service or transport VFs as PVLANs, by using the switchport private-vlan association
command:

switch(config-if-te-2/0/2)# switchport private-vlan association trunk 6000 7000