/
set l3-interface loopback address

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.

  • lo: use lo for default VRF loopback.
  • <vrf-name>: use VRF name for a VRF loopback.

address <ip-address>

Specifies the IP address of a loopback interface.

  • Ipv4 default value: 127.0.0.1
  • Ipv6 default value: ::1
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.