Purpose of adding network interface

    • OMV 4.x
    • Purpose of adding network interface

      New

      What is the purpose of adding a network interface in System -> Network -> Interfaces -> Add ?

      I have no Interface added or listed on that page, and OMV is working fine on an Odroid HC2 connected to my router by ethernet, the only network interface on this device. It receives a static IP from the router's DHCP based on the MAC address.

      Is there any point to adding the ethernet interface in OMV? The main reason I wonder is because Diagnostics -> System Information -> Performance Statistics -> Network Interfaces is blank. Maybe the interface needs to be added in OMV for the network activity to be monitored?
    • New

      @Adoby Does leaving the network blank make the HC2s portable so you could use them at a relative’s home, say to watch movies even if their network is set with a different subnet?

      I’ve always set mine up with a network setting because that is what the guides direct. I will continue to do so with most of my machines but the ability to take one out might be nice.
      Retired. I love to garden and mess with computers. The more I mess with both the less I know about either.
      OMV 4.1.27-1 on a pair of Odroid hc2's w/ 4TB WD Blue. Running Nextcloud, Plex, & Heimdall - and a Raspberry Pi 3 running Pi-hole.
      Testing OMV 5.0.14-1 beta on an Odroid H2, HP dx2400, and Nanopi M4.
    • New

      Yes.

      The default settings are to use DHCP. That means that you have to have some other way to decide or figure out what the IP is. And it will work in any network as long as there is a DHCP server there.

      I use, just as @grokov do, a router with a DHCP server with a static lease for my HC2. So the DHCP server always gives the same IP to my HC2.

      You can configure DHCP in the network settings manually as well.

      For servers you are likely to prefer to use the same IP always.

      But if you have a local DNS server, perhaps dnsmasp, you can ignore the IP numbers and just use the name and domain of the server. But sometimes you may still need the number, for some apps, so a fixed IP is nice to have.
      OMV 4: 9 x Odroid HC2 + 1 x Odroid HC1 + 1 x Raspberry Pi 4
    • New

      Adoby wrote:

      I haven't added any network interface for my HC2s.
      Armbian images are setup to use network manager. That is why they work without a network adapter setup in the Network tab.
      omv 5.1.2 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.1.7
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • New

      ryecoaaron wrote:

      Adoby wrote:

      I haven't added any network interface for my HC2s.
      Armbian images are setup to use network manager. That is why they work without a network adapter setup in the Network tab.

      What does the Network tab set up? I won't add configurations unnecessarily, but it is sometimes difficult to tell what is needed and what isn't, and what underlying changes are actually made.

      What is required for network activity to be displayed in Performance Statistics?
    • New

      grokov wrote:

      What does the Network tab set up?
      With an x86 install using the OMV iso, the network adapter is setup using systemd networkd and will show up in the network tab. With armbian images, network manager sets up the adapter. So, when you add an adapter, it will configure networkd. network manager should really be disabled or removed at this point. My script doesn't do this because some people want a wireless connection (bad idea to me) and network manager is better for wireless.

      grokov wrote:

      but it is sometimes difficult to tell what is needed and what isn't, and what underlying changes are actually made.
      That is part of being flexible. Some people may have a configuration too complex for the OMV web interface. So, it was made optional.

      grokov wrote:

      What is required for network activity to be displayed in Performance Statistics?
      No idea. I disable that on all of my systems. It is also disabled by the script. Running on arm systems is hard on the sd card and requires resources that arm boards are low on.
      omv 5.1.2 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.1.7
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • New

      ryecoaaron wrote:

      when you add an adapter, it will configure networkd.
      Is that the preferred/recommended way?

      ryecoaaron wrote:

      I disable that on all of my systems. It is also disabled by the script. Running on arm systems is hard on the sd card and requires resources that arm boards are low on.
      Do you mean you disable network monitoring, or all Performance Statistics? Wouldn't the flash memory plugin help reduce sd card wear?

      I did wonder whether such statistics are saved in RAM and written to disk only occasionally (what frequency?). It is clear they are written to disk since they persist after reboots.
    • New

      grokov wrote:

      Is that the preferred/recommended way?
      Since ARM images aren't official OMV images and the ISO configures the network that way, I would say it is the preferred way.

      grokov wrote:

      Do you mean you disable network monitoring, or all Performance Statistics?
      All statistics via the Monitoring tab.

      grokov wrote:

      Wouldn't the flash memory plugin help reduce sd card wear?
      Help, yes. Perform miracles, no. The flashmemory plugin doesn't move all directories to ram to reduce writes.

      grokov wrote:

      I did wonder whether such statistics are saved in RAM and written to disk only occasionally (what frequency?). It is clear they are written to disk since they persist after reboots.
      The flash memory plugin syncs all files it is responsible for to disk on shutdown.
      omv 5.1.2 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.1.7
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • New

      ryecoaaron wrote:

      Since ARM images aren't official OMV images and the ISO configures the network that way, I would say it is the preferred way.
      To be clear, for armbian images sticking with the network manager method, i.e. not manually adding interfaces, is the preferred way?


      ryecoaaron wrote:

      The flashmemory plugin doesn't move all directories to ram to reduce writes.
      Do the directories for the Monitoring statistics get moved to RAM?

      I do like checking those statistics, for example to make sure resource utilization was not saturated during backup creation/verification which is what I use my HC2 for, but I'll keep in mind the potential problems.

      ryecoaaron wrote:

      Perform miracles, no.
      An outrage. When is OpenMiracleVault due??
    • New

      grokov wrote:

      To be clear, for armbian images sticking with the network manager method, i.e. not manually adding interfaces, is the preferred way?
      OMV configures networkd not network manager. So, using the web interface is the preferred way. I was just saying armbian images are not official OMV images and that is one of the reason they are doing it their way.

      grokov wrote:

      Do the directories for the Monitoring statistics get moved to RAM?
      Three of them do but not every directory on the system can be added. You would need a lot more ram. The plugin also only puts directories in ram that aren't critical to the system functioning if they are lost.

      grokov wrote:

      An outrage. When is OpenMiracleVault due??
      When it is ported to Windows....
      omv 5.1.2 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.1.7
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • New

      My curiosity has me itching to try adding the network interface in the GUI to see what happens, particularly with the monitoring. But safety first:

      1. Is there a way to recover if the network configuration goes wrong? I plan to just add the ethernet device, set the IPv4 method to DHCP, and nothing else. The Odroid HC2 is headless and the ethernet port is the only network interface, so if I did something stupid like setting IPv4 to disabled... it would be nice if there is a recovery method other than reinstalling.

      2. If the ethernet device is added in the GUI (networkd) and then it is removed, would I end up back in the current functioning state (network manager), or could it mess things up, possibly resulting in an inaccessible broken system?
    • New

      grokov wrote:

      1. Is there a way to recover if the network configuration goes wrong?
      Create an image of your OMV installation with e.g. Clonezilla before doing major changes or other potential 'dangerous' experiments.
      Or make your test in a VM environment.

      grokov wrote:

      ...or could it mess things up, possibly resulting in an inaccessible broken system?
      My personal experience says "Yes" :)
      OMV 3.0.99 (Gray style)
      ASRock Rack C2550D4I C0-stepping - 16GB ECC - 6x WD RED 3TB (ZFS 2x3 Striped RaidZ1)- Fractal Design Node 304
    • New

      cabrio_leo wrote:

      You´re joking
      For the most part. It is possible to install Debian in Windows Subsystem for Linux and in someone wrote a filesystem drive like Volker mentions here, OMV might actually work but that is gross...
      omv 5.1.2 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.1.7
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • New

      I used to add the network interface and also set a fixed IP in the GUI for my HC2. Worked fine. But I don't do that anymore. Also works fine.

      Now I rely on my small Gl-inet router to handle IP assignments and assigning name. Only one problem: The GUI for the Gl-inet router is for some reason inaccessible. I can login, but then it is blank. I use the Gl-inet router for DHCP, and local DNS using dnsmasq and also to bridge between 4G on my phone and the WiFi mesh. But everything still works fine, also after power cycling the router.

      At some point I will have to reset the Gl-inet router back to factory settings and add everything back. If it still works. Oh, well...

      The "correct" way, in my opinion, is to use DHCP to assign the IP. And use the DHCP server to manage the IPs. Preferably also the network names using dnsmasq. How you achieve this is up to you. With or without configuring the network interface manually. Since it is one less thing to go wrong, I just use the default settings and don't touch it.
      OMV 4: 9 x Odroid HC2 + 1 x Odroid HC1 + 1 x Raspberry Pi 4
    • New

      If you are using defaults on an armbian image, you are using dhcp with network-manager. If want to add a network adapter in the OMV web interface and set it to dhcp then remove the network-manager package to do things the "OMV" way, there should be no danger in doing this. I would have the omv install script I wrote remove network-manager and add the network adapter except a few people insist on using wireless and I feel network-manager does a better job with wireless.
      omv 5.1.2 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.1.7
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • New

      cabrio_leo wrote:

      Create an image of your OMV installation with e.g. Clonezilla before doing major changes or other potential 'dangerous' experiments.
      Good point. Taking a disk image of an SD card should be easy enough, and might as well have peace of mind.


      Adoby wrote:

      I used to add the network interface and also set a fixed IP in the GUI for my HC2.
      Setting a fixed IP in OMV could cause problems, no? eg. if moving it to a different network or changing subnet etc.


      ryecoaaron wrote:

      If want to add a network adapter in the OMV web interface and set it to dhcp then remove the network-manager package to do things the "OMV" way
      Is it necessary to remove network-manager? I would hope to be able to easily revert my changes.

      The HC2 has no wireless adapter anyway, so that's a non-issue in this case.




      ryecoaaron wrote:

      I would have the omv install script I wrote remove network-manager and add the network adapter
      What script is this? It is for maintenance/configuration?
    • New

      grokov wrote:

      Is it necessary to remove network-manager?
      No but I think you are too worried about this going wrong.

      grokov wrote:

      What script is this? It is for maintenance/configuration?
      Readme says it all. github.com/OpenMediaVault-Plugin-Developers/installScript I didn't want to build a ton of images for ARM boards. So, the script does everything needed to get OMV working on arm images from armbian and RPi foundation. It also works on x86 systems.
      omv 5.1.2 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.1.7
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!