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>

  • reserved-vlan <reserved-vlan>: specifies the reserved VLANs. The valid VLAN numbers range is 2-4094. User can specify a range of VLAN numbers, e.g. 2,3,50-100. System supports up to 128 reserved VLANs.

set vlans reserved-vlan <reserved-vlan>

  • reserved-vlan <reserved-vlan>: specifies the reserved VLANs. The valid VLAN numbers range is 2-4094. User can specify a range of VLAN numbers, e.g. 2,3,50-100. System supports up to 128 reserved VLANs.

Step2         Select a physical interface as the routed interface and specify a name.

set interface gigabit-ethernet <interface-name> routed-interface name <string>

  • routed-interface name <string>: specifies a routed interface name.

The name must start with "rif-", for example, rif-ge1.

set interface gigabit-ethernet <interface-name> routed-interface name <string>

  • routed-interface name <string>: specifies a routed interface name.

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

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>

  • prefix-length <prefix-number>: specifies the network prefix length. The range is 4-32 for IPv4 address, and 1-128 for IPv6 address.

set l3-interface routed-interface <string> address <ipv4-address | ipv6-address> prefix-length <prefix-number>

  • prefix-length <prefix-number>: specifies the network prefix length. The range is 4-32 for IPv4 address, and 1-128 for IPv6 address.

Step5         Commit the configuration.

commit

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.