I'm having problems making an ad-hoc network between a laptop running
Ubuntu (Hoary) and a stationary PC running Windows XP. The Windows computer
has a SkyR@cer 11 mb/s NIC and the laptop has a D-Link DWL-G650 AirPlus pcmcia
card. When booting into Windows XP on the laptop, the ad-hoc network works fine
with Internet Connection Sharing.
When using Ubuntu, there seems to be some kind of problem though. There seems
to be an ok link between the two NICs (see print from iwconfig below), but none of
the computers can ping each other.
The laptop connects fine to my router over a normal wireD network (eth0), and I
have tried turning it off with 'ifdown eth0' to make sure it didn't interfere
with the wireless connection. I have pasted the output from iwconfig, ifconfig
and /etc/network/interfaces below.
Any help is greatly appreciated
---------------------------------------------------------------------------
From /etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.0.0.10
netmask 255.255.255.0
gateway 10.0.0.1
auto ath0
iface ath0 inet static
address 192.168.0.3
netmask 255.255.255.0
gateway 192.168.0.1
pre-up /sbin/iwconfig ath0 essid "nbg" mode ad-hoc rate auto enc off
mapping hotplug
script grep
map eth0
map ath0
From iwconfig ath0:
--------------------------------------------------------------
ath0 IEEE 802.11b ESSID:"nbg"
Mode:Ad-Hoc Frequency:2.412 GHz Cell: 02:0F:3D:87:5F:81
Bit Rate:0 kb/s Tx-Power:50 dBm Sensitivity=0/3
Retry
ff RTS thr
ff Fragment thr
ff
Encryption key
ff
Power Management
ff
Link Quality=41/94 Signal level=-54 dBm Noise level=-95 dBm
Rx invalid nwid:308 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:2 Invalid misc:146 Missed beacon:0
--------------------------------------------------------------
From ifconfig ath0:
ath0 Link encap:Ethernet HWaddr 00:0F:3D:87:5F:81
inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20f:3dff:fe87:5f81/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:7245 dropped:0 overruns:0 frame:7245
TX packets:196 errors:146 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:0 (0.0 b) TX bytes:16772 (16.3 KiB)
Interrupt:16 Memory:ccac0000-ccad0000