The shutdown interface command shuts down sub-interfaces in a batch.
The undo shutdown interface command starts sub-interfaces in a batch.
By default, a sub-interface is started.
Parameter | Description | Value |
---|---|---|
ifname |
Specifies a start interface name. |
- |
beginIfType |
Specifies a start interface type. |
The interfaces must support sub-interfaces. |
beginIfNum |
Specifies a start interface number. |
- |
to |
The keyword to is used to connect two interfaces, indicating that the interface numbers are all interfaces between two interfaces (including these two interfaces). |
- |
endIfname |
Specifies an end interface name. |
- |
endIfType |
Specifies an end interface type. |
The interfaces must support sub-interfaces. |
endIfNum |
Specifies an end interface number. |
- |
Usage Scenario
If a main interface has a large number of sub-interfaces, to disable these interfaces, run the shutdown command on each sub-interface view. To release workloads, run the shutdown interface command to disable sub-interfaces in a batch. After the shutdown interface command is run, the sub-interface operating state changes to Down. If the sub-interface is in the disabled state, run the undo shutdown interface command to start sub-interfaces in a batch, after the undo shutdown interface command is run, the sub-interface operating state is synchronized with the link status.
Prerequisites
The sub-interfaces to be disabled or started in a batch must exist.
Configuration Impact
Running the shutdown interface command will interrupt services on the sub-interfaces. Therefore, exercise caution when running this command.
If the shutdown interface command is run more than once, the latest configuration overrides the previous one.Precautions
In VS mode, this command is supported only by the admin VS.
When you specify the interface range, note that:<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/1.1 [*HUAWEI-GigabitEthernet0/1/1.1] quit [*HUAWEI] interface GigabitEthernet 0/1/1.2 [*HUAWEI-GigabitEthernet0/1/1.2] quit [*HUAWEI] interface GigabitEthernet 0/1/1.3 [*HUAWEI-GigabitEthernet0/1/1.3] quit [*HUAWEI] shutdown interface GigabitEthernet 0/1/1.1 to GigabitEthernet 0/1/1.3