<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
"wep_key0=<I'm not showing that!>"<br>
<br>
its wep, therefore obsolete. if anyone lives near you and wants to know
your key, they will take the 10 minutes or less that it takes to crack
any wep key. consider wpa<br>
<br>
<br>
Jim Morris wrote:
<blockquote cite="mid4888EF78.1030906@e4net.com" type="cite">
<pre wrap="">Make sure you do ifdown usb0 before ifup eth0
Then if dhcp does not get a lease first time through (which for me is about 50/50)
then you can do this from the console which always gets the lease for me.
> udhcpc eth0
After that wifi should work.
Peter Nijs wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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@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@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@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@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:
</pre>
<blockquote type="cite">
<pre wrap="">arne anka wrote:
</pre>
<blockquote type="cite">
<pre wrap="">well, i did what
<a class="moz-txt-link-freetext" href="http://wiki.openmoko.org/wiki/GTA02_wlan">http://wiki.openmoko.org/wiki/GTA02_wlan</a>
says -- adding
iface eth0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
</pre>
</blockquote>
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap="">
------------------------------------------------------------------------
_______________________________________________
Openmoko community mailing list
<a class="moz-txt-link-abbreviated" href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openmoko.org/mailman/listinfo/community">http://lists.openmoko.org/mailman/listinfo/community</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>