How to configure PC for wired/static and wired/DHCP networks?

Christopher Chan christopher.chan at bradbury.edu.hk
Wed Oct 27 14:54:12 UTC 2010


On Wednesday, October 27, 2010 10:30 PM, Dave Howorth wrote:
> On Wed, Oct 27, 2010 at 8:43 AM, Christopher Chan
> <christopher.chan at bradbury.edu.hk>   wrote:
> On Wednesday, October 27, 2010 07:57 PM, Tapas Mishra wrote:
>>> I want my netbook to connect automatically to both the office
>>> wired/static network and to the usual wired/DHCP networks.
>> Not possible unless you have two interfaces. How is the software
>> supposed to know when to load the office network and when not to?
>
> I don't know much about this area but isn't it pretty easy to let DHCP
> try to get an address and if that fails, then set the address in a
> script? dh_client provides an exit hook to run such a script and a ping
> to the work DNS server would serve as a rough check that the laptop was
> at work (check its MAC address if you're paranoid :).
>

That's where it goes way out of end user range. Of course, one can add 
all this stuff in. :-D. I'm sure sysadmins won't mind have all that work 
already done for them.




More information about the ubuntu-users mailing list