Re: [gentoo-user] DHCP and deny clients

2006-12-12 Thread Jigme Datse
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jakob wrote:
> 
> 
> On 12/11/06, *Neil Bothwick* <[EMAIL PROTECTED]
> > wrote:
> 
> On Mon, 11 Dec 2006 09:39:14 +0800, Ow Mun Heng wrote:
> 
> > I have a gentoo server and a laptop both running dhcp (server) at
> home.
> > the server serves clients at home.
> > the laptop, serves client at NON-home places.
> >
> > when I plug my laptop into the home, clients will get to my laptop's
> > dhcp server instead of the home server's dhcp.
> 
> You could use the postup(0 function in /etc/conf.d/net to shutdown the
> DHCP server if you are connected to the home network.
> 
> 
> --
> Neil Bothwick
> 
> Windows - software package to turn a 486 into an Etch-A-Sketch!
> 
> 
> Maybe this helps: (from dhcpd.conf.sample )
> # If this DHCP server is the official DHCP server for the local
> # network, the authoritative directive should be uncommented.
> authoritative;
> 
> I think this one schould prefer your local dhcp to the clients at home
> instead of using your notebook.
> correct me if I'm wrong.

It can mean long time outs if the client requests an address that is not
in the pool.  I know I had problems with this, but I think that this
would work for you provided you have everything else set up correctly.

Jigme Datse
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFf3J0T1Yj9SYS4jYRAiRBAKCfjr+e1LbvB6sFxOn3G+Vjzr8nTQCgo9wX
SMGIzfCdn37vVDkdi489jZw=
=OZxU
-END PGP SIGNATURE-
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] DHCP and deny clients

2006-12-11 Thread Jakob

On 12/11/06, Neil Bothwick <[EMAIL PROTECTED]> wrote:


On Mon, 11 Dec 2006 09:39:14 +0800, Ow Mun Heng wrote:

> I have a gentoo server and a laptop both running dhcp (server) at home.
> the server serves clients at home.
> the laptop, serves client at NON-home places.
>
> when I plug my laptop into the home, clients will get to my laptop's
> dhcp server instead of the home server's dhcp.

You could use the postup(0 function in /etc/conf.d/net to shutdown the
DHCP server if you are connected to the home network.


--
Neil Bothwick

Windows - software package to turn a 486 into an Etch-A-Sketch!


Maybe this helps: (from dhcpd.conf.sample)

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

I think this one schould prefer your local dhcp to the clients at home
instead of using your notebook.
correct me if I'm wrong.

Jakob


Re: [gentoo-user] DHCP and deny clients

2006-12-11 Thread Neil Bothwick
On Mon, 11 Dec 2006 09:39:14 +0800, Ow Mun Heng wrote:

> I have a gentoo server and a laptop both running dhcp (server) at home. 
> the server serves clients at home.
> the laptop, serves client at NON-home places.
> 
> when I plug my laptop into the home, clients will get to my laptop's
> dhcp server instead of the home server's dhcp.

You could use the postup(0 function in /etc/conf.d/net to shutdown the
DHCP server if you are connected to the home network.


-- 
Neil Bothwick

Windows - software package to turn a 486 into an Etch-A-Sketch!


signature.asc
Description: PGP signature


Re: [gentoo-user] DHCP and deny clients

2006-12-10 Thread Nick Rout
On Mon, 11 Dec 2006 09:39:14 +0800
Ow Mun Heng <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I have a gentoo server and a laptop both running dhcp (server) at home. 
> the server serves clients at home.
> the laptop, serves client at NON-home places.
> 
> when I plug my laptop into the home, clients will get to my laptop's
> dhcp server instead of the home server's dhcp.
> 
> is there a directive which can be used such that I can deny a (specific)
> list of mac addresses from requesting addresses??
> 

2 options afaict:

1. have 2 different runlevels, one starts the server, the other doesn't. Boot 
the relevant one in each situation. Or if you don't reboot, simply change 
runlevels as you go in and out of the house.

2. Get one of those nifty programs that discovers what network you are attached 
to and configures your laptop accordingly. I cannot remember what any of them 
are called sorry.

-- 
gentoo-user@gentoo.org mailing list