Secondary IP address

  • Hello guys,


    Using the GUI I couldn' t add a secondary ip address. Do you know if I can add it using CLI and using the network restart?



    This is how it is working now
    # eth1 network interface
    auto eth1
    allow-hotplug eth1
    iface eth1 inet static
    address 192.168.10.149
    gateway 192.168.10.254
    netmask 255.255.255.0




    This is the modification I need to do
    # eth1 network interface
    auto eth1
    allow-hotplug eth1
    iface eth1 inet static
    address 192.168.10.149
    gateway 192.168.10.254
    netmask 255.255.255.0


    auto eth1:1
    allow-hotplug eth1:1
    iface eth1:1 inet static
    address 192.168.20.149
    netmask 255.255.255.0





    Will it work? I mean, will the network work with that configuration?


    Thanks for the help! ;)

    • Offizieller Beitrag

    Your modification will be overwritten if you make any network changes in the web interface. Better question is why do you want another IP address on the same adapter?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Use the "Add VLAN" menu.

    Learned something :) Never noticed that before...

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Thanks for the help ryecoaaron and votdev.




    Your modification will be overwritten if you make any network changes in the web interface. Better question is why do you want another IP address on the same adapter?

    I have three diferent ip ranges 192.168.10, 20 and 50 /24 in my internal network. They are all connected in my network and i am not using vlan to "undo" this chaos. The linux servers and some windows all use the main ip and a secondary ip to communicate.



    Use the "Add VLAN" menu.

    votdev i added the vlan using the secondary ip on it but i can not ping this ip. I added as vlan1 and now is eth1.1 on the GUI. The IP is up because i can arping it but not ping. Is there another way?



    ;)

Jetzt mitmachen!

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