You are not logged in.
I setup 4 virtual machines a couple months ago and they've all had static IPs since. Today I played around with networking on one of the servers and changed the following:
Renamed the network interfaces following this https://wiki.archlinux.org/index.php/Ne … evice_name
Played around with the ip routes using the manual for ip route.
After these changes the static ip on one of the two network interfaces was no longer persistent. wan0 (formerly enp0s3), which I believe uses dhcp, still works fine but lan0 (formerly enp0s8) no longer works.
I'm assuming that when I set it up I assigned the static IP by specifying the IP for enp0s8 but I can't figure out where I did it. I didn't install a network manager and there's nothing in /etc/netctl besides the default folders.
Where else could I have assigned the static IP to enp0s8 aka lan0?
Offline
Rather than having the community guess, check your journal and see what is assigning the IP address.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Welcome to the forums ZephyrDoodles ![]()
Can you post the output of...
systemctl list-unit-files --state=enabledThis will tell us what software you're using to mange your network connection.
Offline
I looked for over an hour and as soon as I post I find the answer 5 minutes later.
It was in /etc/systemd/network. There was a file named enp0s8.network which had the IP information. Renaming it and changing the name in the file did the trick.
Since I already posted: is it ok to use /etc/systemd/network instead of /etc/netctl?
edit: there were some replies when I refreshed so here are the answers
Rather than having the community guess, check your journal and see what is assigning the IP address.
Oh sorry I didn't know there was a journal! I'll go find out what that is
Welcome to the forums ZephyrDoodles
Can you post the output of...
systemctl list-unit-files --state=enabledThis will tell us what software you're using to mange your network connection.
UNIT FILE STATE
autovt@.service enabled
dbus-org.freedesktop.network1.service enabled
dhcpcd.service enabled
getty@.service enabled
iptables.service enabled
systemd-networkd-wait-online.service enabled
systemd-networkd.service enabled
sshd.socket enabled
systemd-networkd.socket enabled
remote-fs.target enabledLast edited by ZephyrDoodles (2017-10-22 14:22:35)
Offline
You can use whatever you want to manage your network, that's up to you.
Just make sure you don't run conflicting services at the same time.
Offline
is it ok to use /etc/systemd/network instead of /etc/netctl?
It depends on which network manager you are using. /etc/systemd/network is for systemd-networkd and /etc/netctl is for netctl. Like slithery said, it is up to you to choose which one you want, just make sure you only have one running at a time.
Offline
How did you install Arch?
Offline