< Home

interface

Function

The interface command displays the interface view or sub-interface view.

The undo interface command deletes a sub-interface.

Format

interface interface-type interface-number

undo interface interface-type interface-number

Parameters

Parameter Description Value
interface-type interface-number

Specifies the type and number of an interface. The interface type and number can be closely next to each other or separated by a space character.

To create a sub-interface, enter the sub-interface view, or delete a sub-interface, specify interface-number in the format of main interface number.sub-interface number. For example, the number of sub-interface 1 on GE0/0/1 is GE0/0/1.1.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the specified interface view is displayed, you can set attributes for the interface.

Precautions

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

  • You need to set the interface type before creating a sub-interface. Only hybrid and trunk interfaces on the preceding series of cards support Ethernet sub-interface configuration.

  • Physical interfaces cannot be created or deleted. You can only run the interface interface-type interface-number command to enter the view of an existing physical interface.

  • Sub-interfaces can be created. Run the interface interface-type interface-number command to create a sub-interface and enter the sub-interface view.

  • Sub-interfaces can be deleted. Run the undo interface interface-type interface-number command to delete a sub-interface.

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

Example

# Display the view of GE0/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1]

# Create sub-interface GE0/0/1.1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type hybrid
[HUAWEI-GigabitEthernet0/0/1] quit
[HUAWEI] interface gigabitethernet 0/0/1.1

# Delete sub-interface GE0/0/1.1.

<HUAWEI> system-view
[HUAWEI] undo interface gigabitethernet 0/0/1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >