Change IP to Static from DHCP then my server cant be found on my network

  • I have installed OMV a number of times but when I change the IP from DHCP to static I loose the OMV on my network and cant see it when I scan the network. I fill in the IP address, Mask - 255.255.255.0 and my gateway. Hit save and then wait.

    When i scan the network MOV server no longer appears

    Any suggestions how I can recover the setup?

    Thanks

    Keith

    • New
    • Official Post

    I have installed OMV a number of times but when I change the IP from DHCP to static I loose the OMV on my network and cant see it when I scan the network. I fill in the IP address, Mask - 255.255.255.0 and my gateway. Hit save and then wait.

    When i scan the network MOV server no longer appears

    Any suggestions how I can recover the setup?

    Thanks

    Keith

    Are you sure that's your mask?


    First, log in to your server (sounds like you'll need a keyboard and display for this at this point).


    omv-firstaid and reset your IP with omv-firstaid (make sure you're choosing the proper network device if you have several)


    Use the new IP to log in to the webUI and go to Networking/Interfaces. Click your Interface, and choose Edit

    Change IPV4 from DHCP to Static

    IP: This the IP you want for your server.


    Netmask: To get your Netmask, SSH your server (you'll need the new IP at this point).. and make sure net tools is installed (if you are not root, you'll need to be a sudo user here)


    Code
    apt install net-tools


    After net-tools is installed, execute this command:


    Code
    ifconfig | grep mask

    This will show your Netmask next to your server IP

    Next is your gateway, which should be your router IP... if you're not sure on that:


    Code
    ip r | grep def

    Using my system as an example...


    My server IP is 192.168.1.166, so my netmask is 255.255.255.0

    The second command shows my default route is 192.168.1.1 (my routrer IP ) for my network device.

    Code
    root@openmediavault:~# ifconfig | grep mask
            inet 10.42.0.1  netmask 255.255.255.0  broadcast 10.42.0.255
            inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
            inet 192.168.1.166  netmask 255.255.255.0  broadcast 192.168.1.255
            inet 10.42.0.0  netmask 255.255.255.255  broadcast 0.0.0.0
            inet 127.0.0.1  netmask 255.0.0.0
    root@openmediavault:~# ip r | grep def
    default via 192.168.1.1 dev enp0s31f6 proto static 
    root@openmediavault:~# 

    Disable IPV6


    Scroll down and set your DNS servers. You can use your service providers DNS servers, or use Googles like most people do...


    Code
    8.8.8.8,8.8.4.4


    When you're done, it should look something like this:



    Click Save.

    If you changed the IP address, you'll need to SSH back in on the new IP address and then also reload the webUI from the new IP

  • This is what I get from my mew install of OMV after having to reinstall after I set up from your notes.

    I did a save and lost all connection again.

    Dont know whats happening.



    /home/aptec$ sudo ip r | grep def

    default via 192.168.50.1 dev end0 proto dhcp src 192.168.50.136 metric 100


    /home/aptec$ sudo ifconfig | grep mask

    inet 192.168.50.136 netmask 255.255.255.0 broadcast 192.168.50.255

    inet 127.0.0.1 netmask 255.0.0.0

    • New
    • Official Post

    I saw you pop in discord.. I'll be in there a little bit if you want to try and figure this out.

  • KM0201

    Added the Label resolved
  • KM0201

    Added the Label OMV 7.x

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!