beautypg.com

Switchport access, Switchport access, swi – Brocade Network OS Command Reference v4.1.0 User Manual

Page 1309

background image

Network OS Command Reference

1271

53-1003115-01

switchport access

2

switchport access

Sets the Layer 2 interface as access.

Synopsis

switchport access {vlan vlan_id | rspan-vlan vlan_id | mac HHHH.HHHH.HHHH | mac-group
mac-group-id}

no switchport access {vlan vlan_id | rspan-vlan vlan_id | mac HHHH.HHHH.HHHH | mac-group
mac-group-id}

Operands

vlan vlan_id

Sets the port VLAN (PVID) to the specified vlan_id. Refer to the
Usage Guidelines. Range is below 4096 for 802.1Q VLANs, and from 4096
through 8191 for service or transport VFs in a Virtual Fabrics context. (See
Usage Guidelines, below.)

rspan-vlan vlan_id

Sets a VLAN ID for RSPAN (Remote Switched Port Analyzer) traffic analysis.

mac HHHH.HHHH.HHHH

Sets a source MAC address for classifying an untagged VLAN specified by
the vlan keyword.

mac-group mac-group-id

(Optional) Specifies a set of MAC addresses. The group of addresses must
be established by the global mac-group command.

Defaults

All Layer 2 interfaces are in access mode and belong to the VLAN ID 1.

Command Modes

Interface subtype configuration mode on edge ports

Description

Use this command to set the Layer 2 interface as access. In access mode, the interface only
allows untagged and priority tagged packets.

In a Virtual Fabrics context, use this command also to configure service or transport VFs on an
access port. This allows multiple untagged VLANs on the port by means of SRC MAC classifiers.

Usage Guidelines

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.

Enter no switchport access vlan to set the PVID to the default VLAN 1.

Examples

To set the Layer 2 interface PVID to 100 on a specific 10-gigabit Ethernet interface:

switch(config)# interface tengigabitethernet 178/0/9

switch(conf-if-te-178/0/9)# switchport access vlan 100

To set the PVID to the default VLAN 1 on a specific port-channel interface:

switch(config)# interface port-channel 44

switch(config-port-channel-44)# no switchport access vlan