在 RasPi 2 上的 FreeBSD 11 上连接无线时遇到问题

在 RasPi 2 上的 FreeBSD 11 上连接无线时遇到问题

我已经把一切都设置好了。我可以在 dmesg 中看到 USB 网卡。但它不会与 AP/SSID 关联。它显示了其他一切,但 ssid 不起作用。不知道wifi卡能不能用……

这是 Netopia USB Wireless-N 卡。 dmesg 说它是 RealTek 2573 芯片组。

消息:

rum0: <Ralink 802.11 bg WLAN, class 0/0, rev 2.00/0.01, addr 6> on usbus0
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528
wlan0: Ethernet address: 00:d0:41:be:c0:e4

如果配置:

ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether 00:d0:41:be:c0:e4
    groups: wlan
    ssid "" channel 3 (2422 MHz 11g)
    regdomain FCC country US authmode OPEN privacy OFF txpower 30 bmiss 7
    scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7
    roam:rate 5 protmode CTS wme bintval 0
    media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
    status: no carrier
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

cat /etc/wpa_supplicant.conf
network={
    ssid="freebsd"
    psk=password
}

/var/log/消息:

cat /var/log/messages|egrep "wlan0|rum0"
Oct 10 00:53:20 asm-console01 kernel: wlan0: link state changed to UP
Oct 10 00:54:39 asm-console01 kernel: wlan0: link state changed to DOWN
Oct 10 01:06:02 asm-console01 kernel: rum0: <Ralink 802.11 bg WLAN, class     0/0, rev 2.00/0.01, addr 6> on usbus0
Oct 10 01:06:02 asm-console01 kernel: rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528
Oct 10 01:06:02 asm-console01 kernel: wlan0: Ethernet address: 00:d0:41:be:c0:e4

/etc/rc.conf:

wlan_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
wlans_rum0="wlan0"
ifconfig_wlan0="asm inet 10.150.1.41 netmask 255.255.255.0"
dhcpd_enable="YES"
dhcpd_flags="-q"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_ifaces="ue0"
dhcpd_withumask="022"
ser2net_enable="YES"
wpa_supplicant_enable="YES"

/boot/loader.conf:

cat /boot/loader.conf
boot_multicons="YES"
boot_serial="YES"
comconsole="19200"

legal.realtek.license_ack=1
if_rum_load="YES"
rt2573_load="YES"
wlan_amrr_load="YES"
#wlan_wep_load="YES"
wlan_tkip_load="YES"
wlan_ccmp_load="YES"
uplcom_load="YES"

答案1

/boot/loader.conf通过添加以下行来编辑:

if_rum_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
wlan_xauth_load="YES"

编辑您的etc/rc.conf,添加以下行:

wlans_rum0="wlan0"

编辑/etc/wpa_supplicant.conf,如下:

network={
ssid="your_ssid"
psk="your_password"
}

创建网络:

ifconfig wlan create wlandev rum0

静态IP

要配置静态 IP,您应该从 DHCP 条目中删除, /etc/rc.conf 然后运行以下命令:

wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
ifconfig wlan0 inet 10.150.1.41 netmask 255.255.255.0
route add default your_default_router
echo "nameserver your_DNS_server" >> /etc/resolv.conf

动态主机配置协议

要通过 DHCP 获取 IP,您应该将以下内容添加ifconfig_wlan0="WPA DHCP"到您的/etc/rc.conf文件中:

echo 'ifconfig_wlan0="WPA DHCP"' >> /etc/rc.conf

相关内容