HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   Additional IP Address (

dayjahone 7th March 2011 14:43

Additional IP Address
How do I add additional IP addresses on a system running ubuntu hardy heron and ispc2?

germinator 7th March 2011 18:13

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

dayjahone 8th March 2011 01:11

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 ...

germinator 8th March 2011 15:58

that should work as well

dayjahone 9th March 2011 12:30

Is there anything else?

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

germinator 9th March 2011 14:45

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

All times are GMT +2. The time now is 22:43.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.