User`s manual

19
2.5.1 Entering Interface Numbers
In the Global Configuration Mode, you can configure a command that is only applied to
interfaces specified. For example, you can set up each interfaces VLAN assignment, speed,
or duplex mode. To configure, you must first enter the interface number. There are four ways
to enter your interface numbers to signify the combination of different interfaces that apply to
a command or commands.
Commands
Description
Switch(config)# interface 1
Switch(config-if-1)#
Enter a single interface. Only interface 1 will apply to
commands entered.
Switch(config)# interface 1,3,5
Switch(config-if-1,3,5)#
Enter three discontinuous interfaces, separating by a
comma. Interface 1, 3, 5 will apply to commands
entered.
Switch(config)# interface 1-3
Switch(config-if-1-3)#
Enter three continuous interfaces. Use a hyphen to
signify a range of interface numbers. In this example,
interface 1, 2, and 3 will apply to commands entered.
Switch(config)# interface 1,3-5
Switch(config-if-1,3-5)#
Enter a single interface number together with a range
of interface numbers. Use both commas and hyphens
o signify the combination of different interface
numbers. In this example, interface 1, 3, 4, 5 will apply
to commands entered.
The interface command can be used together with Loop Detection, QoS, VLAN and
Security commands. For detailed usages, please refer to Loop Detection, QoS, VLAN and
Security sections below.
2.5.2 No Command
Most commands that you enter in Configuration mode can be negated using no command
followed by the same or original command. The purpose of no command is to disable a
function, remove a command, or set the setting back to the default value. In each sub-section
below, the use of no command to fulfill different purposes will be introduced.
2.5.3 Show Command
The command show is very important for network administrators to get information about
the device, receive outputs to verify a commands configurations or troubleshoot a network
configuration error. Show command can be used in Privileged or Configuration mode. The
following describes different uses of show command.