You are not logged in.

#1 2024-08-28 20:41:53

Efka
Member
From: Klaipeda
Registered: 2014-04-27
Posts: 106
Website

cant set static ip.[SOLVED]

Have a file in:

/etc/systemd/network/20-wired.conf
[Match]
Name=enp8s0

[Network]
Address=192.168.1.100/24
Address=192.168.1.101/24
Gateway=192.168.1.1
DNS=1.1.1.1

Wont hold it - every time i reboot - goes to dynamic.
I was using this example:
https://wiki.archlinux.org/title/System … _static_IP

Also would like to set IPv6 as i have set IPv4v6 on my ISP router and i do have IPv6 address.
How should i tackle IPv6 - this is very new for me.

Last edited by Efka (2024-08-28 22:06:21)


IBM Lenovo ThinkPad T61 ; Lenovo ThinkPad X220; Lenovo ThinkPad T440p; Lenovo Thinkpad W520; Lenovo Thinkpad P71; ThinkPad X1 Yoga Gen1;  FrankenPad T25
Asus Z10PE D-16 WS; 2x Intel Xeon E-5 2690V4; 32GB ECC; nVidia Titan V CEO | Asus ROG Gene XI Intel i7-9700k nVidia 3070Ti

Offline

#2 2024-08-28 20:58:08

mithrial
Member
Registered: 2017-03-05
Posts: 38

Re: cant set static ip.[SOLVED]

Do you have some other Networking Manager running?

Offline

#3 2024-08-28 21:18:47

Efka
Member
From: Klaipeda
Registered: 2014-04-27
Posts: 106
Website

Re: cant set static ip.[SOLVED]

as far as i understand - i dont need as systemd-network is enough to run wired interface and im running wired interface.


IBM Lenovo ThinkPad T61 ; Lenovo ThinkPad X220; Lenovo ThinkPad T440p; Lenovo Thinkpad W520; Lenovo Thinkpad P71; ThinkPad X1 Yoga Gen1;  FrankenPad T25
Asus Z10PE D-16 WS; 2x Intel Xeon E-5 2690V4; 32GB ECC; nVidia Titan V CEO | Asus ROG Gene XI Intel i7-9700k nVidia 3070Ti

Offline

#4 2024-08-28 22:04:52

seth
Member
Registered: 2012-09-03
Posts: 57,935

Re: cant set static ip.[SOLVED]

That wasn't the question, though.
Please post the output of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Wont hold it - every time i reboot - goes to dynamic.

How do you determine that?
On thing sticking out is that you configured two static IPs for the same NIC - what are you trying to achieve with that?

You can set an IPv6 the same way as an IPv4 (and in parallel) but I'd postpone that.

Offline

#5 2024-08-28 22:05:49

Efka
Member
From: Klaipeda
Registered: 2014-04-27
Posts: 106
Website

Re: cant set static ip.[SOLVED]

Update:
IPv4 static solved.
I forgot i had dhcpcd running and this what cause this issue.

sudo systemctl stop dhcpcd 
sudo systemctl disable dhcpcd 
sudo systemctl enable systemd-networkd.service
sudo systemctl start systemd-networkd.service

IPv6 next.


IBM Lenovo ThinkPad T61 ; Lenovo ThinkPad X220; Lenovo ThinkPad T440p; Lenovo Thinkpad W520; Lenovo Thinkpad P71; ThinkPad X1 Yoga Gen1;  FrankenPad T25
Asus Z10PE D-16 WS; 2x Intel Xeon E-5 2690V4; 32GB ECC; nVidia Titan V CEO | Asus ROG Gene XI Intel i7-9700k nVidia 3070Ti

Offline

#6 2024-08-28 22:07:13

Efka
Member
From: Klaipeda
Registered: 2014-04-27
Posts: 106
Website

Re: cant set static ip.[SOLVED]

seth wrote:

That wasn't the question, though.
Please post the output of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Wont hold it - every time i reboot - goes to dynamic.

How do you determine that?
On thing sticking out is that you configured two static IPs for the same NIC - what are you trying to achieve with that?

You can set an IPv6 the same way as an IPv4 (and in parallel) but I'd postpone that.

Sorry just now noted your post once i posted my update smile
Why would you postpone ipv6 static ?


IBM Lenovo ThinkPad T61 ; Lenovo ThinkPad X220; Lenovo ThinkPad T440p; Lenovo Thinkpad W520; Lenovo Thinkpad P71; ThinkPad X1 Yoga Gen1;  FrankenPad T25
Asus Z10PE D-16 WS; 2x Intel Xeon E-5 2690V4; 32GB ECC; nVidia Titan V CEO | Asus ROG Gene XI Intel i7-9700k nVidia 3070Ti

Offline

#7 2024-08-28 22:09:11

seth
Member
Registered: 2012-09-03
Posts: 57,935

Re: cant set static ip.[SOLVED]

"Postpone after sorting out the general problem" (don't make problem even harder wink

Offline

#8 2024-08-28 22:19:17

Efka
Member
From: Klaipeda
Registered: 2014-04-27
Posts: 106
Website

Re: cant set static ip.[SOLVED]

seth wrote:

"Postpone after sorting out the general problem" (don't make problem even harder wink

Understood !
Well, ipv4 is already sorted .. silly mistake was made by me enabling dhcpcd and systemd-networkd smile
P.s. yes - 2 ips - i just tested waters. but i have also 2 nic`s  so i wanted to see what is what.
If i want to set static to my second nic - i need edit same file or create new one and add enp9s0  and give ip?


IBM Lenovo ThinkPad T61 ; Lenovo ThinkPad X220; Lenovo ThinkPad T440p; Lenovo Thinkpad W520; Lenovo Thinkpad P71; ThinkPad X1 Yoga Gen1;  FrankenPad T25
Asus Z10PE D-16 WS; 2x Intel Xeon E-5 2690V4; 32GB ECC; nVidia Titan V CEO | Asus ROG Gene XI Intel i7-9700k nVidia 3070Ti

Offline

#9 2024-08-28 22:30:16

seth
Member
Registered: 2012-09-03
Posts: 57,935

Re: cant set static ip.[SOLVED]

Two files, proper match - the filenames typically follow the nic names.

Offline

#10 2024-08-28 22:41:44

Efka
Member
From: Klaipeda
Registered: 2014-04-27
Posts: 106
Website

Re: cant set static ip.[SOLVED]

seth wrote:

Two files, proper match - the filenames typically follow the nic names.

Thank You!


IBM Lenovo ThinkPad T61 ; Lenovo ThinkPad X220; Lenovo ThinkPad T440p; Lenovo Thinkpad W520; Lenovo Thinkpad P71; ThinkPad X1 Yoga Gen1;  FrankenPad T25
Asus Z10PE D-16 WS; 2x Intel Xeon E-5 2690V4; 32GB ECC; nVidia Titan V CEO | Asus ROG Gene XI Intel i7-9700k nVidia 3070Ti

Offline

Board footer

Powered by FluxBB