Creating a Sub-interface

To ensure communication between VLANs, create Ethernet sub-interfaces on a Layer 3 device.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number.subinterface-number

    An Ethernet sub-interface is created. If an Ethernet sub-interface exists, the Ethernet sub-interface view is displayed.

    Sub-interfaces cannot be created on an Eth-Trunk member interface.

  3. Run commit

    The configuration is committed.

    In the scenario where an interface has a large number of sub-interfaces, if you run the shutdown command in the sub-interface view to shut down the sub-interfaces one after another, the work load is huge. To shut down the sub-interface in batch, run the shutdown interface command in the system view.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >