On Sat, Nov 30, 2024 at 1:47 PM Timothy M Butterworth <
timothy.m.butterwo...@gmail.com> wrote:

>
>
> On Sat, Nov 30, 2024 at 2:22 AM Timothy M Butterworth <
> timothy.m.butterwo...@gmail.com> wrote:
>
>> Hello,
>>
>> I created a loopback interface with the following commands:
>>
>> sudo ip link add name ospf-lo type dummy
>> sudo ip link set ospf-lo up
>> sudo ip addr add 10.0.0.1/32 dev ospf-lo
>>
>> How do I make this interface persistent? I am on Debian Trixie and using
>> NetworkManager.
>>
>
> I tried the following but no success.
>
> sudo touch /etc/network/interfaces.d/ospf.cf
> sudo vim /etc/network/interfaces.d/ospf.cf
>
> auto ospf
>
> iface ospf inet static
>   address 10.0.0.1
>   netmask 255.255.255.255
>

 I got it to work with:
sudo cat /etc/network/interfaces.d/ospf.cfg
auto ospf
iface ospf inet static
  address 10.0.0.1/32
  pre-up ip link add ospf type dummy



-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀

Reply via email to