On 2005-12-27 11:54:08, Joachim Fahnenmüller wrote:
> Hi everybody,
> 
> I read man interfaces but didn't understand completely.
> 
> I have a laptop with 1 interface eth0, and I want 2 setups: at work with inet
> dhcp, at home (to exchange data with my PC) inet static with a certain IP. 
> (If I
> understand correctly that is what they call 'logical interfaces'.)
> 
> What must I write in /etc/interfaces so that I can do e. g. 
> ifup eth0-home (eth0=home ?)
> to start eth0 with the desired settings?

I would recommend using laptop-net. It can automagically detect
whether you're at home or at work and adjust the network settings
accordingly.

With my setup, it looks for ip 192.168.1.1 (my router at home) and
if it is found uses ip 192.168.1.104. Otherwise it uses DHCP
(at university).


Felix

-- 
Felix C. Stegerman <[EMAIL PROTECTED]>

"Any sufficiently advanced bug is indistinguishable from a feature."
 -- R. Kulawiec


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to