You are not logged in.

#1 2014-09-14 10:33:47

Mons1990
Member
From: Pianoro (BO) - Italy
Registered: 2012-04-23
Posts: 102

Correct way to set static IP

Hi guys.
I have a fast question: is better to set static IP via /etc/systemd/system/network@.service, access the router setting page and use the "Pre-assign IP addresses" function or both?
Thank you.

Last edited by Mons1990 (2014-09-14 10:34:21)


Hardware configuration: Intel Core i5 3.4GHz, 8GB DDR3 RAM, NVIDIA GEForce 9600GT
Software configuration: Arch Linux, default kernel, NVidia 340xx drivers, Gnome 3 on X.Org
Mons

Offline

#2 2014-09-14 10:43:18

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Correct way to set static IP

A bit vague, as we don't know what router you're using and what exactly the "Pre-assign IP addresses" function does on it.

IMO systemd-networkd is the best way to set a static IP..

Offline

#3 2014-09-14 15:12:37

Mons1990
Member
From: Pianoro (BO) - Italy
Registered: 2012-04-23
Posts: 102

Re: Correct way to set static IP

tomk wrote:

A bit vague, as we don't know what router you're using and what exactly the "Pre-assign IP addresses" function does on it.

It's a router manufactured by my provider and the screenshot is in Italian but i hope it can be useful.


Hardware configuration: Intel Core i5 3.4GHz, 8GB DDR3 RAM, NVIDIA GEForce 9600GT
Software configuration: Arch Linux, default kernel, NVidia 340xx drivers, Gnome 3 on X.Org
Mons

Offline

#4 2014-09-14 16:46:35

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Correct way to set static IP

Still not completely clear, but if we assume that it's assigning a DHCP static lease, you would just configure your interface to use DHCP. I would recommend systemd-networkd for this also.

Offline

#5 2014-09-14 18:25:08

BluMongoose
Member
From: 'Murica
Registered: 2012-04-24
Posts: 49

Re: Correct way to set static IP

I have set my box up both ways and everything went fine. It didn't appear that there was much if any difference. I think its six of one and half a dozen of the other.


"Think for yourself and question authority." -T. Leary

Offline

Board footer

Powered by FluxBB