Re: Wireless Card and SSID

From: Daan Vreeken [PA4DAN] (Danovitsch_at_vitsch.net)
Date: 11/30/04

  • Next message: Ramiro Aceves: "Re: I can not install FreeBSD 5.3 in an old Pentium 100 MHz"
    To: RL <rlurman@gmail.com>
    Date: Tue, 30 Nov 2004 11:59:50 +0100
    
    

    On Monday 29 November 2004 23:51, RL wrote:
    > Sending again... I really need to solve this.
    >
    > I have a Netgear WAG511 PC Card and am using the ath driver. In my
    > /etc/rc.conf I have ath0 to use DHCP and also I have:
    > ifconfig_ath0="ssid myssid". Now, I can set this all up manually
    > using ifconfig and it works till I reboot. When I set it in my rc.conf
    > and I boot it up, I get "ath0: association failed (reason 12) for
    > 00:0f:66:02..." flash on my screen one right after another. And when I
    > do ifconfig, it shows no IP address NOR the ssid I set. For some
    > reason it doesn't see the SSID or DHCP I set up in rc.conf.
    You can't combine "use DHCP" and "use this SSID" in /etc/rc.conf .
    To do both, you need to create a startup script that sets the interface
    options (ssid / wep key / etc) and then just set /etc/rc.conf to use DHCP.

    In /etc/rc.conf put this :
    ifconfig_ath0="DHCP"

    Then place this in a file called /etc/start_if.ath0 :

    ifconfig ath0 ssid "some network" wepmode on wepkey 0x1234567890123

    --- end of /etc/start_if.ath0 ---

    The RC scripts will now first execute /etc/start_if.ath0 on boot, and then try
    to get an ip address on the interface with dhclient.

    grtz,
    Daan
    _______________________________________________
    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: Ramiro Aceves: "Re: I can not install FreeBSD 5.3 in an old Pentium 100 MHz"

    Relevant Pages

    • Re: Spaces in SSID in /etc/rc.conf
      ... SSID that contains a space. ... configuration of my wireless interface upon bootup, ... the line `ifconfig ... ... when /etc/rc.d/netif starts the network interfaces, ...
      (freebsd-questions)
    • Re: Wireless Card and SSID
      ... > I have a Netgear WAG511 PC Card and am using the ath driver. ... > do ifconfig, it shows no IP address NOR the ssid I set. ... > reason it doesn't see the SSID or DHCP I set up in rc.conf. ...
      (freebsd-questions)
    • RE: [SLE] double ip address on the same ethernet card: is it possible?
      ... > same card but with different parameters after some works have ... but only for an IP in the same network as the first one. ... As this file defines a network for the interface I think it may prove ... the following syntax on ifconfig to apply an additional address ...
      (SuSE)
    • Re: Cant find network card
      ... network card, but after booting the system isn't seeing the card. ... What do I need to do to find the card and configure the interface? ... but note that ifconfig won't show a card that is ...
      (Ubuntu)
    • Re: how do you tell if a line is up instead of the card/NIC status?
      ... the interface doesn't come up unless there is an actual ... connection, so /sbin/ifconfig wouldn't show the interface as being up ... Ifconfig doesn't tell you that the card is there except indirectly. ...
      (comp.unix.shell)