Need help configuring omv for access on two networks. static routes?

    • OMV 1.0
    • Resolved
    • Need help configuring omv for access on two networks. static routes?

      Hello, I need help getting my OMV server to be an accessible resource on two networks in my home which are a DSL gateway (modem/router combo) I'll call Network A and a tomato router connected to a cable modem I'll call Network B.

      I installed a second NIC in my server today thinking it would be an easy job but soon realized it was beyond my knowledge of networking.

      omv configuration for Network A is:
      eth0
      IP 192.168.1.102
      Subnet 255.255.255.0
      Gateway 192.168.1.254

      omv configuration for Network B is:
      eth1
      192.168.1.103
      255.255.255.0

      I learned that a system can't have more than one default gateway so I setup a static route for the computer(s) on Network B I wanted to be able to access omv's services.
      192.168.1.100 via 192.168.1.1 dev eth1

      This allowed my desktop on Network B to successfully ping omv on Network A but, thats all. I couldn't access any of the services like the webui, samba shares, plex, etc.

      The only thing I can guess is that none of the services are configured to bind to eth1. Is there an easy way to fix that without re-configuring all the services? Am I even going about this the right way? Any help would be much appreciated.
      Images
      • network map.PNG

        67.69 kB, 876×568, viewed 1,173 times

      The post was edited 5 times, last by watari ().

    • Ok I've read again if you want Lan clients of network A(dsl modem router) to reach clients on B(tomato) they'll do it through omv. So you need a two static routes one in router A and one in B and forwarding enabled (I think is enabled by default now).
      tell me when you have the two different subnets ready and different ip assigned to omv. You have to leave one with static with no gateway.
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • watari wrote:

      I just want to make sure we're on the same page. I don't want the lan clients from the two networks to be able to connect together. I just want both networks to be able to access the OMV machine.


      Yes i know. Just make sure there are different subnets for each router. One one card setup a static ip with no gateway, the other one with dhcp or static but with gateway (and dns). Depends on what inet access you want to use is the one you want to put the gateway.
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • Awesome. Works perfectly. Thank You subzero79 for the help.

      Source Code

      1. root@server:~# ip route
      2. default via 192.168.1.254 dev eth0
      3. 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.102
      4. 192.168.2.0/24 dev eth1 proto kernel scope link src 192.168.2.102
      5. root@server:~# ifconfig
      6. eth0 Link encap:Ethernet HWaddr 40:16:7e:27:d9:37
      7. inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
      8. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
      9. RX packets:48083 errors:0 dropped:0 overruns:0 frame:0
      10. TX packets:21608 errors:0 dropped:0 overruns:0 carrier:0
      11. collisions:0 txqueuelen:1000
      12. RX bytes:14282549 (13.6 MiB) TX bytes:15901800 (15.1 MiB)
      13. eth1 Link encap:Ethernet HWaddr 60:e3:27:01:b6:d1
      14. inet addr:192.168.2.102 Bcast:192.168.2.255 Mask:255.255.255.0
      15. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
      16. RX packets:9725 errors:0 dropped:1 overruns:0 frame:0
      17. TX packets:8223 errors:0 dropped:0 overruns:0 carrier:0
      18. collisions:0 txqueuelen:1000
      19. RX bytes:1102310 (1.0 MiB) TX bytes:9744148 (9.2 MiB)
      20. lo Link encap:Local Loopback
      21. inet addr:127.0.0.1 Mask:255.0.0.0
      22. inet6 addr: ::1/128 Scope:Host
      23. UP LOOPBACK RUNNING MTU:65536 Metric:1
      24. RX packets:160 errors:0 dropped:0 overruns:0 frame:0
      25. TX packets:160 errors:0 dropped:0 overruns:0 carrier:0
      26. collisions:0 txqueuelen:0
      27. RX bytes:26274 (25.6 KiB) TX bytes:26274 (25.6 KiB)
      Display All