Ethernet sub-interfaces are multiple logical interfaces configured on a main interface to allow the main interface to communicate with multiple remote interfaces. Ethernet sub-interfaces can share physical layer parameters of their main interface, or be configured with their respective link layer parameters and network layer parameters. Disabling or activating Ethernet sub-interfaces does not affect the main interface status, but the main interface status change affects the status of Ethernet sub-interfaces. Ethernet sub-interfaces work properly only when their main interface is in Up state. Associating an Ethernet sub-interface with a VLAN implements inter-VLAN communication and applies to Dot1q termination, QinQ termination and VXLAN scenarios.
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support Ethernet sub-interfaces.
After you run the undo portswitch command to switch Layer 2 interfaces on the preceding series of switches into Layer 3 interfaces, you can configure Ethernet sub-interfaces on the interfaces.
After an interface is added to an Eth-Trunk, sub-interfaces cannot be configured on the interface.
Before configuring an Ethernet sub-interface, properly connect the physical interface of the Ethernet sub-interface.
The system view is displayed.
The Ethernet sub-interface view is displayed.
subinterface-number specifies the number of an Ethernet sub-interface. mode l2 indicates that the sub-interface is configured to work in Layer 2 mode for the VXLAN service. You need to specify this parameter only when configuring the VXLAN service.
Layer 2 Ethernet sub-interface
When configuring a Layer 2 sub-interface, you only need to configure a sub-interface for termination.
VLAN packets are classified into Dot1q packets (one layer of VLAN tag) and QinQ packets (double layers of tags). Accordingly, there are two VLAN tag termination modes. Dot1q termination terminates Dot1q packets and QinQ termination terminates QinQ packets. Run either of the following commands to configure a sub-interface for termination based on site requirements.
The allowed VLAN is configured on the sub-interface for dot1q VLAN termination.
The allowed VLAN is configured on the sub-interface for qinq VLAN termination.
Configure the VXLAN access service on the Layer 2 sub-interface.
You must configure the sub-interface to work in Layer 2 mode for the VXLAN service.
Run encapsulation { dot1q { vid pe-vid } | default | untag | qinq { vid vlan-vid ce-vid ce-vid } }
An encapsulation mode is configured for a Layer 2 sub-interface to specify the type of packets that can pass through the sub-interface.
By default, the encapsulation mode of packets allowed to pass a Layer 2 sub-interface is not configured.
Run bridge-domain bd-id
A specified Layer 2 sub-interface is associated with a BD so that data packets can be forwarded in the BD.
By default, a Layer 2 sub-interface is not associated with a BD.
Layer 3 Ethernet sub-interface (IPv4)
Run ip address ip-address { mask | mask-length } [ sub ]
The IP address of the sub-interface is configured.
Specify the sub parameter when you need to configure a secondary IP address for the sub-interface.
Configure a sub-interface for termination.
VLAN packets are classified into Dot1q packets (one layer of VLAN tag) and QinQ packets (double layers of tags). Accordingly, there are two VLAN tag termination modes. Dot1q termination terminates Dot1q packets and QinQ termination terminates QinQ packets. Run either of the following commands to configure a sub-interface for termination based on site requirements.
The allowed VLAN is configured on the sub-interface for dot1q VLAN termination.
The allowed VLAN is configured on the sub-interface for qinq VLAN termination.
Run arp broadcast enable
The ARP broadcast function is enabled on the sub-interface.
When you enable or disable the ARP broadcast function on a sub-interface, the routing status of the sub-interface becomes Down and then Up. This result in flapping of routes on the entire network, affecting the normal operation of services.
Layer 3 Ethernet sub-interface (IPv6)
Configure a sub-interface for termination.
VLAN packets are classified into Dot1q packets (one layer of VLAN tag) and QinQ packets (double layers of tags). Accordingly, there are two VLAN tag termination modes. Dot1q termination terminates Dot1q packets and QinQ termination terminates QinQ packets. Run either of the following commands to configure a sub-interface for termination based on site requirements.
The allowed VLAN is configured on the sub-interface for dot1q VLAN termination.
The allowed VLAN is configured on the termination sub-interface for qinq VLAN termination.
The IPv6 service is enabled on the sub-interface.
The global unicast IPv6 address is configured for the termination sub-interface.
A termination sub-interface is enabled from sending NS multicast packets.