Changing IP address from command line


(Antonio) #1

Hello please I have a problem with the server Nethserver
I should change internal IP via commands
I do not know the commands to do so can you help me
I can no longer access the server after making a change


(Artem Fedai) #2

Have you any access to Nethserver?


(Antonio) #3

You through commands with root


(Antonio) #4

You through commands with root


(Artem Fedai) #5

Nope you need to modify db and run command interface-update


(Antonio) #6

How do


(Artem Fedai) #7

Show pls output of the command below:
db networks show


(Antonio) #8

as I do not know


(Antonio) #9

The server works but I can not enter with IP wanted to change it through root how do


(Stefan) #10

@Nas instructions means this.
When you on the command line of your server type following command;
db networks show

Post the result.
If possible you can copy and past.
If you write your post on a different computer you have to type it.


(Giacomo Sanchietti) #11

You should change the ip address using the db command.
Example, if your interface is eth0:

db networks setprop eth0 ipaddr 192.168.1.1
signal-event interface-update

You can find more doc here: http://docs.nethserver.org/projects/nethserver-devel/en/latest/network.html


Set LAN IP after install
(Antonio) #12

thanks Giacomo everything OK or removing the card and 2 or postponed
the server and it all came back ok, then either deleted from DB and then the second card
or postponed and or off the server, then either put the second card and the socket, then
or reinstalled the card and time and everything OK

:sweat_smile:


(Alessio Fattorini) #13

Please Antonio can you translate your last post for others non-Italian people? It would be much appreciated


(Antonio) #14

I’m sorry I had not noticed