interface fastEthernet 0/1
Switch(config-if)#)
Did you notice that the prompt changed to
Switch(config-if)#
? This tells you that
you’re in interface configuration mode. And wouldn’t it be nice if the prompt also gave you
an indication of what interface you were configuring? Well, at least for now we’ll have to
live without the prompt information, because it doesn’t. But it should already be clear to
you that you really need to pay attention when configuring an IOS device!
Line Commands
To configure user-mode passwords, use the
line
command. The prompt then becomes
Switch(config-line)#
:
Switch(config)#
line ?
<0-16> First Line number
console Primary terminal line
vty Virtual terminal
Switch(config)#
line console 0
Switch(config-line)#
The
line console 0
command is a global command, and sometimes you’ll also hear
people refer to global commands as major commands. In this example, any command
typed from the
(config-line)
prompt is known as a subcommand.
Do'stlaringiz bilan baham: |