set interface gigabit-ethernet routed-interface enable
The set interface gigabit-ethernet routed-interface enable command enables the Ethernet port as a layer 3 routed interface. All Ethernet ports are layer 2 interfaces by default.
The delete interface gigabit-ethernet routed-interface enable command restores the Ethernet port to a layer 2 interface.
Command Syntax
set interface gigabit-ethernet <interface-name> routed-interface enable <true | false>
Parameter
Parameter | Description |
gigabit-ethernet <interface-name> | Specifies a physical port name. The value is like ge-1/1/1, te-1/1/3, etc. |
enable <true | false> | Enables or disables the Ethernet port as a layer 3 routed interface. The value could be true or false.
All Ethernet ports are layer 2 interfaces by default. |
Usage Guidelines
Pay attention to the following precautions before configuring a routed interface:
When enabling an Ethernet port/LAG interface as a layer 3 routed interface, a name for the routed interface should be configured by using the command set interface gigabit-ethernet <interface-name> routed-interface name <string>. This name will be referred to as the “interface name” in other CLI commands.
Reserved VLANs need to be configured on the device before configuring the routed interface.
Routed interface is mutually exclusive with the following layer 2 features, you have to delete all of the following configurations on the interface before enabling it as a routed interface, otherwise the routed interface commands will fail to commit.
set interface gigabit-ethernet <interface-name> backup-port XX |
Besides the layer 2 features listed above, routed interface does not support Spanning Tree Protocol (STP) and MAC learning. However, the Layer 2 feature of LLDP is supported on an Ethernet port enabled as routed interface.
After a routed interface is enabled, you have to configure the following node to bring the routed interface up. Only after this, the corresponding sub-interfaces can be used normally.
set l3-interface routed-interface <interface-name>
The member port of a LAG port cannot be enabled as a routed interface, correspondingly, the physical port enabled as a routed interface cannot be configured as a LAG member port.
Example
- Enable the Ethernet port te-1/1/4 as a layer 3 routed interface.
admin@Xorplus# set interface gigabit-ethernet te-1/1/4 routed-interface enable true admin@Xorplus# set interface gigabit-ethernet te-1/1/4 routed-interface name te4 admin@Xorplus# commit
Copyright © 2025 Pica8 Inc. All Rights Reserved.