Command Reference Interface Commands
Ruijie(config-if-GigabitEthernet 1/2)#
The following example configuration mode on VLAN 1.
Ruijie(config)# interface vlan 1
Ruijie(config-if-VLAN 1)#
Use this command to enter interface configuration mode on multiple interfaces.
interface range { port-range | macro macro_name }
Use this command to define the macro name of the interface range command.
define interface-range macro_name
The interface type and ID range, entered in the form of interface-type
slot-number/interface-number. The interface can be either an
Ethernet physical interface or a loopback interface.
The macro name which represents the interface range.
The interface range command is disabled by default.
Global configuration mode
Use the define interface-range command to define a range of interfaces as the macro name and then
use the interface range macro macro_name command to enter interface configuration mode on
multiple interfaces.
The following example enters interface configuration mode on multiple interfaces by setting the
interface range.
Ruijie(config)# interface range gigabitEthernet 0/0, 0/2
Ruijie(config-if-range)# bandwidth 100
The following example enters interface configuration mode on multiple interfaces by defining the
macro name.
Ruijie(config)# define interface-range route1 gigabitEthernet 0/0-2
Ruijie(config)# interface range macro route1