Port-Based Vlan Commands; Display Port - HP 12500 Series Command Reference Manual

Routing, layer 2 - lan switching
Table of Contents

Advertisement

Default
VLAN 1 (the default VLAN) exists.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
vlan-id1, vlan-id2: Specifies a VLAN ID in the range of 1 to 4094.
vlan-id1 to vlan-id2: Specifies a VLAN range. The vlan-id1 and vlan-id2 arguments specify VLAN
IDs and are in the range of 1 to 4094. The vlan-id1 argument cannot be greater than vlan-id2.
all: Creates or removes all VLANs except reserved VLANs.
Usage guidelines
You cannot create or remove the default VLAN (VLAN 1).
You cannot create or remove VLANs that are reserved for specific functions.
You cannot use the undo vlan command to delete a dynamic VLAN, a VLAN with a QoS policy
applied, or a VLAN locked by an application. To delete such a VLAN, first remove the configuration
from the VLAN.
Examples
# Create VLAN 2 and enter its view.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2]
# Create VLAN 4 through VLAN 100.
<Sysname> system-view
[Sysname] vlan 4 to 100
Related commands
display vlan

Port-based VLAN commands

display port

Use display port to display information about the hybrid or trunk ports on the device, including the
port names, PVIDs, and allowed VLAN IDs.
Syntax
display port { hybrid | trunk }
Views
Any view
105

Advertisement

Table of Contents
loading

Table of Contents