Switchport, Switchport, v, Chport – Brocade Network OS Command Reference v4.1.0 User Manual

Page 1308: Itchport

Advertising
background image

1270

Network OS Command Reference

53-1003115-01

switchport

2

switchport

Puts the interface in Layer 2 mode.

Synopsis

switchport

no switchport

Operands

None

Defaults

All Layer 2 interfaces are mapped to default VLAN 1 and the interface is set to access mode.

Command Modes

Interface subtype configuration mode

Description

Use this command to put the interface in Layer 2 mode and to set the switching characteristics of
the Layer 2 interface.

Usage Guidelines

For changing the interface configuration mode to trunk or changing the default VLAN mapping,
use additional switchport commands.

Enter no switchport to take the switch out of the Layer 2 mode.

Examples

To put a specific 10-gigabit Ethernet interface in Layer 2 mode:

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

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

To remove a specific port-channel interface from Layer 2 mode:

switch(config)# interface port-channel 44

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

See Also

interface, show vlan, switchport mode, switchport access, switchport trunk allowed vlan
rspan-vlan

Advertising