VLAN Commands

switchport mode

The switchport mode Interface Configuration mode command configures the VLAN membership mode of a port. To return to the default configuration, use the no form of this command.

Syntax

switchport mode {access trunk general}

no switchport mode

Parameters

access — Indicates an untagged layer 2 VLAN port.

trunk — Indicates a trunking layer 2 VLAN port.

general — Indicates a full 802-1q supported VLAN port.

Default Configuration

All ports are in access mode, and belong to the default VLAN (whose VID=1).

Command Mode

Interface Configuration (Ethernet, port-channel) mode

User Guidelines

There are no user guidelines.

Example

The following example configures Ethernet port 1 as an untagged layer 2 VLAN port.

Console(config)# interface ethernet ext.1

Console(config-if)#switchport mode access

switchport access vlan

The switchport access vlan Interface Configuration mode command configures the VLAN ID when the interface is in access mode. To return to the default configuration, use the no form of this command.

360Intel® Blade Server Ethernet Switch Modules SBCEGBESW1 and SBCEGBESW10 CLI Guide

Page 376
Image 376
Intel SBCEGBESW10 CLI manual Switchport access vlan, Switchport mode access trunk general No switchport mode