EasyManua.ls Logo

Ruijie RG-S2900G-E Series - Page 145

Ruijie RG-S2900G-E Series
943 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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 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:
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

Table of Contents

Related product manuals