Ad-Hoc Wi-Fi Network Setup
Hi,
I'm trying to setup an ad-hoc Wi-Fi network, but having trouble to get
it working. Below are the steps I follow.
foo# iwconfig wlan0 mode ad-hoc chan 11 essid inci
foo# ifconfig wlan0 192.168.1.1
bar# iwconfig wlan0 mode ad-hoc chan 11 essid inci
bar# ifconfig wlan0 192.168.1.2
bar# ping 192.168.1.1 -I wlan0
But ping fails miserably. What might I be missing? (See the detailed
command outputs in the attachment.)
Best.
------------------------------------------------------------------------
foo# lspci | grep Atheros
07:04.0 Network controller: Atheros Communications Inc. AR922X Wireless Network Adapter (rev 01)
foo# iwconfig wlan0 mode ad-hoc chan 11 essid inci
foo# iwconfig wlan0
wlan0 IEEE 802.11bgn ESSID:"inci"
Mode:Ad-Hoc Frequency:2.462 GHz Cell: E6:65:50:32:B9:13
Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
foo# ifconfig wlan0 192.168.1.1
foo# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 94:0c:6d:ea:c2:4b
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::960c:6dff:feea:c24b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:62 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:9688 (9.6 KB)
bar# lspci | grep Atheros
07:04.0 Network controller: Atheros Communications Inc. AR922X Wireless Network Adapter (rev 01)
bar# iwconfig wlan0 mode ad-hoc chan 11 essid inci
bar# iwconfig wlan0
wlan0 IEEE 802.11bgn ESSID:"inci"
Mode:Ad-Hoc Frequency:2.462 GHz Cell: Not-Associated
Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
bar# ifconfig wlan0 192.168.1.2
bar# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 94:0c:6d:ea:b5:a4
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:4434 (4.4 KB)
------------------------------------------------------------------------
Reply to: