You are not logged in.

#1 2017-10-22 14:06:35

ZephyrDoodles
Member
Registered: 2017-10-22
Posts: 2

I statically assigned an IP but I don't know how I did it

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:

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

#2 2017-10-22 14:14:54

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,721
Website

Re: I statically assigned an IP but I don't know how I did it

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

#3 2017-10-22 14:17:04

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: I statically assigned an IP but I don't know how I did it

Welcome to the forums ZephyrDoodles smile

Can you post the output of...

systemctl list-unit-files --state=enabled

This will tell us what software you're using to mange your network connection.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2017-10-22 14:18:18

ZephyrDoodles
Member
Registered: 2017-10-22
Posts: 2

Re: I statically assigned an IP but I don't know how I did it

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

WorMzy wrote:

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

slithery wrote:

Welcome to the forums ZephyrDoodles smile

Can you post the output of...

systemctl list-unit-files --state=enabled

This 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                      enabled

Last edited by ZephyrDoodles (2017-10-22 14:22:35)

Offline

#5 2017-10-22 14:19:59

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: I statically assigned an IP but I don't know how I did it

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.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2017-10-22 20:03:33

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: I statically assigned an IP but I don't know how I did it

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

#7 2017-10-22 20:52:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: I statically assigned an IP but I don't know how I did it

How did you install Arch?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB