Example For Using Prefix Recognition - Alcatel-Lucent OmniSwitch AOS Release 6 Manual

Omniswitch series
Table of Contents

Advertisement

CLI Services

Example for Using Prefix Recognition

This example shows how the Prefix Recognition feature is used for entering multiple commands that have
the same prefix. This table lists the tasks to be accomplished in this example and the CLI syntax required
for each task.
Task
1. Create a VLAN with an identification number of 501.
2. Enable the spanning tree protocol for VLAN 501.
3. Enable authentication for VLAN 501.
To create VLAN 501 and configure its attributes using the CLI commands, you could enter the vlan 501
prefix three times. However, VLAN commands support the prefix recognition capability so redundant
entry of this prefix is not necessary.
For example, when you enter
-> vlan 501 enable
the CLI will automatically store the prefix vlan 501. Now, if you enter a related command for the same
VLAN, you are only required to enter suffix information. In this case, you can enter the commands to
accomplish tasks 2, and 3 as follows:
-> stp enable
-> authentication enable
Prefix information will be remembered by the CLI until you enter a command with a new prefix.
Note. If you want to create or configure another VLAN, you must reenter the full command prefix,
including the new VLAN ID.
Show Prefix
You can view the current prefix by issuing the
the prefix stored by the CLI is vlan 501 the following will display.
-> show prefix
Current prefix: vlan 501
If you issue the show prefix command when there is no prefix stored by the CLI, a "no prefix" message
will display.
page 6-12
CLI Syntax
vlan 501 enable
vlan 501 stp enable
vlan 501 authentication enable
show prefix
command. If you issue this command when
OmniSwitch AOS Release 6 Switch Management Guide
Using the CLI
July 2010

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omniswitch aos 6

Table of Contents