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! ;)

  • 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 5.6.12 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.2 | kvm plugin 5.1.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    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?



    ;)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!