set interface gigabit-ethernet routed-interface sub-interface


The set interface gigabit-ethernet routed-interface sub-interface command creates a sub-interface. When creating a sub-interface, VLAN ID needs to be specified at the same time.


Command Syntax

set interface gigabit-ethernet <interface-name> routed-interface sub-interface <sub-interface-name> vlan-id <vlan-id>


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.

sub-interface <sub-interface-name>

Specifies the sub-interface name. The value could be up to 15 alphanumeric characters (including three special characters . – and @).

NOTE:

To avoid conflict with the preserved interface names, the routed interface name and sub-interface name must start with the string "rif-". Otherwise, commit will fail with the error message "The name of interface must start with "rif-".

vlan-id <vlan-id>

Specifies the VLAN ID. The value is an integer that ranges from 2 to 4094.


Usage Guidelines

Pay attention to the following precautions before configuring the sub-interfaces:

  • Enable the Ethernet port as a routed interface before configuring the sub-interfaces.
  • Define the VLAN ID by using the command set vlans vlan-id <vlan-id> before configuring the sub-interface and adding to VLAN.
  • The IP address for each sub-interface should be in a different subnet from all the other sub-interfaces under that parent interface. That is, the IP subnets of all the sub-interfaces should be unique under the same parent interface.
  • It is not supported to configure MTU on the sub-interfaces. The sub-interfaces use the MTU value configured on the parent interface.
  • On greyhound2 switches (including Dell N22xx series switches and N3208PX-ON), the sub-interface does not support user defined VRF and can only be used in the default VRF.
  • The sub-interface of LAG port does not support user defined VRF and can only be used in the default VRF.


Example

  • Create a sub-interface and add to VLAN 10.
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 rif-te4
admin@Xorplus# set interface gigabit-ethernet te-1/1/4 routed-interface sub-interface rif-te4.1 vlan-id 10
admin@Xorplus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.