Unable to Assign an IP Address to Loopback lo:1

Follow

Issue

I am having issues assigning an IP address to lo:1. I am trying to configure OSPF Unnumbered. Here is my configuration:

# cat /etc/network/interfaces
<snip/>
auto lo
iface lo inet loopback

auto lo:1
iface lo:1
  address 172.16.3.5/32
<snip/>

Environment

  • Cumulus Linux, 2.2.x
  • Cumulus Linux, 2.5.x

Resolution

Assign loopback IP addresses directly under lo in /etc/network/interfaces:

auto lo
iface lo inet loopback
  address 172.16.3.5/32

Then continue configuring routing protocols in Quagga.

You can find more information in the Cumulus Linux Quick Start Guide.

Root Cause

Rather than creating the lo:N alias, python-ifupdown2 applies addresses from each configured lo:N to lo directly. This behavior may be different from other Linux distributions.

Have more questions? Submit a request

Comments

Powered by Zendesk