Configuring a Routed interface
Overview
All Ethernet ports of switch are Layer 2 interfaces by default. When you need to use an Ethernet port for Layer 3 communication, you can enable the Ethernet port as a routed interface. The routed interface is a Layer 3 interface which can be assigned an IP address and can be configured with a routing protocol to connect to other Layer 3 routing devices.
Procedure
Step1 In the configuration mode, set reserved VLANs for the use of routed interface.
set vlans reserved-vlan <reserved-vlan>
|
---|
Step2 Select a physical interface as the routed interface and specify a name.
set interface gigabit-ethernet <interface-name> routed-interface name <string>
The name must start with "rif-", for example, rif-ge1. |
---|
Step3 Enable the routed interface.
set interface gigabit-ethernet <interface-name> routed-interface enable true |
---|
Step4 Configure an IP address for the routed interface.
set l3-interface routed-interface <string> address <ipv4-address | ipv6-address> prefix-length <prefix-number>
|
---|
Step5 Commit the configuration.
commit |
---|
Verifying the Configuration
After the configuration is completed, in the configuration mode, use run show l3-interface routed-interface <interface-name> command to view the state, IP address, MAC address, VLAN, MTU, description and traffic statistics.
Other Configurations
To disable the routed interface, use set interface gigabit-ethernet <interface-name> command.
Copyright © 2024 Pica8 Inc. All Rights Reserved.