S310 V600R022C10 Configuration Guide - Interface Management

Enabling or Disabling an Interface

Enabling or Disabling an Interface

Context

To implement the modifications made to an interface's parameters, run the shutdown and undo shutdown commands, or run the restart command.

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

  • Running the shutdown and undo shutdown commands is equivalent to running the restart command and 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 it is configured and cannot be enabled or disabled by commands.

Procedure

  • Disable an interface.
    1. Enter the system view.

      system-view

    2. Enter the interface view.

      interface { interface-name | interface-type interface-number }

    3. Disable the interface.

      shutdown

      By default, an interface is enabled.

  • Enable an interface.
    1. Enter the system view.

      system-view

    2. Enter the interface view.

      interface { interface-name | interface-type interface-number }

    3. Enable the interface.

      undo shutdown

      By default, an interface is enabled.