You can define a virtual loopback interface by assigning an IPv4 or IPv6 address to the lo
(local) interface. This can be useful for testing purposes or as a proxy interface for an unnumbered interface. This section shows you how to configure a loopback interface using the Gaia Portal and the Gaia Clish.
To add a loopback interface:
Step |
Description |
---|---|
1 |
In the navigation tree, click Interface Management > Network Interfaces. |
2 |
Click Add > Loopback. |
3 |
In the Add loopback window:
|
4 |
Click OK. |
The new loopback interface name is automatically created with the addition of a sequence number to the string 'loop'. For example, the name of first loopback interface is loop00. The second loopback interface is loop01, and so on.
To configure a loopback interface:
Step |
Description |
---|---|
1 |
In the navigation tree, click Interface Management > Network Interfaces. |
2 |
Select a loopback interface and click Edit. |
3 |
In the Edit loop<NN> window:
|
4 |
Click OK. |
To delete a loopback interface:
Step |
Description |
---|---|
1 |
In the navigation tree, click Network Management > Network Interfaces. |
2 |
Select a loopback interface and click Delete. |
3 |
When the confirmation message shows, click OK. |
Description
Configure loopback interfaces.
Syntax
add interface lo loopback <IP Address>/<Mask> |
show interface <Name of Loopback Interface> |
show interfaces all |
delete interface lo loopback <Name of Loopback Interface> |
Parameters
Parameter |
Description |
---|---|
|
Configures a loopback interface. |
|
You must use the |
<IP Address> |
Assigns an IPv4 or IPv6 address. |
|
Configures an IPv4 subnet mask or IPv6 mask length using CIDR (/xx) notation. |
|
Name of Loopback Interface ( |
Example
gaia> add interface lo loopback 10.10.99.1/24
gaia> add interface lo loopback 2010:10:99::1/64
gaia> show interface loop01
gaia> delete interface lo loopback loop01 |
Comment
When you create a new loopback interface, Gaia automatically assigns a name in the format loopXX
, where XX
is a sequence number starting from 00.
Important - After using Gaia Clish commands to add, configure or delete features, you must run the save config
command. This makes sure that the new configuration settings remain after reboot.