HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Additional IP Address (http://www.howtoforge.com/forums/showthread.php?t=51772)

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

Code:

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

Code:

/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 06:48.

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