Fast questions (email, GPRS, WiFi...)

Peter Nijs peter at familienijs.be
Thu Jul 24 22:39:08 CEST 2008


After a whole lot of tweaking I still cannot get an IP from my wireless 
router. My current setup looks like this:

/etc/network/interfaces:---------------------------
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
 
# The loopback interface
auto lo
iface lo inet loopback

# Wireless interfaces
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid any
iface atml0 inet dhcp

# Wired or wireless interfaces
iface eth0 inet dhcp
   wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

iface eth1 inet dhcp

# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
auto usb0
iface usb0 inet static
	address 192.168.0.202
	netmask 255.255.255.0
	network 192.168.0.0
	gateway 192.168.0.200
	up echo nameserver 192.168.0.200 >/etc/resolv.conf

# Bluetooth networking
iface bnep0 inet dhcp


/etc/wpa_supplicant/wpa_supplicant:----------------------------------------------
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=0

network={
     ssid="PN"
     scan_ssid=1
     key_mgmt=NONE
     wep_tx_keyidx=0

     wep_key0=<I'm not showing that!>
     priority=8
}


Now here's what I do:--------------------------------------------
root at om-gta02:~# ifup eth0
sed: unrecognized option `--quiet'
BusyBox v1.11.1 (2008-07-18 00:49:01 CEST) multi-call binary

Usage: sed [-efinr] pattern [files...]

WPA: Configuring Interface
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
udhcpc (v1.11.1) started
run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
Sending discover...
Sending discover...
Sending discover...
No lease, failing
root at om-gta02:~# iwconfig
lo        no wireless extensions.

usb0      no wireless extensions.

eth0      AR6000 802.11g  ESSID:"PN"
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:0E:2E:BA:1E:51
          Bit Rate=36 Mb/s   Tx-Power=15 dBm   Sensitivity=0/3
          Retry:on
          Encryption key:897B-9067-4C99-1AC7-B433-AABB-01   Security mode:open
          Power Management:off
          Link Quality:180/94  Signal level:-171 dBm  Noise level:-96 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:7  Invalid misc:0   Missed beacon:1

root at om-gta02:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:12:CF:8E:E6:8D
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:646 errors:0 dropped:0 overruns:0 frame:0
          TX packets:419 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:278955 (272.4 KiB)  TX bytes:20950 (20.4 KiB)

root at om-gta02:~#                                                

While udhcpc is sending discovers I can see my router is leasing my neo a 
valid ip for 60 seconds each "sending discover".

Sometimes, in very rare cases I can get a decent lease. But that is not 
reproducible. I think it's happened three times to me the last three days.

Anyone knows how I could get an IP reliably?

Peter Nijs

Op Sunday 13 July 2008 01:05:12 schreef Jim Morris:
> arne anka wrote:
> > well, i did what
> > http://wiki.openmoko.org/wiki/GTA02_wlan
> > says -- adding
> >
> > iface eth0 inet dhcp
> > wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
>
> Ok that worked, although I have some routing issues now. The manual method
> did not work though.
>
>  > iwconfig
>
> eth0      AR6000 802.11g  ESSID:"morrisnetwork2"
>            Mode:Managed  Frequency:2.422 GHz  Access Point:
> 00:1D:5A:BB:FA:A9 Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
>            Retry:on
>            Encryption key:off
>            Power Management:off
>            Link Quality:207/94  Signal level:-144 dBm  Noise level:-96 dBm
>            Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>            Tx excessive retries:17  Invalid misc:0   Missed beacon:11
>
> Although it says encryption key off, but I presume wpa_supplicant is
> handling that.
>
>  > ifconfig
>
> eth0      Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
>            inet addr:192.168.1.70  Bcast:192.168.1.255  Mask:255.255.255.0
>            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>            RX packets:1657 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:832 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:1000
>            RX bytes:725595 (708.5 KiB)  TX bytes:37892 (37.0 KiB)
>
>
> So its connected to my access point, and I turned off eth0, but I cannot
> ping the wireless, I'll work on that it may be routing or it may be
> encryption.
>
> Thanks all.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.openmoko.org/pipermail/community/attachments/20080724/4e5a2901/attachment.pgp 


More information about the community mailing list