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 <IPv4 Address>/<Mask Length> |
set interface <Name of Loopback Interface> {ipv4-address <options> | ipv6-address <options>} |
show interface<SPACE><TAB> |
show interface |
delete interface lo loopback <Name of Loopback Interface> |
Important - After you add, configure, or delete features, run the save config
command to save the settings permanently.
Notes:
loopXX
, where XX
is a sequence number starting from 00.You can only change IPv4 or IPv6 address on a loopback interface.
Parameters
Parameter |
Description |
---|---|
|
You must use the |
<IPv4 Address> |
Specifies the IPv4 address These IPv4 addresses are not allowed:
|
<Mask Length> |
Configures the IPv4 subnet mask length using the CIDR notation (integer between 2 and 32) |
<Name of Loopback Interface> |
Specifies a loopback interface name |
Example
gaia> add interface lo loopback 10.10.99.1/24
gaia> delete interface lo loopback loop01 |