Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #275043

Re: How to create a persistent loopback address

From Andy Smith <andy@strugglers.net>
Newsgroups linux.debian.user
Subject Re: How to create a persistent loopback address
Date 2024-11-30 20:20 +0100
Message-ID <JOBax-cPgt-11@gated-at.bofh.it> (permalink)
References <JOq5r-cHKq-1@gated-at.bofh.it> <JOAHv-cOR4-7@gated-at.bofh.it> <JOB0S-cPdg-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Nov 30, 2024 at 07:04:22PM +0000, Andy Smith wrote:
> Surely if you are using NetworkManager you would just do it with nmcli.
> I can't recite the incantations off the top of my head but I imagine
> that creating a new interface is pretty simple.

My first web search led me to:

$ sudo nmcli conn add \
    type dummy \
    ifname ospf-lo \
    ipv4.method manual \
    ipv4.address 10.0.0.1/32 \
    ipv6.method disable
Connection 'dummy-ospf-lo' (c21bdb21-375f-484b-9c7e-4d088c139fc3) successfully added.
$ ip a sh dev ospf-lo
6: ospf-lo: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether 42:39:23:bd:ab:e1 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.1/32 scope global noprefixroute ospf-lo
       valid_lft forever preferred_lft forever

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to create a persistent loopback address Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-11-30 08:30 +0100
  Re: How to create a persistent loopback address john doe <johndoe65534@mail.com> - 2024-11-30 14:10 +0100
  Re: How to create a persistent loopback address Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-11-30 19:50 +0100
    Re: How to create a persistent loopback address Andy Smith <andy@strugglers.net> - 2024-11-30 20:10 +0100
      Re: How to create a persistent loopback address john doe <johndoe65534@mail.com> - 2024-11-30 20:20 +0100
        Re: How to create a persistent loopback address john doe <johndoe65534@mail.com> - 2024-11-30 20:30 +0100
          Re: How to create a persistent loopback address Andy Smith <andy@strugglers.net> - 2024-11-30 20:40 +0100
            Re: How to create a persistent loopback address Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-01 02:20 +0100
      Re: How to create a persistent loopback address Andy Smith <andy@strugglers.net> - 2024-11-30 20:20 +0100
        Re: How to create a persistent loopback address Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-01 01:10 +0100
    Re: How to create a persistent loopback address Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-11-30 20:20 +0100
      Re: How to create a persistent loopback address Andy Smith <andy@strugglers.net> - 2024-11-30 20:20 +0100

csiph-web