On Thursday 27 April 2006 15:10, Uwe Thiem wrote: > On 27 April 2006 15:55, Ow Mun Heng wrote: > > Hi All, > > > > In my current situation, my home network has 1 DHCP server for all the > > clients on the home network. > > > > My laptop, also runs a dhcp server, for when I use my laptop as a > > firewall/router at work. (no HUB/switch available) > > > > WHen I get home and I plug into the home-network, a newly booted up PC > > will contact my laptop's DHCP for an address rather than the Home > > network's DHCP server. > > > > The question is, how can I deny these Home-PCs access to my laptop's > > DHCP server. I know of the "deny" config for pool addreses, but it's not > > horribly clear how this is done. > > Wouldn't it be the best solution to shut the dhcp server on you laptop down > when you are at home? > > Uwe > I agree. I have an DNS and DHCP server on my laptop (for when I am at Uni, so I can act as a gateway/server for a WLAN).
I avoid this issue by not having the DNS and DHCP servers on by default. I have a script called "startNET.sh" which starts up the DHCP and DNS when I require it. This has the additional advantage of the fact the programs are not running while the laptop in not connected anywhere (such as when its on batteries and I'm on the train). saving memory and CPU cycles for other things. Why dont you just keep if off until you get to work? then have a script which you can run when you are there. If you like you can have another script which shuts it down for when you get home. -- gentoo-user@gentoo.org mailing list