Web Hosting Talk







View Full Version : 2 IP Addresses on 1 NIC?


hci
01-30-2002, 11:40 AM
On the Raq 4 with only one NIC is it possible to assign it 2 IP addresses such as 209.3.3.4 & 209.3.3.5? I heard you can do this on Linux but not sure on a Cobalt. What I want is to host my own DNS which requires at least 2 IP's, ns1 and ns2.

Matthew

pitchford
01-30-2002, 12:00 PM
You can do this on any box... For example I've got 32 IPs on my RaQ and 5 on my Unix server... The possibilities are endless. However, they MUST be on the same network; otherwise you'll need 2 NICs.

I recommend using Webmin to set this up.. It's under Hardware > Network > (your network IP) then add a virtual interface... You can do this via the shell, but I don't know the commands...

Also, forgot to mention, your ISP must give you permission to use that IP address...

Good Luck!

Tommy

hci
01-30-2002, 12:25 PM
I am looking at the online demo and do not see where to do this. The online demo does appear to have 2 NIC's though

http://demo.cobalt.com/demoraq.html

Matthew

ffeingol
01-30-2002, 02:57 PM
Under the sheets, a RaQ is just a linux box, so this can be done on a RaQ. This thread (http://www.serverexpert.com/viewtopic.php?t=111&highlight=ifconfig) might shed some light on it for you.

Frank

bane
02-01-2002, 10:34 PM
This might help. It works in BSD, I am not sure about linux. :)

http://freebsd.peon.net/tutorials/6/

SI-Chris
02-02-2002, 12:59 AM
Originally posted by hci
On the Raq 4 with only one NIC is it possible to assign it 2 IP addresses such as 209.3.3.4 & 209.3.3.5? I heard you can do this on Linux but not sure on a Cobalt. What I want is to host my own DNS which requires at least 2 IP's, ns1 and ns2.
Matthew
First, make sure your provider gave you two IPs. After this, all you need to do is specify the IP number when you click the Add Virtual Site button. The RaQ will handle the creation of the network files needed to handle the second IP. You absolutely do not need a second NIC, nor do you need to do any special setup. Just specific the IP address, and the RaQ will do the rest.

One comment said you should use Webmin. Since it sounds like you're new to dedicated servers, *do not* install Webmin. You can permanently kill the RaQ control panel if you issue a command in Webmin that conflicts with the RaQ's operating files.