< Home

interface loopback

Function

The interface loopback command creates a loopback interface.

The undo interface loopback command deletes a loopback interface.

Format

interface loopback loopback-number

undo interface loopback loopback-number

Parameters

Parameter Description Value

loopback-number

Specifies the number of a loopback interface.

The value is an integer. On the S6720-LI, S6720S-LI, S5730-SI, S5730S-EI, S5731-H, S5731S-H, S6730-H, S6720-SI and S6720S-SI series switches, the value ranges from 0 to 1023. On the S2720-EI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, and S5720S-LI series switches, the value ranges from 0 to 15.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

A loopback interface is always Up.

The IP address of a loopback interface is usually specified as the source address of packets.

Example

# Create loopback interface 5.

<HUAWEI> system-view
[HUAWEI] interface loopback 5
[HUAWEI-LoopBack5]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >