< Home

Enabling or Disabling an Interface

Context

After modifying parameters of an interface, run the shutdown and undo shutdown commands, or run the restart command to make the modification take effect.

If an interface is not connected to a cable or a fiber, disable the interface using the shutdown command to prevent exceptions caused by interference.

  • If the switch supports the autocomplete function, you must enter at least the characters shut before the switch can automatically complete the shutdown command.

  • Running the shutdown and undo shutdown commands is equivalent to running the restart command. Running the shutdown command does not modify or delete interface configurations.
  • A NULL interface is always Up and cannot be enabled or disabled by commands.
  • A loopback interface is always Up after being created and cannot be enabled or disabled by commands.

Procedure

  • Disable an interface.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. (Optional) To configure this function in a sub-interface view, run interface interface-type interface-number.subinterface-number

      The Ethernet sub-interface view is displayed.

      • 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.

      • Only hybrid and trunk interfaces on the preceding switches support Ethernet sub-interface configuration.
      • 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.

      • VLAN termination sub-interfaces cannot be created on a VCMP client.

    4. Run shutdown

      The interface is disabled.

      By default, an interface is enabled.

  • Enable an interface.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. (Optional) To configure this function in a sub-interface view, run interface interface-type interface-number.subinterface-number

      The Ethernet sub-interface view is displayed.

      • 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.

      • Only hybrid and trunk interfaces on the preceding switches support Ethernet sub-interface configuration.
      • 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.

      • VLAN termination sub-interfaces cannot be created on a VCMP client.

    4. Run undo shutdown

      The interface is enabled.

      By default, an interface is enabled.

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