Configuring a loopback interface

A loopback interface is a virtual interface. The physical layer state of a loopback interface is always up unless the loopback interface is manually shut down. Because of this benefit, loopback interfaces are widely used in the following scenarios:

To configure a loopback interface:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Create a loopback interface and enter loopback interface view.

interface loopback interface-number

N/A

3. Set the interface description.

description text

The default setting is interface name Interface (for example, LoopBack1 Interface).

4. Configure the expected bandwidth of the loopback interface.

bandwidth bandwidth-value

By default, the expected bandwidth of a loopback interface is 0 kbps.

5. Restore the default settings for the loopback interface.

default

N/A

6. Bring up the loopback interface.

undo shutdown

By default, a loopback interface is up.