Set LAN IP after install

I forgot to mention

Choose an IP to assign to an interface, for example

ifconfig eth0

Then reconfigure the system:

signal-event system-init

Found another thread:


If I recall correctly, when installing NethServer if you don’t specify IP settings it will configure interfaces with DHCP. If the setup is using CentOS installer (Anaconda) it allows to configure network interfaces.
Then you should be able to access the server-manager web page pointing browser to https://server-ip:980.

If for some reason you can not access the server-manager, and you want to set the GREEN interface from command line, you can specify it providing the correct network interface name and network parameters:

[root@localhost ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    inet brd scope global dynamic enp0s3
3: enp0s8: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
[root@localhost ~]# db networks set enp0s8 ethernet role green ipaddr netmask network onboot yes bootproto static
[root@localhost ~]# signal-event interface-update

Point client’s browser to https://server_ip:980


Thanks guys I just can’t get it to work despite following all steps given. I can see the interface set up as but can’t connect from my laptop using The only thing working for me at the moment on my test machine is clearos. I already have pfsense on a dedicated machine protecting my home. I just find pfsense hard to use and wanted to change to nethserver.

Please give it another try, NS can be a simple UI gateway and will fit your needs I think.

If you get no address by DHCP a fallback IP is assigned:

So you may try to connect with your laptop to one interface after the other and one of them should have

There are other installation modes:

  • manual installation: you can setup network on install
  • unattended install: DHCP or fallback


What’s the output if you run these two commands?

ip addr
db networks show
1 Like

Here is a simple screenshot documentation to get Nethserver installed AND access the servermanager:

After booting you will be greeted with this screen:

You opt for the first choice, the interactive installation. This will bring you to the next screen:

Work through these items in the order of the red dots with numbers. 1 will open this screen, select a region and click Done.

Next was the keyboard layout. I always accept defaults, they suit me:

Lastly, the network settings will need to be set:

We need to change the IPv4 settings, so we click on that tab:

We then change the method to manual:

…and enter the desired IP configuration and hit save:

You probably also want to change your hostname:

Finaly, confirm your settings and press done:

And we can now start the install:

Click ‘Set root password’ and enter a password, click done when ready:

and wait till ready.


When it shows a logon prompt, goto the IPv4 address you entered on https and add port 980. Our example would be: (as per your examples, dunno if I got the default gateway right) Confirm the security exception and you should end up with this:

Yes, the IP here differs, I had to change the IP to my local settings :wink:

Now logon with the root account and the password you just set and work through the final setup steps, and continue to configure your server:

(next next, nethad.pljnet.local, next next next)

…profit :wink:


It would be really helpful if the login prompt said that directly: “To configure this server, browse to https://whatever:980 with your web browser.” Many other software distributions that are designed with a web GUI as their primary means of administration do this.

Edit: See, e.g., FreePBX:

or RancherOS:


I’m always a bit conservative when it comes to running servers that are not ‘just’ a media center or something like that. One should not be pampered to setup a server without knowing what it is they are doing … it’s kinda dangerous …

1 Like

Wow, I am overwhelmed from the support from this forum. Never imagined I would get so many good people wanting to help. I am certainly not giving up :grin:
Is my setting LAN-interface below correct?
Netmask: 24
DNS server:


Can you reach the webinterface?

The IP address is ok.
As regards the netmask: 24 is cidr notation, I’d use just to be sure it’s accepted.
On your internal(green, LAN) network inteface you won’t need gateway and dns server but they should be set on external (red, WAN) interface.
Your clients would need gateway and dns server in their config but step by step.

For reaching the webinterface ip address and netmask on one of your interfaces should be enough to work.

1 Like

Hi, I followed your instructions. It is running installation now and will feedback once done. Cheers.


OK, this way you should be able to browse to after installation. Good luck!

1 Like

:cry: Nothing I do works. I thought it could be my laptop not connecting to webinterface but same result after I connect the LAN cable to another laptop.
A few days ago I installed clearos v7.4 and everything worked out of the box with minimal input. I can access webinterface via a laptop and able to access internet.

Ok here is my setup at home. Blue means a working system and yellow is my test Nethserver system.

You may give your laptop a static ip:


Then try to connect to one after the other of your 3 network interfaces with lan cable, direct, from laptop to nethserver. One of these 3 connections has to work.

1 Like

What about adding your howto to the wiki? The installation howtos there cover Nethserver 6.7 with text install so it’s time for an upgrade…

1 Like

No problem,but I need to test voor @davidep and need to describe a bunch of other things as well … feel free to rip it and put it there :wink: no credit needed.


OMG :joy: OMG :joy: OMG :joy:
I finally got in webinterface :grinning:
I used the command scrip below using enp4s0 instead of enp0s8:

Thank you Thank you


Glad it works!

Please mark the answer that helped you (the answer of @dnutan in this case) as solution:

This way others with similar problems will be able to find a solution quickly.

Have fun with Nethserver … you’ll probably be happy you went the extra mile! Welcome on board :slight_smile:

If I can make a small suggestion. Would be ideal if Nethserver can show a network console after first reboot. This is how I got clearos 7.4 to work the first time without needing to use command line.

Usually you get to network config after first setup wizard.

What about this solution?