2-52
Cisco ME 3800X and ME 3600X Switch Command Reference
OL-28238-01
Chapter 2 Cisco ME 3800X and ME 3600X Switch Cisco IOS Commands
define interface-range
define interface-range
To create an interface-range macro, use the define interface-range command in global configuration
mode. To delete the defined macro, use the no form of this command.
define interface-range macro-name interface-range
no define interface-range macro-name interface-range
Syntax Description
Defaults This command has no default setting.
Command Modes Global configuration
Command History
Usage Guidelines The macro name is a 32-character maximum character string.
A macro can contain up to five ranges.
All interfaces in a range must be the same type; that is, all Gigabit Ethernet ports, all TenGigabit Ethernet
ports, all EtherChannel ports, or all VLANs, but you can combine multiple interface types in a macro.
When entering the interface-range, use this format:
• type {first-interface} - {last-interface}
• You must add a space between the first interface number and the hyphen when entering an
interface-range. For example, gigabitethernet 0/1 - 2 is a valid range; gigabitethernet 0/1-2 is not
a valid range
Valid values for type and interface:
• vlan vlan-id, where vlan-id is from 1 to 4094
VLAN interfaces must have been configured with the interface vlan command (the show
running-config privileged EXEC command displays the configured VLAN interfaces). VLAN
interfaces not displayed by the show running-config command cannot be used in interface-ranges.
• port-channel port-channel-number, where port-channel-number is from 1 to 48
• gigabitethernet module/{first port} - {last port}
• tengigabitethernet module/{first port} - {last port}
macro-name Name of the interface-range macro; up to 32 characters.
interface-range Interface range; for valid values for interface ranges, see “Usage Guidelines.”
Release Modification
12.2(52)EY This command was introduced.