beautypg.com

5 checking command syntax – Asante Technologies 35516 User Manual

Page 32

background image

- 32 -

terminal Configure from the terminal

Note that in the example below, if you enter the configure command followed by the Carriage Return (Enter or Return
key), you will be prompted that the command is incomplete.

Router# configure
% Command incomplete.
Router#

Generally, uppercase letters represent variables. For example, after entering a command, such as hostname, and
using a space and a question mark, you will be prompted for the new name, represented by WORD. In cases where
an IP address is the variable, the uppercase letters A.B.C.D will represent it.

Router(config)# hostname ?
WORD This system's network name

In the access list example below, two further options are listed after the question mark. You may enter an optional
source wildcard. The carriage return symbol () indicates a carriage return is needed to enter the command. More
information on access lists is found in Chapter 5.

Router(config)# access-list 99 deny 192.168.123.0 ?
A.B.C.D Source wildcard. e.g. 0.0.0.255

Router(config)# access-list 99 deny 192.168.123.0

3.5 Checking Command Syntax

The CLI user interface provides an error indicator, a caret symbol (^). The caret symbol appears at the point in the
command string where you have entered an incorrect letter, command, keyword, or argument.

In the following example, suppose you want to enable rip router:

Router(config)# routed rip

^

% Invalid input detected at '^' marker.

There is no command starting with “routed”, so the first invalid input is “d.” Hence, the indicated caret symbol (^)
marks the invalid input.

Router(config)# route
% Ambiguous command.
Router(config)#

In the example above, a command has been issued that is unknown or ambiguous.

Router(config)# router
% Command incomplete.
Router(config)#

In the example above, a command has been issued that is incomplete. In the following examples, various correct
commands (using route) are displayed.

Router(config)# route?
route-map Create route-map or enter route-map command mode
router Enable a routing process
Router(config)# route