Where to add static route ?

  • Hello


    I search in different places but I cannot find the relevant solution


    I need to add a static route , it is OK by command line ( but I do not find where to put to have it at reboot :


    Code
    #route add -net 10.88.0.0 netmask 255.248.0.0 dev ens224
    #route add -net 10.88.0.0 netmask 255.248.0.0 gw 10.x.x.x



    1/ /etc/network/interfaces is "empty" (managed by openmediavault)


    2/ I read about a plugin I cannot find in the list



    It is probably easy to do, but not to find where to do for a beginner in OpenmediaVault ;)


    Thanks

    • Offizieller Beitrag

    1/ /etc/network/interfaces is "empty" (managed by openmediavault)

    OMV uses netplan.io to configure the network. Drop a file to /etc/netplan/ according to their documentation.


    Example:

    /etc/netplan/myroutes.yaml

    Code
    network:
      ethernets:
        ens224:
          routes:
          - to: 10.88.0.0/13
            via: 10.x.x.x

    The rest is done by OMV. You may need to run netplan apply or reboot the system.

    2/ I read about a plugin I cannot find in the list

    It has been dropped in OMV5.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!