set l3-interface loopback address
The set l3-interface loopback address command creates a loopback interface and configures its IP address.
Command Syntax
set l3-interface loopback {lo | <vrf-name>} address <ip-address> prefix-length <int>
Parameters
Parameter | Description |
loopback {lo | <vrf-name>} | Specifies a loopback interface. The value is a string.
|
address <ip-address> | Specifies the IP address of a loopback interface.
|
prefix-length <int> | The IPv4 network prefix length is fixed to 32. The IPv6 network prefix length is fixed to 128. |
Usage Guidelines
A loopback interface is always Up.
The IP address of a loopback interface is usually specified as the source address of packets.
NOTE:
Don't forget the key word "lo" in the command when creating a loopback interface in the default VRF.
Example
- Create a loopback interface in the default VRF.
admin@Xorplus# set l3-interface loopback lo address 1.1.1.1 prefix-length 32 admin@Xorplus# commit
Copyright © 2025 Pica8 Inc. All Rights Reserved.