Re: [SLUG] network profiles

From: Matt Moen (mattlists@younicks.org)
Date: Fri Feb 27 2004 - 11:41:18 EST


And just for The Logan's sake, my reply is on the bottom...

> Hello Sluggers
>
> I have SUSE Linux Pro 9.0
>
> I would like to configure my laptop so I can have multiple configurations for
> my internal nic card. For example my home network uses DHCP and is pretty
> vanilla and is currently configured at eth0. This office assigned me a
> static IP address and supplied me with the IP address for gateway and DNS.
>
> I need to be able to create a network profile that has all the setting for
> work and one for my home network settings. So two configurations pointing
> at the same network device that I can select based on if I am home or at the
> office.
>
> Any idea how I create this?
>
> Can I set it up so on boot I can choose a profile?

I know for a fact that Debian has some sort of nifty mechanism for
dealing with this sort of situation, but there may be an easier
solution.

Can you convince the folks at work to configure their DHCP server to
hand your laptop's MAC address a certain IP, thus making your laptop's
IP "static", while still using a normal DHCP configuration. If their
DHCP server can't handle such basic functionality that's been with ISC's
dhcpd for years, then kindly suggest the possibility of switching to
dhcpd. Last I heard, though, even MS's dhcp server can do this at this
point.

Or you could just write yourself a script that you run manually that turns
off the dhcp client daemon on your laptop and manually applies ifconfig
and route commands and replaces your /etc/resolv.conf file with the
appropriate settings. The DHCP server solution is certainly easier than
this.

Hope this helps slightly,

Matt Moen

-- 
Matthew Moen

Microsoft Exchange: Incontrovertible proof that sometimes you /should/ shoot the messenger.

The following disclaimer is provided courtesy of, and willy-nilly by, NKS: ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:16:07 EDT