< Home

interface

Function

The interface command creates an interface or enters the specified interface view.

The undo interface command deletes the specified interface.

Format

interface interface-type interface-number

interface interface-type interface-number.subinterface-number

undo interface interface-type { interface-number | interface-number.subinterface-number }

Parameters

Parameter Description Value

interface-type

Specifies the type of an interface.

-

interface-number

Specifies the number of an interface.

-

subinterface-number

Specifies the subinterface number.

The value is an integer ranging from 1 to 4096.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When an interface has subinterfaces, if you run the shutdown command and the undo shutdown command on the main interface in succession, the two commands must be used at an interval of at least 15 seconds.

The undo interface eth-trunk command cannot be used in the system view of a virtual system.

Example

# Enter the view of GigabitEthernet 0/0/1.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/1
[sysname-GigabitEthernet0/0/1]

# Create a sub-interface on GigabitEthernet 0/0/1.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/1.1
[sysname-GigabitEthernet0/0/1.1]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >