You are not logged in.
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
Do you have some other Networking Manager running?
Offline
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
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
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
That wasn't the question, though.
Please post the output offind /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
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
"Postpone after sorting out the general problem" (don't make problem even harder
Offline
"Postpone after sorting out the general problem" (don't make problem even harder
Understood !
Well, ipv4 is already sorted .. silly mistake was made by me enabling dhcpcd and systemd-networkd
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
Two files, proper match - the filenames typically follow the nic names.
Offline
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