Configuring Routed Interface and Sub-interface
Configuring Routed Interface
Step 1Â Â Â Â Configure reserved VLAN for the use of routed interface.
  set vlans reserved-vlan <reserved-vlan>
Step 2Â Â Â Â Â Enable Ethernet port as a layer 3 routed interface.
  set interface gigabit-ethernet <interface-name> routed-interface enable <true | false>
  set interface gigabit-ethernet <interface-name> routed-interface name <string>
Step 3Â Â Â Â Â Run the following command to bring up the parent routed interface. Only after this, the corresponding sub-interfaces can be used normally.
   set l3-interface routed-interface <interface-name>
Step 4Â Â Â Â Â Enable IP routing to perform layer 3 forwarding.
   set ip routing enable true
Step 5Â Â Â Â Â Commit the configuration.
  commit
Configuring Sub-interface
Step 1Â Â Â Â Â Configure the VLAN.
  set vlans vlan-id <vlan-id>
Step 2Â Â Â Â Create sub-interface and configure its IP address.
  set interface gigabit-ethernet <interface-name> routed-interface sub-interface <sub-interface-name> vlan-id <vlan-id>
  set l3-interface routed-interface <interface-name> address <ip-address> prefix-length <prefix-number>
Step 3Â Â Â Â Â Commit the configuration.
  commit
(Optional) Other Settings for Routed Interface and Sub-interface
Step 1Â Â Â Â Â Configure the CPU egress rate limit for the routed interfaces and sub-interfaces.
  set l3-interface routed-interface <interface-name> rate-limit <rate-limit>
Step 2Â Â Â Â Â Configure the MTU for the routed interfaces. It is not supported to configure MTU on the sub-interfaces. The sub-interfaces use the MTU value configured on the parent interface.
  set l3-interface routed-interface <interface-name> mtu <mtu-value>
Step 3Â Â Â Â Â Bind the routed interface and sub-interface to the VRF.
  set l3-interface routed-interface <interface-name> vrf <vrf-name>
Step 4Â Â Â Â Â Commit the configuration.
  commit
Checking the Configuration
- Run the command run show vlans routed-vlan to check the VLAN information of the routed interfaces and sub-interfaces.
- Run the command run show interface routed-interface brief to check the brief interface information of the routed interfaces and sub-interfaces.
- Run the command run show l3-interface routed-interface <interface-name> to check the detailed layer 3 interface information of a specific routed interface or sub-interface.
Copyright © 2024 Pica8 Inc. All Rights Reserved.