Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2008
    Posts
    606

    how can i add additional IP to my server ?

    i have an ubuntu server, i got new ip's from my host, i am supposed to bind it to the server and i dont know how.

  2. #2
    Under /etc/network/interfaces scroll down until you find your network interface card in the file (usually named eth0 for an ethernet connection, or wlan0 or wifi0 for a wifi connection).
    Change 'iface eth0 inet dhcp' to 'iface eth0 inet static'
    Add the following lines, substituting the IP address numbers with your desired configuration:

    address 192.168.0.10
    netmask 255.255.255.0
    network 192.168.0.0
    broadcast 192.168.0.255
    gateway 192.168.0.1
    dns-nameservers 216.10.119.241

  3. #3
    Join Date
    Apr 2002
    Location
    Auckland - New Zealand
    Posts
    1,575
    As they are probably additional IP addresses, you will use for example

    if eth0 is your current interface
    auto eth0:1
    iface eth0:1 inet static
    address 192.168.0.10
    netmask 255.255.255.0

    auto eth0:2
    iface eth0:2 inet static
    address 192.168.0.11
    netmask 255.255.255.0
    Change the IP and netmask accordingly. You don't need to specify the gateway for additonal ip's and the broadcast and network will be configured for you anyway, it's not necessary to add those, but you can if you want. You also want the auto eth0:x lines as well, so they come up automatically when restarting the network/rebooting etc.

Similar Threads

  1. I need a server wid additional C Class IPs?
    By mafid in forum Dedicated Server
    Replies: 9
    Last Post: 01-15-2004, 02:38 PM
  2. Additional Server for mySQL??
    By blaha in forum Dedicated Server
    Replies: 9
    Last Post: 02-26-2003, 04:31 AM
  3. Replies: 1
    Last Post: 01-21-2003, 12:51 PM
  4. additional server help
    By ivaninch in forum Dedicated Server
    Replies: 0
    Last Post: 08-03-2002, 08:35 AM
  5. Additional Name Server Aliases under WHM
    By wmac in forum Hosting Software and Control Panels
    Replies: 2
    Last Post: 05-03-2002, 05:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •