The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Some Linux network config help needed by Control2006-09-07 02:00:50
  Some small pointers by ttlogic 2006-09-07 02:17:02
AFAIK you cannot tell ifconfig to get the IP address via DHCP. You'll need to just 'ifconfig eth0 up' the interface, than start the DHCP client on that interface ('dhclient eth0' for me, but your distro may use another dhcp client like pump).

Proxies: I have no idea.

DNS: the DNS servers to use are usually stored in /etc/resolv.conf. All decent DHCP clients modify this file based on the info they get from the server; for your purpose you could make /etc/resolv.conf.work which you then copy to /etc/resolv.conf when enabling your work profile.

A final thought: it may be possible to automate the selection of profiles. One possible way to do that: first try to use use DHCP. If that succeeds, set the remaining stuff not done by dhcp (like the proxy?) to sensible values. If dhcp times out, fallback to the work profile. This is of course assuming work doesn't even *have* a dhcp server on the network...
[ Reply ]
    .. whose info would be not acceptable by anymouse2006-09-07 02:19:18

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)