< Home

port description

Function

The port description command configures description about the device type connected to an interface.

The undo port description command restores the default setting.

By default, no description about the device type connected to an interface is configured.

Format

port description { router | switch | phone | desktop }

undo port description

Parameters

Parameter

Description

Value

router

Indicates that the interface is connected to a router.

-

switch

Indicates that the interface is connected to a switch.

-

phone

Indicates that the interface is connected to an IP phone.

-

desktop

Indicates that the interface is connected to a desktop terminal, such as a PC.

-

Views

Ethernet interface view, GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run this command to configure description about the device type connected to an interface to facilitate device management and maintenance. For example, you can run port description router command to indicate that the interface is connected to a router.

Precautions

After you configure this command on an interface, the interface can still switch between Layer 2 and Layer 3 modes.

Example

# Specify description of the Ethernet interface GE0/0/1 to router to indicate that the interface is connected to a router.
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port description router
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >