D-Link DES-7200 Refrigerator User Manual


  Open as PDF
of 1968
 
DES-7200 Configuration Guide Chapter 1 Interface Configuration
1-8
DES-7200# configure terminal
DES-7200(config)# interface range fastethernet 1/1-5, 1/7-8
DES-7200(config-if-range)# no shutdown
DES-7200(config-if-range)#
1.2.3.2 Configuring and Using Macro
Definition for Interface Range
You can define a macro instead of inputting port ranges. However, you have to
define macros using the define interface-range command in the global
configuration mode before using the macro keyword of the interface range
command.
Command Function
DES-7200(config)# define
interface-range macro_name
interface-range
Define a macro for interface range.
Name of the macro, up to 32 characters.
A macro can define multiple interface
ranges.
The interfaces in all ranges in the same
macro must be of the same type.
DES-7200(config)# interface range
macro macro_name
The string defined by the macro will be
saved in the memory. When you use the
interface range command, you can use the
macro name to replace the interface-range
string.
To delete a macro, use the no define interface-range macro_name command
in the global configuration mode.
When defining an interface range using the define interface-range command,
you should pay attention to the range format.
A valid range format is:
vlan vlan-ID - vlan-ID, with VLAN ID in the range of 1 to 4094;
fastethernet slot/{the first port} - { the last port};
gigabitethernet slot/{the first port} - { the last port};
Aggregate Port Aggregate port number, with Aggregate port number in the
range of 1 to MAX.
Interfaces contained in an interface range must be of the same type, that is,
they should be all switch ports, aggregate ports or SVIs.
This example defines a macro for fastethernet1/1-4 by using the define
interface-range command:
DES-7200# configure terminal