In VLAN aggregation, a sub-VLAN can contain only physical interfaces (it cannot contain VLANIF interfaces). All the interfaces in a sub-VLAN use the same IP address of the VLANIF interface associated with the super-VLAN. VLAN aggregation reduces the number of subnet IDs, subnet default gateway addresses, and directed broadcast IP addresses needed on the network segment and ensures that IP addresses are assigned efficiently.
The system view is displayed.
A VLAN is created and the VLAN view is displayed.
The vlan configuration command completes the VLAN configurations before the VLAN is created. The vlan configuration command only enters the VLAN configuration view. Neither the corresponding VLAN nor configurations in the VLAN take effect. To make configurations in the VLAN take effect, create the VLAN using the vlan command.
The interface view is displayed.
Run either of the following commands as needed:
To set the link type of the interface to access:
Run port link-type access
The link type of the interface is set to access.
Run port default vlan vlan-id
The interface is added to the sub-VLAN.
To set the link type of the interface to trunk:
Run port link-type trunk
The link type of the interface is set to trunk.
Run port trunk allow-pass vlan vlan-id
The interface is added to the sub-VLAN.
To set the link type of the interface to hybrid:
Run port link-type hybrid
The link type of the interface is set to hybrid.
Run port hybrid tagged vlan vlan-id or port hybrid untagged vlan vlan-id
The interface is added to the sub-VLAN.
The system view is displayed.