2.17.1 Wireless - D-Link DWL-G122 rev B1 [solved]

Post Reply
Message
Author
iang
Posts: 29
Joined: Tue 06 Jun 2006, 08:32
Location: Somerset, UK

2.17.1 Wireless - D-Link DWL-G122 rev B1 [solved]

#1 Post by iang »

Hi Puppy fans,

With Puppy 2.17.1, I think I'm even closer to getting wireless working - driver installs, network scan finds my wireless router, dhcp says successful, but still no internet access.

The details:

PC EPIA VIA 5000
Puppy 2.17.1 CD multisession
D-Link DWL-G122 ver. B1 (ralink 2570 chipset) USB wireless adapter

Here is the ifconfig & iwconfig output:
# ifconfig

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rausb0 Link encap:Ethernet HWaddr 00:11:95:87:1F:6B
inet addr:169.254.197.87 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:65223 (63.6 KiB) TX bytes:936 (936.0 B)

# iwconfig

lo no wireless extensions.

eth0 no wireless extensions.

rausb0 RT2500USB WLAN ESSID:"Livebox-BE88" Nickname:""
Mode:Managed Frequency=2.412 GHz Bit Rate=11 Mb/s
RTS thr:off Fragment thr:off
Encryption key:F974-D783-XXXX-XXXX-59AC-385C-86 Security mode:open
Link Quality=0/100 Signal level:-120 dBm Noise level:-99 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

#
and the rausb0wireless file in /etc
#Configure the wireless interface
echo "Configuring wireless interface rausb0"
ifconfig rausb0 up
iwconfig rausb0 essid "Livebox-BE88" mode managed ap 00:19:7D:24:9E:40 key F974D783XXXXXXXX59AC385C86
Can anyone see anything obviously wrong?

I've never been able to use wireless with puppy before as I could never get a driver for the DWL-G122 to load. With 2.17.1, the driver is installed automatically so it's obviously recognising the G122 & the network setup wizard works perfectly, but I still have no internet access.

The USB wireless adapter works fine in a Windows pc adjacent to my linux box, so hardware & signal strengths are all OK. Puppy has always worked fine using an ethernet connetion via eth0.

Any help greatly appreciated, I really want wireless to work!

TIA
Last edited by iang on Fri 24 Aug 2007, 13:07, edited 2 times in total.

User avatar
gliezl
Posts: 322
Joined: Sat 06 Aug 2005, 22:30
Location: Manila

#2 Post by gliezl »

I am also experiencing the same problem.

What is the network address of your wireless router? I presumed that it differs from the one you got from DHCP? You are getting the 169.254.X.X subnet. What is the contents of your /etc/resolv.conf?
[color=blue][i]"If you have knowledge, let others light their candles in it."
~Margaret Fuller[/i][/color]

iang
Posts: 29
Joined: Tue 06 Jun 2006, 08:32
Location: Somerset, UK

#3 Post by iang »

The wireless router is the fairly usual 192.168.1.1 & issues addresses in the same range, as it should (this PC is 192.168.1.189). I also noticed the 169.254.xx. subnet - I don't know where that comes from - obviously not the router.

/.etc/resolv.conf is empty

Although the Auto DHCP button in the Network Setup wizard returns with a 'Network Configuration of rausb0 Successful' message, it presumably never got the ip address from the router - so what is it talking to?!

kirk
Posts: 1553
Joined: Fri 11 Nov 2005, 19:04
Location: florida

#4 Post by kirk »

Try connectiong with Rutilt instead of the network wizard and see if you have any luck. Dhcpcd changed in 2.17.1 and maybe the ralink drivers. I poseted the old dhcpcd here if you want to try:

http://www.murga-linux.com/puppy/viewtopic.php?t=21023

If you have an older version of puppy, like 2.16. It supports the rt2570, just doesn't auto load the module. If you want to try 2.16, with the rt2570 plugged in, open a terminal and type:

modprobe rt2570

Then run Rutilt.

P.S.

You could try using a static address. Connect with Rutilt and answer no to the DHCP pop-up. Open the network wizard, click on rausb0, then click on Static IP.

Enter an IP address that's not in use --- 192.168.1.x
Enter Net mask --- 255.255.255.0
Enter Gateway --- 192.168.1.1
En ter DNS primary ---- 192.168.1.1
secondary--- 208.67.222.222 (this is a public dns)

You could also try connecting with the network wizard instead of Rutilt, then you could save all of your settings for next reboot.

iang
Posts: 29
Joined: Tue 06 Jun 2006, 08:32
Location: Somerset, UK

#5 Post by iang »

Hi Kirk,

Yes, that's it - very well spotted! It's working now. This is what I did in case anyone else needs it:

Boot LiveCD 2.17.1, open console window:
# modprobe rt2570

# ifconfig rausb0 up
Now run rutilt:
# rutilt
rutilt opens, scan for network, select & enter key if appropriate, select dhcp.

rutilt output from console window:
rm: cannot remove `/etc/dhcpc/dhcpcd-*': No such file or directory
Info, rausb0: dhcpcd 3.1.0 starting
Info, rausb0: hardware address = 00:11:95:87:1f:6b
Info, rausb0: DUID = 00:01:00:01:0e:61:33:e6:00:11:95:87:1f:6b
Info, rausb0: broadcasting for a lease
Debug, rausb0: sending DHCP_DISCOVER with xid 0x229c638b
Debug, rausb0: waiting on select for 30 seconds
Debug, rausb0: sending DHCP_DISCOVER with xid 0x229c638b
Debug, rausb0: sending DHCP_DISCOVER with xid 0x229c638b
Debug, rausb0: sending DHCP_DISCOVER with xid 0x229c638b
Debug, rausb0: got a packet with xid 0x229c638b
Info, rausb0: offered 192.168.1.192 from 192.168.1.1
Debug, rausb0: sending DHCP_REQUEST with xid 0x229c638b
Debug, rausb0: waiting on select for 21 seconds
Debug, rausb0: got a packet with xid 0x229c638b
Info, rausb0: got subsequent offer of 192.168.1.192, ignoring
Debug, rausb0: waiting on select for 21 seconds
Debug, rausb0: got a packet with xid 0x229c638b
Info, rausb0: checking 192.168.1.192 is available on attached networks
Debug, rausb0: sending ARP probe #1
Debug, rausb0: sending ARP probe #2
Debug, rausb0: sending ARP probe #3
Debug, rausb0: sending ARP claim #1
Debug, rausb0: sending ARP claim #2
Info, rausb0: leased 192.168.1.192 for 86400 seconds
Debug, rausb0: renew in 43200 seconds
Debug, rausb0: rebind in 75600 seconds
Info, rausb0: adding IP address 192.168.1.192/24
Info, rausb0: adding default route via 192.168.1.1 metric 0
Debug, rausb0: writing /etc/resolv.conf
Debug, rausb0: writing /var/lib/dhcpcd/dhcpcd-rausb0.info
Debug, rausb0: forking to background
#
And, for completeness, now the iwconfig and ifconfig output showing the link parameters and the dhcp assigned ip address in the correct subnet range:
# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

rausb0 RT2500USB WLAN ESSID:"Livebox-BE88" Nickname:""
Mode:Managed Frequency=2.412 GHz Access Point: 00:19:7D:24:9E:40
Bit Rate=36 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=63/100 Signal level:-69 dBm Noise level:-82 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rausb0 Link encap:Ethernet HWaddr 00:11:95:87:1F:6B
inet addr:192.168.1.192 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:274 errors:0 dropped:0 overruns:0 frame:0
TX packets:279 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:533467 (520.9 KiB) TX bytes:74964 (73.2 KiB)

#
Thanks again for your help. Once again, Puppy Linux refreshes those parts other distros cannot reach!

Post Reply