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

[Solved]: single machine, different IP addresses



On Tue, 08 Feb 2011 15:08:15 +0100, Robert Grimm wrote:

>>> 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.
> 
> It is enough to insert
> 
>         post-up ip addr add dev eth0 192.168.0.1/24
> 
> into the stanza of the appropriate interface.

yep, that works perfectly.

Thanks everyone!

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


Reply to: