
PurposeCommand or Action
Verifies the configuration of the interfaces in the range.
show interfaces [interface-id]
Example:
Switch# show interfaces
Step 4
Configuring and Using Interface Range Macros
You can create an interface range macro to automatically select a range of interfaces for configuration. Before
you can use the macro keyword in the interface range macro global configuration command string, you
must use the define interface-range global configuration command to define the macro.
SUMMARY STEPS
1.
configure terminal
2.
define interface-range macro_name interface-range
3.
interface range macro macro_name
4.
end
5.
show running-config | include define
DETAILED STEPS
PurposeCommand or Action
Enters global configuration mode.configure terminal
Example:
Switch# configure terminal
Step 1
Defines the interface-range macro, and save it in NVRAM.
define interface-range macro_name
interface-range
Step 2
•
The macro_name is a 32-character maximum character string.
Example:
Switch(config)# define interface-range
•
A macro can contain up to five comma-separated interface
ranges.
enet_list gigabitethernet1/0/1 - 2
•
Each interface-range must consist of the same port type.
Before you can use the macro keyword in the interface
range macro global configuration command string, you must
use the define interface-range global configuration command
to define the macro.
Note
Catalyst 2960-X Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.0(2)EX
26 OL-29034-01
Configuring Interface Characteristics
Configuring and Using Interface Range Macros
Komentarze do niniejszej Instrukcji