Switchport mode, Tchport mode, swit, T mode – Brocade Network OS Command Reference v4.1.0 User Manual
Page 1311: Chport mode, swit
Network OS Command Reference
1273
53-1003115-01
switchport mode
2
switchport mode
Sets the mode of the interface.
Synopsis
switchport mode {access | trunk}
Operands
access
Sets the Layer 2 interface as access.
trunk
Sets the Layer 2 interface as trunk.
Defaults
None
Command Modes
Interface subtype configuration mode
Description
Use this command to set the mode of the Layer 2 interface. Access mode assigns the port to a
VLAN (refer to the Usage Guidelines). Trunk mode makes the port linkable to other switches and
routers.
Usage Guidelines
You must configure the same native VLAN on both ends of an 802.1 or classified VLAN trunk link.
Failure to do so can cause bridging loops and VLAN leaks.
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.
Examples
To set the mode of a specific 10-gigabit Ethernet interface to access:
switch(config)# interface tengigabitethernet 178/0/9
switch(conf-if-te-178/0/9)# switchport mode access
To set the mode of a specific port-channel interface to trunk:
switch(config)# interface port-channel 44
switch(config-port-channel-44)# switchport mode trunk
See Also
interface, show vlan, switchport access, switchport trunk allowed vlan rspan-vlan, switchport