Re: single machine, different IP addresses
On Tue, 08 Feb 2011 11:27:27 +0100, Artur Frydel wrote:
> Day Tue, 08 Feb 2011 08:44:02 +0100, you wrote:
>
>> Am 08.02.11 06:53, schrieb T o n g:
>>> Hi,
>>>
>>> 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
"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.
Greetings,
--
Camaleón
Reply to: