multiple IP adresses possible ?

    • OMV 3.x
    • multiple IP adresses possible ?

      On my Server i got an bond0 Interface of two NIC configured. Everything works well.
      Now my hint is to give those Interface a second IP adress.
      If i try to add a new bond Interface with same Setting as the wirking one and only an different IP adress and Sub it is not possible to save.

      Source Code

      1. Fehler #0:
      2. exception 'OMV\Json\SchemaValidationException' with message 'slaves: The value 'bond0' doesn't match the pattern '/^(((eth|wlan)\d+|(en|wl)\S+),)*((eth|wlan)\d+|(en|wl)\S+)$/i'.' in /usr/share/php/openmediavault/json/schema.inc:478
      3. Stack trace:
      4. #0 /usr/share/php/openmediavault/json/schema.inc(370): OMV\Json\Schema->checkPattern('bond0', Array, 'slaves')
      5. #1 /usr/share/php/openmediavault/json/schema.inc(297): OMV\Json\Schema->validateString('bond0', Array, 'slaves')
      6. #2 /usr/share/php/openmediavault/json/schema.inc(624): OMV\Json\Schema->validateType('bond0', Array, 'slaves')
      7. #3 /usr/share/php/openmediavault/json/schema.inc(395): OMV\Json\Schema->checkProperties(Object(stdClass), Array, '')
      8. #4 /usr/share/php/openmediavault/json/schema.inc(285): OMV\Json\Schema->validateObject(Object(stdClass), Array, '')
      9. #5 /usr/share/php/openmediavault/json/schema.inc(257): OMV\Json\Schema->validateType(Object(stdClass), Array, '')
      10. #6 /usr/share/php/openmediavault/rpc/paramsvalidator.inc(59): OMV\Json\Schema->validate('{"devicename":"...')
      11. #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(170): OMV\Rpc\ParamsValidator->validate('{"devicename":"...')
      12. #8 /usr/share/openmediavault/engined/rpc/network.inc(688): OMV\Rpc\ServiceAbstract->validateMethodParams(Array, 'rpc.network.set...')
      13. #9 [internal function]: OMVRpcServiceNetwork->setBondIface(Array, Array)
      14. #10 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      15. #11 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('setBondIface', Array, Array)
      16. #12 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Network', 'setBondIface', Array, Array, 1)
      17. #13 {main}
      Display All

      how to fix this or am i on the wrong way ?
    • This does not work that way.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • See wiki.debian.org/NetworkConfigu…ddresses_on_one_Interface.
      OMV does not support that, you need to create a custom script in /etc/network/interfaces.d to do that.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • SORRY i found this:
      forum.openmediavault.org/index…erfaces-the-OMV-way-1-11/
      but dont understand about it.
      U wrote "create a custom script in /etc/network/interfaces.d" under this link "To do that a script must be located at /usr/share/openmediavault/mkconf/interfaces.d/."

      as i understand, if i only edit the etc/Network/Interfaces file like the wiki.debian.org link Shows, it will be overwritten by omv

      please be patiant with me.
    • votdev wrote:

      This is obsolete starting with openmediavault 4.0.18 (see github.com/openmediavault/open…d3f27749566afe2ae690033a2). Simply put your custom inetrface stanzas in a file below the /etc/network/interfaces.d directory.
      The link you mentioned is obsolete for OMV4. See link above for the successor solution.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Ok i made a mistake. I add a new eth0 in the omv gui and set my ip adress there.
      This seems not to work and it is not deleteable, How to fix this ?

      The second Thing i made was to edit the /etc/network/Interfaces

      Source Code

      1. # The loopback network interface
      2. auto lo
      3. iface lo inet loopback
      4. # bond0 network interface
      5. auto bond0
      6. iface bond0 inet static
      7. address 192.168.1.95
      8. gateway 192.168.1.1
      9. netmask 255.255.255.0
      10. dns-nameservers 192.168.1.15
      11. dns-search SpookyZone.local
      12. bond-slaves eth0 eth1
      13. bond-mode 4
      14. bond-miimon 100
      15. bond-downdelay 200
      16. bond-updelay 200
      17. iface bond0 inet6 manual
      18. pre-down ip -6 addr flush dev $IFACE
      19. auto bond0:0
      20. iface bond0:0 inet static
      21. adress 192.168.50.100
      22. netmask 255.255.255.0
      Display All

      but from the .50 Network the omv is not reachable or pingable.

      All i want to create is a iSCSI drive reacheble from the .50 network.

      The post was edited 2 times, last by tomspatz ().

    • now i am very confused ?(
      everything I want to achieve is to set an secondary iSCSI drive that would be reachable from the .50 network.As i understand there is a possibility to give the existing network interface a second, or third ip adress.With this ip adress (alias) i hoped to make this drive accesible from my 192.168.50.1/24 network

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

    • tomspatz wrote:

      As i understand there is a possibility to give the existing network interface a second, or third ip adress.W
      You can give multiple ip addresses in the interface, vlan is more secure an easy if you have managed switch and good linux router. As for using alias, then you need to setup a gateway(but not default) to route those packages on different subnet alias. For testing this you need to use iproute2 utils stack(is installed by default), don't use ifconfig or netstat.
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • Ok is this the right way ?
      openmediavault.readthedocs.io/en/latest/various/advset.html

      Is this config OK for my project ?

      Source Code

      1. #!/bin/sh
      2. #
      3. # This file is part of OpenMediaVault.
      4. #
      5. # @license http://www.gnu.org/licenses/gpl.html GPL Version 3
      6. # @author Volker Theile <volker.theile@openmediavault.org>
      7. # @copyright Copyright (c) 2009-2015 Volker Theile
      8. #
      9. # OpenMediaVault is free software: you can redistribute it and/or modify
      10. # it under the terms of the GNU General Public License as published by
      11. # the Free Software Foundation, either version 3 of the License, or
      12. # any later version.
      13. #
      14. # OpenMediaVault is distributed in the hope that it will be useful,
      15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
      16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
      17. # GNU General Public License for more details.
      18. #
      19. # You should have received a copy of the GNU General Public License
      20. # along with OpenMediaVault. If not, see <http://www.gnu.org/licenses/>.
      21. set -e
      22. . /etc/default/openmediavault
      23. . /usr/share/openmediavault/scripts/helper-functions
      24. OMV_INTERFACES_CONFIG=${OMV_INTERFACES_CONFIG:-"/etc/network/interfaces"}
      25. cat <<EOF >> ${OMV_INTERFACES_CONFIG}
      26. # The second IP adress
      27. iface bond0 inet static
      28. adress 192.168.50.100
      29. netmask 255.255.255.0
      30. EOF
      Display All
    • That’s obsolete needs to be changed in docs. The location is /etc/network/interfaces/interfaces.d and it doesn’t need to be a script just a normal network stanza.

      github.com/openmediavault/open…d3f27749566afe2ae690033a2


      Before pursuing this configuration have you tested if this setup works manually?
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • step by step what i made:
      i ve created a file /etc/network/interfaces.d/additonal_IP with that content:

      Source Code

      1. # Damit bekommt das Interface eine weitere IP Adresse (alias)
      2. iface bond0 inet static
      3. adress 192.168.50.100
      4. netmask 255.255.255.0
      This file is own by root and has 644 rights
      My existing interfaces file:

      Source Code

      1. # The loopback network interface
      2. auto lo
      3. iface lo inet loopback
      4. # bond0 network interface
      5. auto bond0
      6. iface bond0 inet static
      7. address 192.168.1.95
      8. gateway 192.168.1.1
      9. netmask 255.255.255.0
      10. dns-nameservers 192.168.1.15
      11. dns-search SpookyZone.local
      12. bond-slaves eth0 eth1
      13. bond-mode 4
      14. bond-miimon 100
      15. bond-downdelay 200
      16. bond-updelay 200
      17. iface bond0 inet6 manual
      18. pre-down ip -6 addr flush dev $IFACE
      Display All

      after that i log in with putty as root and do omv-mkconf interfaces and check the /etc/network/interfaces
      Unfortunately without any change in it.At the end i made e reboot of the omv machine but all with the same result.Where did i make the mistake ?
    • Users Online 1

      1 Guest