GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Second IP in CentOS (https://gfy.com/showthread.php?t=931376)

donnie 10-03-2009 08:44 AM

Second IP in CentOS
 
I am running CentOS on my server and I would like to host more than one domain and use unique IP for each one.

Server came set up with only one IP but I have been assigned 10 more IP?s.

Is there any guide on how to do this? I could ask my host to do it for me but I want to learn how it is done?

Also I am using DirectAdmin on this server if that makes any difference...

camgirlshide 10-03-2009 09:00 AM

add virtual interface 1 to eth0:
ifconfig eth0:1 <ipaddress> netmask <netmask>

or, install webmin and click on add virtual interface

Jarmusch 10-03-2009 09:17 AM

To do it through DirectAdmin, login as admin. There you can add new IP's in the IP Management page.

If you want each domain to have it's own IP, you will have to create a new user account for each domain. You can do that at reseller level

split_joel 10-03-2009 10:11 AM

Quote:

Originally Posted by donnie (Post 16386077)
I am running CentOS on my server and I would like to host more than one domain and use unique IP for each one.

Server came set up with only one IP but I have been assigned 10 more IP?s.

Is there any guide on how to do this? I could ask my host to do it for me but I want to learn how it is done?

Also I am using DirectAdmin on this server if that makes any difference...

from shell do the following

nano /etc/sysconfig/network-scripts/ifcfg-eth0:1
DEVICE=eth0:0
BOOTPROTO=static
IPADDR=IPADDRESS
ONBOOT=yes

save the file then type

service network restart

or in direct admin

Login as your main admin account, and look for the ip manager

good luck


All times are GMT -7. The time now is 11:35 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123