Additional IP Address

Discussion in 'Installation/Configuration' started by dayjahone, Mar 7, 2011.

  1. dayjahone

    dayjahone Member

    How do I add additional IP addresses on a system running ubuntu hardy heron and ispc2?
  2. germinator

    germinator New Member

    do you only have additional ips or a new subnet ?

    in both ways this should work .. edit your /etc/network/interfaces and add

    up ip addr add yourip/32 dev eth0
    down ip addr del yourip/32 dev eth0
    of course you have to insert yourip and the network adapter if nessesary

    then restart the service networking
    Last edited: Mar 7, 2011
  3. dayjahone

    dayjahone Member

    It's the same subnet. In /etc/network/interfaces, do I just add another line:

    # The primary network interface
    auto eth0
    iface eth0 inet static
    address [original ip address]
    netmask ...
    gateway ...

    iface eth0:0 inet static
    address [new ip address]
    netmask ...
    Last edited: Mar 8, 2011
  4. germinator

    germinator New Member

    that should work as well
  5. dayjahone

    dayjahone Member

    Is there anything else?

    I added those lines in /etc/network/interfaces and added the ip address in ISPConfig.
  6. germinator

    germinator New Member

    you have to restart the networking service .. on debian you do that by

    /etc/init.d/networking restart
    probably works for ubuntu too. But be sure you have edited the interfaces file correctly .. since you wont be able to reach the server at all if theres a mistake .. im saying this due to experience :p

Share This Page