need help setting up IP over cli

    • OMV 2.x
    • Resolved

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • need help setting up IP over cli

      Hi All,

      Im in a situration where i can access my OMW server only from IPMI/BMC. So I have to set ip in CLI.

      I have 4 ethernet ports in the server where eth3 is the one that is cabled. The rest are without.

      currently my interface file looks like this, and is not working:

      Source Code

      1. auto lo
      2. iface lo inet loopback
      3. iface lo inet6 loopback
      4. auto eth0
      5. allow-hotplug eth0
      6. iface eth0 inet dhcp
      7. iface eth0 inet6 manual
      8. pre-down ip -6 addr flush dev $IFACE
      9. auto eth1
      10. allow-hotplug eth1
      11. iface eth1 inet dhcp
      12. iface eth1 inet6 manual
      13. pre-down ip -6 addr flush dev $IFACE
      14. auto eth2
      15. allow-hotplug eth2
      16. iface eth2 inet dhcp
      17. iface eth2 inet6 manual
      18. pre-down ip -6 addr flush dev $IFACE
      19. auto eth3
      20. iface eth3 inet static
      21. address 192.168.1.25
      22. netmask 255.255.255.0
      23. gateway 192.168.1.8
      24. dns-nameservers 8.8.8.8
      25. iface eth3 inet6 manual
      26. predown ip -6 addr flush dec $IFACE
      Display All


      What am i doing wrong? its suppose to be simpel :)
      About me:

      8 years experince as a IT consultant both filling the role as gerneral IT guy for small business to the role as expert within network, IT security, Storage and Virtualization
      Located in Denmark
      CEO of Ding IT
      Webpage: www.dingit.dk
    • offerlam wrote:

      What am i doing wrong? its suppose to be simpel


      Of course, you're the one making it complicated ;)
      Pick one iface and give a static address manually, let's say ifconfig eth2 192.168.1.20

      Access omv from that iface address (.20) and configure omv network from the web panel.
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • Hi Subzero79,

      Im not sure how you want me to set it.

      So i tried just typing

      Source Code

      1. ipconfig eth3 192.168.1.24
      eth3 is the only interface cabled.

      the /etc/network/interface didn't change from this but i tried to reboot and no luck
      I have commented out all the other interfaces so only eth3 is loaded.
      if i set up eth3 like this:

      Source Code

      1. #eth3 network interface
      2. auto eth3
      3. allow-hotplug eth3
      4. iface eth3 inet dhcp


      it doesn't pull a IP

      If i do this

      Source Code

      1. #eth3 network interface
      2. auto eth3
      3. allow-hotplug eth3
      4. iface eth3 inet static
      5. address 192.168.1.25
      6. netmask 255.255.255.0
      7. gateway 192.168.1.8
      8. dns-nameservers 8.8.8.8


      it still doesn't work... I have been able to catch this mashine on both .25 and .24... and i doing something wrong in the config?

      happy easter
      About me:

      8 years experince as a IT consultant both filling the role as gerneral IT guy for small business to the role as expert within network, IT security, Storage and Virtualization
      Located in Denmark
      CEO of Ding IT
      Webpage: www.dingit.dk
    • Is not ipconfig is ifconfig.
      On whatever interface is plugged to the switch, just assign an available ip
      address with "ifconfig eth3 ipaddress", after that try and ping the gateway or another lan client, you should get a response. If response is positive then access the omv Web panel from that ip address and start configuring the network using the webui
      Dont keep writing to the interfaces file, that one is ruled by omv and any changes will not persist at any network configurationI in the Web interface
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • Hi Subzero79,

      first, thanks for taking the time to help me :)

      I actually did it right.. i just wrote with windows fingers when i posted.. sorry.. and it didn't work..

      now i did it again

      Source Code

      1. ifconfig eth3 192.168.1.24


      it accepted the command and i rebooted. When it came back up in the boot up sequence i see this:

      Source Code

      1. DHCPDISCOVER on eth3 to 255.255.255.255 port 67 interval 8
      2. DHCPDISCOVER on eth3 to 255.255.255.255 port 67 interval 13
      3. DHCPDISCOVER on eth3 to 255.255.255.255 port 67 interval 20
      4. DHCPDISCOVER on eth3 to 255.255.255.255 port 67 interval 19
      5. DHCPDISCOVER on eth3 to 255.255.255.255 port 67 interval 1


      which made me think it was trying to find IP over DHCP... something is really wrong here i think.

      I have had success with both static and dhcp assigned ip on this OMW server and i left it with a static. Suddenly it stopped working and this let me to here..

      So even though i run your command it still seems to try DHCP and even though it seems to try DHCP it doesn't pull and IP. This has worked and i even got it to work at sometime today. But now it doesn't and i think you are right that its because i have tried to do this by editing the interface file.

      bad me :) and duly noted for next OMW server :)

      but now i have a serious problem
      About me:

      8 years experince as a IT consultant both filling the role as gerneral IT guy for small business to the role as expert within network, IT security, Storage and Virtualization
      Located in Denmark
      CEO of Ding IT
      Webpage: www.dingit.dk
    • I tried using omv-first and reset the network settings.. said yes to ipv4 and no to ipv6.

      after that i rebooted and the server tried to find a DHCP in boot where it ends up saying

      Source Code

      1. no DHCPOFFERS received
      2. no working leases in persistent database - sleeping.


      I know i have pulled and IP before so i don't think its the dhcp thats the issue..

      hope this can help to cast a light on the issue?
      About me:

      8 years experince as a IT consultant both filling the role as gerneral IT guy for small business to the role as expert within network, IT security, Storage and Virtualization
      Located in Denmark
      CEO of Ding IT
      Webpage: www.dingit.dk
    • Who said to reboot!!!? The changes with ifconfig are just temporarily, they will flush away the moment you reboot.

      Again access through the impi console
      Do you know which iface is plugged (ethX)?
      Assign ip address with the command
      ifconfig eth3 192.168.1.24

      Now start doing network test ping gw, lan client.
      Success? Again please don't reboot. Open your browser in the 192.168.1.24
      address. Report back


      If that doesn't work I suspect you have problems in your network organizing your switch and router.


      You can test dhcp manually by executing dhclient eth3
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server

      The post was edited 1 time, last by subzero79 ().

    • oh! im learning so much atm! :)

      so i did the ifconfig eth3 192.168.1.24

      but i couldn't ping anything.. and the webinterface didn't respond..

      I have also suspected the network but this is a network that i don't control. And since it has been working before i suspected that it was more likely a omv problem rather than a network problem..

      any other suggestion?
      About me:

      8 years experince as a IT consultant both filling the role as gerneral IT guy for small business to the role as expert within network, IT security, Storage and Virtualization
      Located in Denmark
      CEO of Ding IT
      Webpage: www.dingit.dk
    • Are you really sure that eth3 is the device where network is plugged in?

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • guys.. i owe so much cake you wouldn't belive..

      I was DEAD sure it was ETH3.. i was even sure that i have seen eth3 pull a ip at some point. maybe i changed the cabling and forgot but most likely im just a moron..

      davidh2k made recheck to be sure... and it was eth1 ..

      so sorry for taking your time with this! the fault lies with me.. thanks for the effort!

      happy easter
      About me:

      8 years experince as a IT consultant both filling the role as gerneral IT guy for small business to the role as expert within network, IT security, Storage and Virtualization
      Located in Denmark
      CEO of Ding IT
      Webpage: www.dingit.dk
    • You're welcome. ;)

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.