interfaces loopback <interface-name> address
Specifies the IP address and network prefix for a loopback interface.
- interface-name
- The name of a loopback interface, lo or lon, where n ranges from 1 through 99999.
- ipv4
- The IPv4 address and network prefix of the loopback interface. The format is ip-address / prefix (for example, 127.0.0.1/8).
You can define multiple IP addresses for the loopback interface by creating multiple address configuration nodes.
- ipv6
- The IPv6 address and network prefix of the loopback interface. The format is ipv6-address / prefix (for example, ::1/128).
You can define multiple IPv6 addresses for the loopback interface, by creating multiple address configuration nodes.
Configuration mode
interfaces {
loopback interface-name {
address ipv4
address ipv6
}
}
Use the set form of this command to specify the IP address and network prefix for a loopback interface. You can specify more than one IP address and network prefix for a loopback interface by creating multiple address configuration nodes.
Use the delete form of this command to delete an address and network prefix for a loopback interface.
Use the show form of this command to display the address configuration of a loopback interface.