Configuration Commands

VLAN configuration

The commands in this section configure VLAN attributes, change the status of the VLAN, delete the VLAN, and change the port membership of the VLAN.

By default, the VLANs are disabled except VLAN 1, which is always enabled. The switch supports a maximum of 1,000 VLANs. VLAN 4095 is reserved for switch management.

NOTE: See the HP 10Gb Ethernet BL-c Switch Application Guide for information about VLANs.

The following table describes the VLAN Configuration commands.

Table 117 VLAN Configuration commands

 

Command

Description

 

 

 

 

 

vlan {<1-4094>}

Enter VLAN configuration mode.

 

 

Command mode: Global configuration

 

 

 

 

 

name {<1-32 characters>}

Assigns a name to the VLAN or changes the existing name. The default

 

 

VLAN name is the first one.

 

 

Command mode: VLAN configuration

 

 

 

 

 

stg {<1-127>}

Assigns a VLAN to a spanning tree group. If MSTP is used, the range

 

 

is 0-32 (0 = CIST).

 

 

Command mode: VLAN configuration

 

 

 

 

 

member {<port number>}

Adds ports to the VLAN membership.

 

 

Command mode: VLAN configuration

 

 

 

 

 

no member {<port number>}

Removes ports from the VLAN membership.

 

 

Command mode: VLAN configuration

 

 

 

 

 

enable

Enables this VLAN.

 

 

Command mode: VLAN configuration

 

 

 

 

 

no enable

Disables this VLAN without removing it from the configuration.

 

 

Command mode: VLAN configuration

 

 

 

 

 

no vlan {<1-4094>}

Deletes this VLAN.

 

 

Command mode: Global configuration

 

 

 

 

 

show vlan [<1-4095>]

Displays the current VLAN configuration.

 

 

Command mode: All

 

 

 

 

 

 

 

 

IMPORTANT: All ports must belong to at least one VLAN. Any port which is removed from a VLAN and which is not a member of any other VLAN is automatically added to default VLAN 1. You cannot remove a port from VLAN 1 if the port has no membership in any other VLAN. Also, you cannot add a port to more than one VLAN unless the port has VLAN tagging turned on.

141

Page 141
Image 141
HP 445942-001 manual Vlan configuration, Stg, Member port number, No member port number