interface loopback

Use interface loopback to create a loopback interface and enter loopback interface view.

Use undo interface loopback to remove a loopback interface.

Syntax

interface loopback interface-number

undo interface loopback interface-number

Default

No loopback interface exists.

Views

System view

Predefined user roles

network-admin

Parameters

interface-number: Specifies a loopback interface by its number in the range of 0 to 127.

Usage guidelines

The physical layer state and link layer protocols of a loopback interface are always up unless the loopback interface is manually shut down. You can use a loopback interface to achieve the following purposes:

For example, you can:

Examples

# Create interface loopback 1.

<Sysname> system-view
[Sysname] interface loopback 1
[Sysname-LoopBack1]