4 displaying vlan information, Show vlan – Planet Technology SGSD-1022 User Manual

Page 574

Advertising
background image

User’s Manual of SGSD-1022 / SGSD-1022P

SGSW-2840 / SGSW-2840P

574

VLANs for that same interface.

Example

The following example shows how to prevent port 1 from being added to VLAN 3:

Console(config)#interface ethernet 1/1

Console(config-if)#switchport forbidden vlan add 3

Console(config-if)#

5.21.4 Displaying VLAN Information

Command

Function

Mode

show vlan

Shows VLAN information

NE, PE

show interfaces status vlan

Displays status for the specified VLAN interface

NE, PE

show interfaces switchport

Displays the administrative and operational status of an

interface

NE, PE

Table 5-70 Show VLAN Command

show vlan

This command shows VLAN information.

Syntax

show vlan [id vlan-id | name vlan-name]

id - Keyword to be followed by the VLAN ID. vlan-id - ID of the configured VLAN. (Range: 1-4094, no leading zeroes)

name - Keyword to be followed by the VLAN name.

vlan-name -ASCII string from 1 to 32 characters.

Default Setting

Shows all VLANs.

Command Mode

Normal Exec, Privileged Exec

Example

The following example shows how to display information for VLAN 1:

Console#show vlan id 1

Default VLAN ID : 1

VLAN ID:

1

Type:

Static

Advertising