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
The following table describes the VLAN Configuration commands.
Table 117 VLAN Configuration commands
| Command | Description | |
|
|
|
|
| vlan | Enter VLAN configuration mode. | |
|
| Command mode: Global configuration | |
|
|
|
|
| name | Assigns a name to the VLAN or changes the existing name. The default | |
|
| VLAN name is the first one. | |
|
| Command mode: VLAN configuration | |
|
|
|
|
| stg | Assigns a VLAN to a spanning tree group. If MSTP is used, the range | |
|
| is | |
|
| 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 | Deletes this VLAN. | |
|
| Command mode: Global configuration | |
|
|
|
|
| show vlan | 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