[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: single machine, different IP addresses



On Tue, 08 Feb 2011 10:58:55 +0000, Camaleón wrote:

>>>> Is it possible to make a single machine having/answering to different
>>>> IP addresses (I'm using DNSmasq as the dns server)?
>>>>
>>> You can use a virtual interface:
>>> 
>>> ifconfig eth0:0 192.168.0.1 netmask 255.255.255.0
>>> 
>> IMO the better choice is to use ip tool. For example; ip a a
>> 192.168.0.1/24 dev eth0

Besides that, I need to properly configure route, and no need to worry 
about dns server, correct? -- I don't need a dns name for the 2nd 
address, just an IP is enough.

> "ip" tool settings will lost after computer restarts unless you make an
> script that sets the data on every network reboot... I think IP alias
> (virtual interface) is the way to go.

How can it be possible, Camaleón? 

I did a search, but found out otherwise --
http://www.faqs.org/docs/Linux-mini/IP-Alias.html#KEEPSETTINGS
Is it too old now (2001-01-23)?

Thanks

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


Reply to: