For the command output, see
Related commands
interface null
•
reset counters interface null
•
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 1023.
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]
interface null
Use interface null to enter null interface view.
Syntax
interface null 0
Table 9
and
Table
10.
37