Hello BSD users,
I want to set up a FreeBSD system with WLAN. I followed a good manual and I am able to connect with my Fritzbox 7270 (encryption: WPA, I see it on the web fronted of my Fritzbox that my BSD host is connected) but it's not possible to send ICMP messages (ping requests) to my router, or from my router to my FreeBSD system (it's not possible to reach any host from my FreeBSD host). I seems that arp is not working correctly:
(for the next few lines: my FreeBSD system's IP is 192.168.178.20 (dhcp), my router is 192.168.178.1, and there are other hosts on the network: 192.168.178.185 and 192.168.178.189.)
Networkadapter:
When I create my device:
Setting up a connection:
Everything seems to work:
Output of ifconfig:
but ...
The output of arp:
First, I thought it's a routing problem, but... everything seems ok:
See also the tcpdump and messages file.
It would be nice if anyone can help me!
Thanks Christian.
I want to set up a FreeBSD system with WLAN. I followed a good manual and I am able to connect with my Fritzbox 7270 (encryption: WPA, I see it on the web fronted of my Fritzbox that my BSD host is connected) but it's not possible to send ICMP messages (ping requests) to my router, or from my router to my FreeBSD system (it's not possible to reach any host from my FreeBSD host). I seems that arp is not working correctly:
(for the next few lines: my FreeBSD system's IP is 192.168.178.20 (dhcp), my router is 192.168.178.1, and there are other hosts on the network: 192.168.178.185 and 192.168.178.189.)
Code:
nyx# less /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
network={
ssid="myssid"
scan_ssid=1
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=TKIP
psk="4444444444444444"
}
Networkadapter:
Code:
nyx# ifconfig ath0
ath0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:09:5b:ec:ef:a0
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
When I create my device:
Code:
nyx# ifconfig wlan0 create wlandev ath0
nyx# ifconfig wlan0 up scan
nyx# ifconfig wlan0 list scan
SSID/MESH ID BSSID CHAN RATE S:N INT CAPS
myssid x:x:x:x:x:x 10 54M -74:-96 100 EPS RSN WPA WME HTCAP ATH WPS
Setting up a connection:
Code:
nyx# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
CTRL-EVENT-SCAN-RESULTS
Trying to associate with x:x:x:x:x:x (SSID='myssid' freq=2457 MHz)
Associated with x:x:x:x:x:x
WPA: Key negotiation completed with x:x:x:x:x:x [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to x:x:x:x:x:x completed (auth) [id=0 id_str=]
Code:
nyx# dhclient wlan0
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPACK from 192.168.178.1
bound to 192.168.178.20 -- renewal in 432000 seconds.
Code:
nyx# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:09:5b:ec:ef:a0
inet 192.168.178.20 netmask 0xffffff00 broadcast 192.168.178.255
media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
status: associated
ssid myssid channel 10 (2457 MHz 11g) bssid x:x:x:x:x:x
country US ecm authmode WPA2/802.11i privacy ON deftxkey UNDEF
TKIP 2:128-bit txpower 24 bmiss 7 scanvalid 450 bgscan bgscanintvl 300
bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst
roaming MANUAL
Code:
nyx# ping 192.168.178.1
PING 192.168.178.1 (192.168.178.1): 56 data bytes
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
^C
--- 192.168.178.1 ping statistics ---
9 packets transmitted, 0 packets received, 100.0% packet loss
Code:
nyx# arp -a
? (192.168.178.20) at 00:09:5b:ec:ef:a0 on wlan0 permanent [ethernet]
? (192.168.178.1) at bc:05:43:3e:fe:d7 on wlan0 expires in 1174 seconds [ethernet]
Code:
nyx# netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.178.1 UGS 0 0 wlan0
127.0.0.1 link#4 UH 0 0 lo0
192.168.178.0/24 link#5 U 0 20 wlan0
192.168.178.20 link#5 UHS 0 0 lo0
See also the tcpdump and messages file.
It would be nice if anyone can help me!
Thanks Christian.