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:
Prevent the connection from being affected by the physical state of the interface.
Improve the reliability of the connection.
For example, you can:
Configure a loopback interface as the source interface for establishing an FTP connection.
Use the loopback interface address as the Router ID in BGP.
Examples
# Create interface loopback 1.
<Sysname> system-view [Sysname] interface loopback 1 [Sysname-LoopBack1]