Configuration Guide
Interface Configuration
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
Ruijie(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.
Ruijie(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 i
nterface 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:
Ruijie#
configure terminal
Ruijie(config)#
define interface-range resource
fastethernet
1/1-4
Ruijie(config)#
end
This example defines a macro for multiple ranges:
Ruijie#
configure terminal
Ruijie(config)#
define interface-range
ports1to2N5to7
fastethernet
1/1-2, 1/5-7
Ruijie(config)#
end
Содержание RG-S2900G-E Series
Страница 1: ...RG S2900G E Series Switch RGOS Configuration Guide Release 10 4 2b12 p1 ...
Страница 91: ...Configuration Guide Configuring PoE Configuration ...
Страница 133: ...Configuration Guide EEE Configuration ...
Страница 319: ...Configuration Guide QinQ Configuration ...
Страница 408: ......
Страница 409: ...IP Routing Configuration 1 Static Route Configuration ...
Страница 412: ......
Страница 413: ...Multicast Configuration 1 IGMP Snooping Configuration 2 MLD Snooping Configuration ...
Страница 621: ...Configuration Guide CPU Protection Configuration udp helper 180 4 dhcp client 180 4 lacp 180 4 ...
Страница 757: ......
Страница 758: ...ACL QoS Configuration 1 Access Control List Configuration 2 QoS Configuration ...
Страница 801: ...Reliability Configuration 1 RLDP Configuration 2 TPP Configuration 3 SEM Configuration ...
Страница 901: ...Configuration Guide ERSPAN Configuration ...
Страница 902: ...Web based Configuration 1 Web based Configuration ...