The do Command
Enter an EXEC mode command from any CONFIGURA TION mode (CONFIGURATION, INTERFACE,
SPANNING TREE, etc.) without returning to EXEC mode by preceding the EXEC mode command with
the command
Note: The following commands cannot be modified by the do command: enable, disable, exit, and
configure.
Figure 2-4. Using the do Command
FTOS(conf)#do show linecard all
--
Line cards
Slot
Status
---------------------------------------------------------------------------
0
not present
1
not present
2
online
3
not present
4
not present
5
online
Undoing Commands
When you enter a command, the command line is added to the running configuration file. Disable a
command and remove it from the running-config by entering the original command preceded by the
command
ip-address
Note: Use the help or ? command as discussed in
"no" form of a command.
Figure 2-5. Undoing a command with the no Command
FTOS(conf)#interface gigabitethernet 4/17
FTOS(conf-if-gi-4/17)#ip address 192.168.10.1/24
FTOS(conf-if-gi-4/17)#show config
!
interface GigabitEthernet 4/17
ip address 192.168.10.1/24
no shutdown
FTOS(conf-if-gi-4/17)#no ip address
FTOS(conf-if-gi-4/17)#show config
!
interface GigabitEthernet 4/17
Layer 2 protocols are disabled by default. Enable them using the
PROTOCOL SPANNING TREE mode, enter
36
|
Configuration Fundamentals
.
Figure 2-4
illustrates the
do
--
NxtBoot
online
online
. For example, to delete an ip address configured on an interface, use the
no
command, as shown in
IP address removed
command.
do
"do" form of show command
ReqTyp
CurTyp
Version
E48TB
E48TB
1-1-463
E48VB
E48VB
1-1-463
Figure
2-5.
Obtaining Help
IP address assigned
"no" form of IP address command
to enable Spanning Tree.
no disable
Ports
48
48
no ip address
command to help you construct the
command. For example, in
no disable