Print Download PDF Send Feedback

Previous

Next

Loopback Interfaces

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.

Configuring Loopback Interfaces - Gaia Portal

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:

  1. The Enable option is selected by default to set the loopback interface status to UP.
  2. In the Comment field, enter the applicable comment text (up to 100 characters).
  3. On the IPv4 tab, enter the IPv4 address and subnet mask.

    These IPv4 addresses are not allowed:

    • 0.x.x.x
    • 127.x.x.x
    • 224.x.x.x - 239.x.x.x (Class D)
    • 240.x.x.x - 255.x.x.x (Class E)
    • 255.255.255.255
  4. On the IPv6 tab (optional), enter the IPv6 address and mask length.

    Important - First, you must enable the IPv6 Support and reboot.

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:

  1. If required, change the IPv4 address and subnet mask.
  2. If required, change the IPv6 address and mask length.

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.

Configuring Loopback Interfaces - Gaia Clish

Description

Configure loopback interfaces.

Syntax

Parameters

Parameter

Description

loopback

Configures a loopback interface.

lo

You must use the lo (local interface) keyword to define a loopback interface.

<IP Address>

Assigns an IPv4 or IPv6 address.

<Mask>

Configures an IPv4 subnet mask or IPv6 mask length using CIDR (/xx) notation.

<Name of Loopback Interface>

Name of Loopback Interface (loopXX)

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.