Chapter 5

CLI – Layer 2

 

 

Clear vlan Command

Use the clear vlan command to delete an existing VLAN and return ports from this VLAN to the default VLAN #1. When you clear a VLAN, all ports assigned to that VLAN are assigned to the default VLAN #1.

The syntax for this command is:

clear vlan <vlan-id>[name<vlan_name>]

vlan_id

Number of the VLAN (range is 1to 3071).

vlan_name

VLAN name

Example:

This example shows how you can delete an existing VLAN (VLAN 5) from a management domain:

P330-N# clear vlan 5 name V5

This command will assign all ports on vlan 5 to their default in the entire management domain

- do you want to continue (Y/N)? y

All ports on vlan-id 5 assigned to default vlan.

VLAN 5 was deleted successfully.

Note: If you wish to define a name which includes spaces, you must enclose the entire name in quotation marks, e.g. "new york".

Clear dynamic vlans Command

Use the clear dynamic vlans command to clear dynamic vlans. Only the VLANs learned by the module from incoming traffic are cleared using this command.

The syntax for this command is:

clear dynamic vlans

Example:

P330-N# clear dynamic vlans

This command will delete all the vlans that were dynamically learned by the device - do you want to continue (Y/N)?

80

P332G-ML User’s Guide

Page 98
Image 98
Avaya P332G-ML manual Clear vlan Command, Clear vlan vlan-idnamevlanname, Clear dynamic vlans Command