freebsd8.0 wireless & WPA2-PSK without DHCP & base system & CONFIG FILES

来源:互联网 发布:mysql error 1054 编辑:程序博客网 时间:2024/05/05 07:17

(1)

[root@faint /usr/ports/irc/xchat]# less /etc/rc.conf

# -- sysinstall generated deltas -- # Sat Aug 27 20:28:44 2011
# Created: Sat Aug 27 20:28:44 2011
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
moused_enable="YES"
wlans_wpi0="wlan0"
ifconfig_wlan0="WPA"
ifconfig_wlan0="inet 192.168.1.11 netmask 255.255.255.0 ssid TP-LINK_4E8C14"
#wlans_wpi0="wlan0"
defaultrouter="192.168.1.1"
gateway_enable="YES"
#ifconfig_wlan0="inet 192.168.1.11 netmask 255.255.255.0"
hostname="faint"
gdm_enable="YES"
gnome_enable="YES"

(2)# less /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

network={
   ssid="TP-LINK_4E8C14"
   proto=WPA
   psk="1122334455"
   }

(3)

# less /boot/loader.conf        
if_wpi_load="YES"
wlan_load="YES"
wlan_amrr_load="YES"
firmware_load="YES"
wpifw_load="YES"
legal.intel_wpi.license_ack=1
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
autoboot_delay="1"
ntpd_enable="YES"
wlan_scan_ap_load="YES"
wlan_scan_sta_load="YES"

(4)

# less /etc/hostapd.conf
interface=wlan0
debug=1
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=TP-LINK_4E8C14
wpa=2
wpa_passphrase=1122334455
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP

(5)

# less /etc/resolv.conf
nameserver 202.181.224.2   # DNS serv from HK
#nameserver 192.168.1.254
#nameserver 192.168.1.255

(6)

#wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf &       # & for background

****************

[1] 11626
xmu# CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:23:cd:4e:8c:14 (SSID='TP-LINK_4E8C14' freq=2437 MHz)
Associated with 00:23:cd:4e:8c:14
WPA: Key negotiation completed with 00:23:cd:4e:8c:14 [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:23:cd:4e:8c:14 completed (auth) [id=0 id_str=]

****************


(Finish)





原创粉丝点击