You are not logged in.

#1 2020-08-27 18:29:52

4on6
Member
Registered: 2011-10-05
Posts: 172

[SOLVED] Where are my static IPv4 and IPv6 defined?

Hello,
I installed an Arch Linux image on a hosted server, and that server has both a static IPv4 and IPv6 (range) defined, I can connect via IPv4, and ping IPv6 localhost successfully. Everything fine so far.
Now I want to configure IPv6, and was told that nowadays systemd-networkd is the way to go. I would follow that advice.

But I really wonder, where and how are the static IPs of that server configured now?
I do no find any of these configurations:
- /etc/netctl/interfaces/ is empty
- /etc/netconfig apparently not used
- /etc/systemd/network/ is empty
- /etc/conf.d/ is empty
- networkmanager not installed
- ?

Any tip on how to find out where these static adresses are defined?

Last edited by 4on6 (2020-08-28 14:05:16)

Offline

#2 2020-08-27 20:08:32

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: [SOLVED] Where are my static IPv4 and IPv6 defined?

sudo find / -name "*.network"

Offline

#3 2020-08-27 21:11:56

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Where are my static IPv4 and IPv6 defined?

tucuxi wrote:
sudo find / -name "*.network"

This does find some files, thx, but none of them contains static IP configurations unfortunately:

 
/usr/lib/systemd/network/80-container-vz.network
/usr/lib/systemd/network/80-wifi-adhoc.network
/usr/lib/systemd/network/80-vm-vt.network
/usr/lib/systemd/network/80-container-ve.network
/usr/lib/systemd/network/80-container-host0.network

But find and grep should help me further, I'll try ...

Offline

#4 2020-08-28 13:02:18

Koatao
Member
Registered: 2018-08-30
Posts: 92

Re: [SOLVED] Where are my static IPv4 and IPv6 defined?

Hello,

There is no default network manager or network settings in Arch Linux. It is up to you to install the require stuff and configure it.

You should at least know the active network manager. If it is configured during startup, a good start would be to look at what services is enabled with systemd:

systemctl list-unit-files --state=enabled

Are you sure static addressing is handled by your server and not a DHCP server ?

PS: some will argue to you that if you have no idea about how your network is configured, you then have no right to ask support on this forum (see rules).

Last edited by Koatao (2020-08-28 13:05:34)

Offline

#5 2020-08-28 13:37:07

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] Where are my static IPv4 and IPv6 defined?

4on6 wrote:

Arch Linux image on a hosted server

It's possible the hosting provider set those things up.

What virtualization software do they use ?
You have checked https://wiki.archlinux.org/index.php/Ar … x_on_a_VPS ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2020-08-28 14:00:43

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Where are my static IPv4 and IPv6 defined?

Koatao wrote:

Hello,

There is no default network manager or network settings in Arch Linux. It is up to you to install the require stuff and configure it.

You should at least know the active network manager. If it is configured during startup, a good start would be to look at what services is enabled with systemd:

systemctl list-unit-files --state=enabled

Are you sure static addressing is handled by your server and not a DHCP server ?

PS: some will argue to you that if you have no idea about how your network is configured, you then have no right to ask support on this forum (see rules).

Skipping the arrogant part, that hint with the DHCP server was usefull, I found this in the journal:

Aug 15 08:51:12 archlinux dhcpcd[288]: ens3: adding default route via 1xx.xxx.xxx.1
Aug 15 08:51:12 archlinux dhcpcd[288]: ens3: adding route to 1xx.xxx.xxx.0/22
Aug 15 08:51:12 archlinux dhcpcd[288]: ens3: leased 1xx.xxx.xxx.123 for 2678400 seconds
Aug 15 08:51:07 archlinux dhcpcd[288]: ens3: probing address 1xx.xxx.xxx.123/22
Aug 15 08:51:07 archlinux dhcpcd[288]: ens3: offered 1xx.xxx.xxx.123 from 4x.xx.xxx.xxx
Aug 15 08:51:01 archlinux dhcpcd[288]: ens3: rebinding lease of 1xx.xxx.xxx.123

There is no dhcpcd service running on my machine, its a virtualized root server, so lone_wolf is probably right, this is set up by the hosting provider. And the question wasn't all that dumb in the end, since I checked many possible network configs described for archlinux, and nothing to be found on my server.

Offline

#7 2020-08-28 17:07:19

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: [SOLVED] Where are my static IPv4 and IPv6 defined?

Just out of curiosity, there is no dhcpcd service running and yet it apparently obtains an IP address and outputs messages to the journal? How does this work with a VPS?

Offline

#8 2020-08-28 22:11:08

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Where are my static IPv4 and IPv6 defined?

tucuxi wrote:

Just out of curiosity, there is no dhcpcd service running and yet it apparently obtains an IP address and outputs messages to the journal? How does this work with a VPS?

I have no idea, maybe somebody else can explan.
Its KVM virtualization.

Ok, you were probably right with your doubts.
I found a static unit that is active on my machine (dhcpcd@eth0.service, I only looked for dhcpcd.service), and that leases the static adresses from the host providers name servers at every boot, so I can only imagine that the mapping of static adress to server is done on that nameservers. Thats less mysterious.

Now I only ask myself, if I want to do my own network config with systemd-networkd, if I have to get rid of that static service first (by masking it)?

Last edited by 4on6 (2020-08-29 10:44:12)

Offline

Board footer

Powered by FluxBB