VLAN Commands

Syntax

switchport access vlan {vlan-iddynamic}

no switchport access vlan

Parameters

vlan-id— Specifies the ID of the VLAN to which the port is configured.

dynamic—Indicates that the port is assigned to a VLAN based on the source MAC address of the host connected to the port.

Default Configuration

All ports belong to VLAN 1.

Command Mode

Interface configuration (Ethernet, port-channel) mode

User Guidelines

The command automatically removes the port from the previous VLAN and adds it to the new VLAN.

Example

The following example configures a VLAN ID of 23 to the untagged layer 2 VLAN Ethernet port 1.

Console(config)# interface ethernet ext.1

Console(config-if)#switchport access vlan 23

switchport trunk allowed vlan

The switchport trunk allowed vlan Interface Configuration mode command adds or removes VLANs to or from a trunk port.

Syntax

switchport trunk allowed vlan {add vlan-listremove vlan-list}

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

361

Page 377
Image 377
Intel SBCEGBESW10 CLI manual Switchport trunk allowed vlan, All ports belong to Vlan