Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jul 2003 13:11:03 +0100
From:      dom@happygiraffe.net (Dominic Mitchell)
To:        Martin Blapp <mb@imp.ch>
Cc:        current@freebsd.org
Subject:   Re: STEP 2, fixing dhclient behaviour with multiple interfaces
Message-ID:  <20030729121103.GA45798@ppe.happygiraffe.net>
In-Reply-To: <20030729140001.J25188@cvs.imp.ch>
References:  <20030729094308.L41136@cvs.imp.ch> <20030729115106.GA45515@ppe.happygiraffe.net> <20030729140001.J25188@cvs.imp.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 29, 2003 at 02:01:36PM +0200, Martin Blapp wrote:
> > >   can access dhclient (or dhcpd) on the local machine without authentification.
> >
> > You can get omshell working without auth over tcp/ip - I managed this
> > today when playing.  But a unix domain socket would be nicer because the
> > dhclient server binds to INADDR_ANY by default.
> 
> Cool. Do you have any pointers for me to try ? Little example etc ?

/etc/dhclient.conf contains:

    omapi port 7911;

Then, as root:

    # dhclient -n -w

And in another terminal:

    % netstat -an | grep -w 7911
    tcp4       0      0  *.7911                 *.* LISTEN
    % omshell
    > connect
    obj: <null>
    > new control
    obj: control
    > open
    obj: control
    state = 00:00:00:00
    > set state = 2
    obj: control
    state = 2
    > update
    obj: control
    state = 2

At this point, go back to the other window and notice that dhclient hs
terminated.

I haven't played much further than this yet, though.  The only other
thing I noticed is that getting a list of what objects are present
doesn't seem to be supported.  Well, I couldn't see how to do it...

-Dom



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030729121103.GA45798>