Re: dhclient and wpa_supplicant

From: David Wolfskill (david_at_catwhisker.org)
Date: 08/01/05

  • Next message: Dario Freni: "More unionfs madness"
    Date: Mon, 1 Aug 2005 08:35:01 -0700
    To: current@freebsd.org
    
    

    On Mon, Aug 01, 2005 at 11:21:56AM -0400, James Snow wrote:
    > On Fri, Jul 29, 2005 at 06:08:53PM -0700, Sam Leffler wrote:
    > >
    > > So the question is what are the outstanding issues with dhclient and
    > > wpa_supplicant? I'm mostly concerned with wireless devices but feel
    > > free to talk about wired interfaces too.
    >
    > My biggest outstanding complaint is when booting with a wired network
    > and no present wireless network, if dhclient has any recorded leases for
    > the wireless interface, it will attempt to use the most recent one and
    > blows away the default gateway for the wired network. I then have to manually
    > 'netif stop ath0' and 'netif restart em0.'
    >
    > Not sure what the best solution is....

    For reasons that aren't relevant to this discussion, I am not running
    the code in question.

    However, when I got my current laptop, it forced me to re-think how I
    handle connectivity: thitherto, I had placed whatever type of NIC I
    wanted in a PCMCIA slot; FreeBSD saw the new device, andthat was
    straightforward.

    The current laptop has both wired and wireless NICs built in; short of
    surgery on the machine, each will always appear available. And there
    are times when I do not want to use the wireless NIC, even if I'm in
    range of an AP with which I could associate: here at home, for example,
    my APs are on a "guest" network that I don't trust very much, so if I
    want to use certain services, I'll use the "trused" wired net.

    I adopted an approach (encoded in a Perl script I cobbled up) of
    enumerating a set of regexen for wireless NICs -- all others are treated
    as "wired." I then check to see if there's a "link" condition on any
    wired NIC; if there is, I use that NIC preferentially.

    It's only if there's no link on a wired NIC taht I try to use a wireless
    one.

    The rationale is that connecting a wire to a wired NIC is something that
    requires a bit more than merely accidental proximity; I assume(!) that I
    only plug the wire in if I want to use the NIC.

    I don't know if this idea is useful for others or if it's usable at all
    for the situation in question; I offer it as an approach that works
    pretty well for me.

    (The above-cited Perl script also, for wireless NICs, invokes another
    Perl script to handle acquiring a link -- dealing with SSIDs, WEP,
    whatever -- and then for either kind of NIC will invoke dhclient.)

    Peace,
    david

    -- 
    David H. Wolfskill				david@catwhisker.org
    Any given sequence of letters is a misspelling of a great many English words.
    See http://www.catwhisker.org/~david/publickey.gpg for public key.
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: Dario Freni: "More unionfs madness"

    Relevant Pages

    • Re: Wireless network w/ SBS
      ... Are there entries in the IAS logs for SUCCESSFUL authentications? ... There is also a suggestion to enable this GPO setting: ... Ditto for the wireless NICs. ... what NICs do you use for PCs and laptops. ...
      (microsoft.public.windows.server.sbs)
    • No DHCP lease with iwi(4)/wlan(5); works with an(4) at r197399
      ... I normally use wireless NICs on my laptop, especially at home, I ... DHCPREQUEST on wlan0 to 255.255.255.255 port 67 ...
      (freebsd-current)
    • wireless NIC fingerprinting
      ... Thanks everyone for the previous questions/answers on NIC ... the remote machines OS, it can determine the remote machines wireless NIC ... If I can monitor a machines wireless traffic, will different wireless nics ...
      (comp.os.linux.security)
    • Re: Acces Point Setup
      ... > What Marina needs to know is how many ... > NICs are in the server...not how many NICs you have in your ... >> Well I have the SBS Standard and I have will have about 2-3 wireless nics ...
      (microsoft.public.windows.server.sbs)
    • Re: rc.conf dhcp issue
      ... >> different NICs for different occasions. ... I run fxp0 when I am on the docking station ... How can I get it to remember to go after the DHCP server without ... > if not, you need to, as root, run dhclient in order to get an ip ...
      (comp.unix.bsd.freebsd.misc)

    Loading