Re: [SLE] autodetection of network
From: James Knott (james.knott_at_rogers.com)
Date: 11/12/04
- Previous message: Jon Nelson: "Re: [SLE] Flash Card reader stops working under 9.1"
- In reply to: Mikkel Hansen: "[SLE] autodetection of network"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 12 Nov 2004 09:35:30 -0500 To: suse-linux-e@suse.com
Mikkel Hansen wrote:
> Hi,
> I am running Suse 9.2 on my laptop. The problem is, that at work I am on
> a network with a statically set IP address, while at home I am set up by
> DHCP. Is there a way to make Suse autodetect which network I am on? I
> was thinking that a script might do the trick, but I have no idea how
> that would look. Currently I have to start up Yast, and set the
> information at start up.
What you could do, is ping for a known IP address at home and if not
found, shut down eth0 and restart in dhcp. You might also be able to
see if the dhcp client returns an error, if it can't find a server and
then switch to static. Another way, is to use profiles. You'd use one
profile for home and one for dhcp. You can then add the profiles to
your boot menu, and make your selection at boot time.
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
- Previous message: Jon Nelson: "Re: [SLE] Flash Card reader stops working under 9.1"
- In reply to: Mikkel Hansen: "[SLE] autodetection of network"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|