Alcatel Carrier Internetworking Solutions omniswitch Switch User Manual


 
CLI Services Using the CLI
page 5-12 OmniSwitch 6600 Family Switch Management Guide March 2005
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.
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 show prefix command. If you issue this command when
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.
Task CLI Syntax
1. Create a VLAN with an identification number of 501. vlan 501 enable
2. Enable the spanning tree protocol for VLAN 501. vlan 501 stp enable
3. Enable authentication for VLAN 501. vlan 501 authentication enable