Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #275004 > unrolled thread
| Started by | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| First post | 2024-11-30 08:30 +0100 |
| Last post | 2024-11-30 20:20 +0100 |
| Articles | 12 — 3 participants |
Back to article view | Back to linux.debian.user
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
| From | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| Date | 2024-11-30 08:30 +0100 |
| Subject | How to create a persistent loopback address |
| Message-ID | <JOq5r-cHKq-1@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
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. -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄⠀⠀
[toc] | [next] | [standalone]
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Date | 2024-11-30 14:10 +0100 |
| Message-ID | <JOvot-cLN1-7@gated-at.bofh.it> |
| In reply to | #275004 |
On 11/30/24 08:22, Timothy M Butterworth wrote: > 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. > By using NM ([1]) and googling to manage the dummy interface. [1] https://unix.stackexchange.com/questions/513578/modern-way-to-configure-dummy0-in-etc-network-interfaces-or-similar -- John Doe
[toc] | [prev] | [next] | [standalone]
| From | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| Date | 2024-11-30 19:50 +0100 |
| Message-ID | <JOAHv-cOR4-7@gated-at.bofh.it> |
| In reply to | #275004 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, Nov 30, 2024 at 2:22 AM Timothy M Butterworth < timothy.m.butterworth@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 -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄⠀⠀
[toc] | [prev] | [next] | [standalone]
| From | Andy Smith <andy@strugglers.net> |
|---|---|
| Date | 2024-11-30 20:10 +0100 |
| Message-ID | <JOB0S-cPdg-9@gated-at.bofh.it> |
| In reply to | #275035 |
Hi, On Sat, Nov 30, 2024 at 01:47:42PM -0500, Timothy M Butterworth wrote: > On Sat, Nov 30, 2024 at 2:22 AM Timothy M Butterworth < > timothy.m.butterworth@gmail.com> wrote: > > 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. 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. Thanks, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting
[toc] | [prev] | [next] | [standalone]
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Date | 2024-11-30 20:20 +0100 |
| Message-ID | <JOBax-cPgt-9@gated-at.bofh.it> |
| In reply to | #275038 |
On 11/30/24 20:04, Andy Smith wrote: > Hi, > > On Sat, Nov 30, 2024 at 01:47:42PM -0500, Timothy M Butterworth wrote: >> On Sat, Nov 30, 2024 at 2:22 AM Timothy M Butterworth < >> timothy.m.butterworth@gmail.com> wrote: >>> 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. > > 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. > > Not sure what the OP is trying to do here [1]. -- John Doe
[toc] | [prev] | [next] | [standalone]
| From | john doe <johndoe65534@mail.com> |
|---|---|
| Date | 2024-11-30 20:30 +0100 |
| Message-ID | <JOBke-cPjt-5@gated-at.bofh.it> |
| In reply to | #275042 |
On 11/30/24 20:11, john doe wrote: > On 11/30/24 20:04, Andy Smith wrote: >> Hi, >> >> On Sat, Nov 30, 2024 at 01:47:42PM -0500, Timothy M Butterworth wrote: >>> On Sat, Nov 30, 2024 at 2:22 AM Timothy M Butterworth < >>> timothy.m.butterworth@gmail.com> wrote: >>>> 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. >> >> 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. >> >> > > Not sure what the OP is trying to do here [1]. > [1] https://lists.debian.org/debian-user/2024/11/msg00827.html Sorry for forgetting the URL. -- John Doe
[toc] | [prev] | [next] | [standalone]
| From | Andy Smith <andy@strugglers.net> |
|---|---|
| Date | 2024-11-30 20:40 +0100 |
| Message-ID | <JOBtT-cPmy-5@gated-at.bofh.it> |
| In reply to | #275044 |
Hi, On Sat, Nov 30, 2024 at 08:25:31PM +0100, john doe wrote: > On 11/30/24 20:11, john doe wrote: > > Not sure what the OP is trying to do here [1]. > > [1] https://lists.debian.org/debian-user/2024/11/msg00827.html Yes, I too was confused why they had ignored your advice (to use nmcli). I was more asking in the hope they would elaborate, but so far we see only ifupdown. Thanks, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting
[toc] | [prev] | [next] | [standalone]
| From | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| Date | 2024-12-01 02:20 +0100 |
| Message-ID | <JOGMW-cSLq-5@gated-at.bofh.it> |
| In reply to | #275045 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, Nov 30, 2024 at 7:57 PM Andy Smith <andy@strugglers.net> wrote: > Hi, > > On Sat, Nov 30, 2024 at 08:25:31PM +0100, john doe wrote: > > On 11/30/24 20:11, john doe wrote: > > > Not sure what the OP is trying to do here [1]. > > > > [1] https://lists.debian.org/debian-user/2024/11/msg00827.html > > Yes, I too was confused why they had ignored your advice (to use nmcli). > I was more asking in the hope they would elaborate, but so far we see > only ifupdown. > Here is the nmcli syntax for the dummy interface. I tested it and it is persistent. sudo nmcli conn add type dummy ifname ospf ipv4.method manual ipv4.address 10.0.0.1/32 Right now I am reading up on systemd-networkd. I figure I might as well build out all three configuration types. Thanks, > Andy > > -- > https://bitfolk.com/ -- No-nonsense VPS hosting > > -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄⠀⠀
[toc] | [prev] | [next] | [standalone]
| From | Andy Smith <andy@strugglers.net> |
|---|---|
| Date | 2024-11-30 20:20 +0100 |
| Message-ID | <JOBax-cPgt-11@gated-at.bofh.it> |
| In reply to | #275038 |
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
[toc] | [prev] | [next] | [standalone]
| From | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| Date | 2024-12-01 01:10 +0100 |
| Message-ID | <JOFHb-cS8R-1@gated-at.bofh.it> |
| In reply to | #275043 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, Nov 30, 2024 at 6:57 PM Andy Smith <andy@strugglers.net> wrote: > 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 > Andy, thanks for the info. I decided to scrap NM and just use ifup. thanks Tim > Thanks, > Andy > > -- > https://bitfolk.com/ -- No-nonsense VPS hosting > > -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄⠀⠀
[toc] | [prev] | [next] | [standalone]
| From | Timothy M Butterworth <timothy.m.butterworth@gmail.com> |
|---|---|
| Date | 2024-11-30 20:20 +0100 |
| Message-ID | <JOBax-cPgt-5@gated-at.bofh.it> |
| In reply to | #275035 |
[Multipart message — attachments visible in raw view] — view raw
On Sat, Nov 30, 2024 at 1:47 PM Timothy M Butterworth < timothy.m.butterworth@gmail.com> wrote: > > > On Sat, Nov 30, 2024 at 2:22 AM Timothy M Butterworth < > timothy.m.butterworth@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/ ⠈⠳⣄⠀⠀
[toc] | [prev] | [next] | [standalone]
| From | Andy Smith <andy@strugglers.net> |
|---|---|
| Date | 2024-11-30 20:20 +0100 |
| Message-ID | <JOBax-cPgt-7@gated-at.bofh.it> |
| In reply to | #275040 |
Hi, On Sat, Nov 30, 2024 at 02:10:58PM -0500, Timothy M Butterworth wrote: > > On Sat, Nov 30, 2024 at 2:22 AM Timothy M Butterworth < > > timothy.m.butterworth@gmail.com> wrote: > >> How do I make this interface persistent? I am on Debian Trixie and using > >> NetworkManager. > 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 I personally would not use ifupdown config files on a system that was managed with NetworkManager unless absolutely necessary. It just seems confusing for whichever admin comes next, such as me one week later. Thanks, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web