HP PC Blade Switch CLI Reference Guide
www.hp.com
28-7
VLAN Commands
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.
Syntax
switchport access
vlan {
vlan-id
| dynamic}
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 Setting
Odd ports 1-41, 42, 45, and 46 are all in VLAN 1. The remaining ports are in VLAN 2.
Command Mode
Interface configuration (Ethernet, port-channel) mode
Command Usage
The command automatically removes the port from the previous VLAN and adds it to the new
VLAN.
Example
The following command configures Ethernet port 1/e16 in access mode to be member of
VLAN 23.
Console(config)#
interface ethernet
1/e16
Console(config-if)#
switchport access vlan
23
Summary of Contents for Bc1500 - BladeSystem - Blade PC
Page 44: ...2 24 www hp com HP PC Blade Switch CLI Reference Guide 802 1x Commands ...
Page 90: ...5 22 www hp com HP PC Blade Switch CLI Reference Guide Address Table Commands ...
Page 140: ...8 24 www hp com HP PC Blade Switch CLI Reference Guide Ethernet Configuration Commands ...
Page 150: ...9 10 www hp com HP PC Blade Switch CLI Reference Guide GVRP Commands ...
Page 160: ...10 10 www hp com HP PC Blade Switch CLI Reference Guide IGMP Snooping Commands ...
Page 176: ...11 16 www hp com HP PC Blade Switch CLI Reference Guide IP Addressing Commands ...
Page 192: ...13 10 www hp com HP PC Blade Switch CLI Reference Guide Line Commands ...
Page 200: ...14 8 www hp com HP PC Blade Switch CLI Reference Guide Management ACL Commands ...
Page 206: ...15 6 www hp com HP PC Blade Switch CLI Reference Guide PHY Diagnostics Commands ...
Page 214: ...17 4 www hp com HP PC Blade Switch CLI Reference Guide Port Monitor Commands ...
Page 270: ...20 18 www hp com HP PC Blade Switch CLI Reference Guide RMON Commands ...
Page 360: ...24 16 www hp com HP PC Blade Switch CLI Reference Guide Syslog Commands ...