Second IP in CentOS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • donnie
    Confirmed User
    • Jan 2003
    • 1630

    #1

    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
    Confirmed User
    • Jan 2005
    • 1558

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

    or, install webmin and click on add virtual interface
    Useful adult webmaster links -
    Alphabetical list of solo models with webcam
    Stats on my best converting affiliate programs - camgirlshide webmaster blog
    complete list of affiliate programs I use.

    Comment

    • Jarmusch
       
      • May 2003
      • 12479

      #3
      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
      Last edited by Jarmusch; 10-03-2009, 08:18 AM.

      Comment

      • split_joel
        Confirmed User
        • Jan 2005
        • 2270

        #4
        Originally posted by donnie
        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
        E-mail marketing - Automation Scripting - IP Space
        AIM: splitjoelp ICQ: 254759453 skype - splitjoelp 702-941-6465

        Comment

        Working...