Re: dhclient and wpa_supplicant

From: Sam Leffler (sam_at_errno.com)
Date: 07/30/05

  • Next message: Fabian Keil: "Re: Reading the volume-id/label of a cd/dvd ?"
    Date: Sat, 30 Jul 2005 11:31:27 -0700
    To: Eric Schuele <e.schuele@computer.org>
    
    

    Eric Schuele wrote:
    > Sam Leffler wrote:
    >
    >> Sam Leffler wrote:
    >>
    >>> Brooks fixed a bunch of bugs in dhclient and I just committed an
    >>> important fix to wpa_supplicant to work right when wireless cards are
    >>> ejected (previously it would loop).
    >>>
    >>> I also tested that dhclient does the right thing for roaming between
    >>> ap's--switching causes dhclient to immediately collect a new lease.
    >>>
    >>> I just ran tests with wpa_supplicant and found that it does appear to
    >>> handle open ap's properly.
    >>>
    >>> Everything except the wpa_supplicant changes have been MFC'd to
    >>> RELENG_6 for the 6.0RC2 build that's going to happen soon (I'm hoping
    >>> to get re to approve the wpa_supplicant changes).
    >>
    >>
    >>
    >> FWIW I just MFC'd the wpa_supplicant fix.
    >>
    >>>
    >>> 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. If something doesn't work
    >>> right please try to give steps to reproduce the problem. Otherwise
    >>> please provide detailed info include ifconfig output. Remember that
    >>> dhclient logs info to /var/log/messages and you should also see link
    >>> state change msgs there too.
    >>
    >>
    >>
    >> s/6.0RC2/6.0BETA2/.
    >>
    >> Sam
    >> _______________________________________________
    >> 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"
    >>
    > Hello,
    >
    > I am very interested in getting wpa_supplicant & dhclient to work.
    > Presently it does not work for me the way I would hope it would.
    >
    > I would think that if it were setup properly on my machine I could turn
    > the machine on at home, and have it associate with my AP and then
    > acquire a lease. Then I could shut it down... go to the office... turn
    > it on and then have it associate with the AP there and acquire a lease.
    >
    > However it does not seem to do this. It seems to only want to associate
    > with the last AP it ever associated with. I then have to down the
    > interface and manually ifconfig it.
    >
    > I am fairly sure I do not have things setup properly, since others have
    > had much better results. Can you please point me to the most current
    > docs or a "How To" to push me in the right direction.
    >
    > I have RELENG_6 as of last night. I have appended some conf files to
    > the bottom for your review.
    >
    > Thanks,
    >
    > rc.conf contains
    > ===========================
    > network_interfaces="lo0 bfe0 ath0"
    > ifconfig_ath0="WPA DHCP"
    > ifconfig_bfe0="DHCP"
    >
    > dhclient.conf contains
    > ===========================
    > interface "ath0" {
    > #send option host-name "myhost";
    > #send option domain-name "nxdomain.org";
    > send dhcp-client-identifier "myhost";
    >
    > media
    > ### Home
    > "ssid <home_ssid> mode 11b channel 11 wepmode on weptxkey 1 wepkey
    > 0x<home_wepkey>",
    > ### Office
    > "ssid <office_ssid mode 11b channel 6 wepmode on weptxkey 1 wepkey
    > 0x<office_wepkey>";
    >
    > request subnet-mask, broadcast-address, routers, domain-name-servers,
    > domain-name;
    > }

    Do not use media statements to setup wireless parameters; this does not
    work. You need to run wpa_supplicant and let it identify the network
    and setup the key parameters.

    >
    > wpa_supplicant.conf
    > =============================
    > ctrl_interface=/var/run/wpa_supplicant
    > ctrl_interface_group=wheel
    >
    > # Home Network
    > network={
    > ssid="<home_ssid>"
    > scan_ssid=1
    > key_mgmt=NONE
    > wep_tx_keyidx=0
    > wep_key0="<home_wepkey>"
    > }
    >
    > # Office Network
    > network={
    > ssid="<office_ssid>"
    > scan_ssid=1
    > key_mgmt=NONE
    > wep_tx_keyidx=0
    > wep_key0="<office_wepkey>"
    > }
    >

    Not sure you need scan_ssid set, I'd leave it out.

    If you have problems try disabling auto-startup of ath0 and run
    wpa_supplicant by hand with the -d flag to see what it's doing. Once
    that's going then enable startup in rc.conf. If you continue to have
    problems provide the output wpa_supplicant -d -i ath0 -c
    /etc/wpa_supplicant.conf (or similar) when you have trouble. There is
    also a pending issue with locating some ap's that are setup to hide
    their ssid. If one of the ap's is configured in this way contact me
    directly--I've been trying to collect the info I need to identify what's
    going on.

            Sam
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Fabian Keil: "Re: Reading the volume-id/label of a cd/dvd ?"

    Relevant Pages

    • NFS boot with a dhcpless network
      ... I want to setup three machines to boot over the network from an nfs root. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: No internet connection
      ... A gateway is how your machine can get to IP ... find out what the gateway IP address for your network is. ... the gateway route looks something like this when properly setup: ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list ...
      (Fedora)
    • RE: Securing a Local Network
      ... Show the Management of your company the insecurity of the Peer to Peer ... setup and discuss what risks are they willing to accept. ... -Cost of getting the web server and the mail server internally versus having ... -Use an older box for Intrusion Detection on the internal network as well. ...
      (Security-Basics)
    • Re: Client computer wont connect to internet ATTN: Joe Crown
      ... for my host/client setup. ... >When I supported Windows 98 & Windows ME the most common cause of ... >> When I try to connect to the internet using Firefox or Internet ... >> 7) In the Manufacturers box, click Microsoft, in the Network Protocols ...
      (microsoft.public.windowsxp.network_web)
    • Re: Network Connections x 2 PCs
      ... The setup is quite ... >>> If you have a broadband router, run XP's Network Setup Wizard on both ... tell it that the computers connect to the ... >>> If you have a hub, the setup depends on how many IP addresses you get ...
      (microsoft.public.windowsxp.general)

  • Quantcast