This section describes how to configure a Layer-2 Ethernet subinterface.
Subinterfaces are logical or virtual interfaces created on a physical interface. Subinterfaces share the physical parameters of the physical interface on which they are created. However, subinterfaces have their own data link layer and network layer parameters. A subinterface status change does not affect the main interface status, whereas a main interface status change affects the subinterface status. Subinterfaces work properly only when their main interface is in the Up state.
The device supports creating subinterfaces on Layer-2 Ethernet and Layer-2 Eth-Trunk interfaces. Using a subinterface to terminate a VLAN allows for inter-VLAN forwarding.
system-view
interface interface-type interface-number
portswitch
quit
interface interface-type interface-number.subinterface-number
vlan-type dot1q vlan-id
portswitch
port default vlan vlan-id
bandwidth ingress bandwidth-number
bandwidth egress bandwidth-number
detect-mode tap
After bypass detection is enabled, the device detects packets received on this interface and then discards them.