dhclient ifconfig down up?

Jeff Sadowski jeff.sadowski at gmail.com
Thu Jun 7 00:28:04 UTC 2007


almost everywhere I read in forums suggests

wpa_supplicant -B -i ${interface}
dhclient -i ${interface}

I see nothing about NetworkManager.

Is this a distro to distro thing?

thats why I came here I want it fixed permanently.
I see this question time and time again.
I tell them to edit the dhclient script like I did and everyone says
"thanks that works nicely"
But this is only linux guys.
I'm just afraid maybe I'm missing something or leading them down the wrong road.

I thought all the commands I used where posix even in the usage?
But I guess not considering it didn't work the same on my hpux machine.
arp and route are different.

on my gumstix project I ran into a similar issue using udhcpc and it
was fixed by using ifup and using a preload command to launch
wpa_supplicant
so I thought well maybe this is how to fix my issues elsewhere. But
when I look at my fedora it gets its information way differently and I
don't see a wpa_supplicant option. As far as I know wpa_supplicant is
the only way to connect to wpa encrypted networks. I like
wpa_supplicant it does a good job of managing my networks but it seems
distros are behind the time on network setups because the network
interface tools don't account for it.
Leading me to writing my scripts to do it.

Maybe there could be a common posix way to clear the arp and routing
info from a network node without bringing down the node?
I love it being in a script so I can do what I did. Again I worry that
I'm telling people the wrong thing. I just want to say thanks for any
consideration and thanks for trying to help. :-)
I just seem to be at dead ends.
On 6/6/07, David W. Hankins <David_Hankins at isc.org> wrote:
> On Wed, Jun 06, 2007 at 05:08:45PM -0600, Jeff Sadowski wrote:
> > so I guess I need to learn how to use wpa_supplicant with ifup?
>
> On my SuSe laptop, I'm aware that wpa_supplicant does its thing,
> and then something (I don't know what) starts dhclient on that
> interface when the AP connected.
>
> Jason vas Dias at redhat had an excellent package he wanted me to
> put in contrib/.  Unfortunately I lost the tarball, and he hasn't
> answered email from me.  I should probably send more.
>
> I'd look at Jason's work as a model for how to apply DHCP clients to
> wireless on unixes in general; the use of dBus and HAL as
> configuration backplanes abstracted by user-presentation layers such
> as NetworkManager.
>
> Hopefully google has some help there.
>
> --
> Ash bugud-gul durbatuluk agh burzum-ishi krimpatul.
>                                  https://secure.isc.org/store/t-shirt/
> --
> David W. Hankins        "If you don't do it right the first time,
> Software Engineer                    you'll just have to do it again."
> Internet Systems Consortium, Inc.               -- Jack T. Hankins
>
>


More information about the dhcp-hackers mailing list