Network question... Help please I am missing something!!
Sebastien Routier <[email protected]> Sun, 25 Aug 2002 14:36:37 -0400
| Newsgroups | gmane.comp.handhelds.zaurus.devel |
|---|---|
| Message-ID | <[email protected]> |
Long post, lost of details.... (Sorry)
Hi,
I am trying to get my Zaurus connected to the Internet/intranet using the
USB cradle
connected to my Mandrake-Linux 8.2 desktop. I think I have a routing issue
on my Zaurus.
I followed the instructions at
"http://www.zauruszone.com/howtos/linux_ethernet-over-usb-howto.shtml"
which state that, since I use MDK 8.2, I only have to create a file called
"/etc/sysconfig/network-scripts/ifcfg-usb0" and modify the file
"/lib/modules/`uname -r`/modules.usbmap". I have done both. When I connect
my Zaurus
to the cradle and turn it on I get the following messages in my log
"/var/log/messages":
-------------------------- START PASTE ------------------------------
...
Aug 25 13:32:41 hydrogen kernel: hub.c: USB new device connect on bus1/1,
assigned device number 9
Aug 25 13:32:41 hydrogen kernel: usb.c: ignoring set_interface for dev 9,
iface 0, alt 0
Aug 25 13:32:41 hydrogen kernel: usb-uhci.c: ENXIO 80000980, flags 0, urb
c25b2c40, burb c25b2ec0
Aug 25 13:32:41 hydrogen last message repeated 3 times
Aug 25 13:32:41 hydrogen /etc/hotplug/net.agent: invoke ifup usb0
Aug 25 13:32:42 hydrogen /etc/hotplug/usb.agent: Setup usbdnet for USB
product 4dd/8004/0
Aug 25 13:32:42 hydrogen /etc/hotplug/usb.agent: missing kernel or user mode
driver usbdnet
...
-------------------------- END PASTE ------------------------------
Note: I do not always get the line containing "ENXIO 80000980"... Do not
know what it means. Do you?
Note: Should I be concerned with the last line about the missing usbdnet
driver ? It is loaded!! Here is the output of the lsmod command:
-------------------------- START PASTE ------------------------------
[root@hydrogen root]# lsmod
Module Size Used by Tainted: GF
isofs 25792 1 (autoclean)
inflate_fs 19328 0 (autoclean) [isofs]
usbdnet 14184 1
xfs 498944 2 (autoclean)
xfs_dmapi 33904 0 (autoclean) [xfs]
xfs_support 8888 0 (autoclean) [xfs xfs_dmapi]
sr_mod 15160 0 (autoclean)
agpgart 31552 3 (autoclean)
binfmt_misc 6084 1
sd_mod 11644 0 (autoclean) (unused)
vmnet 19456 8
parport_pc 22088 0
parport 23968 0 [parport_pc]
vmmon 19316 12
emu10k1 57984 1
ac97_codec 9568 0 [emu10k1]
sound 57292 0 [emu10k1]
soundcore 4068 7 [emu10k1 sound]
af_packet 12488 4 (autoclean)
ip_vs 65400 0 (autoclean)
ipt_REJECT 3264 2 (autoclean)
ip_nat_ftp 3296 0 (unused)
ipt_MASQUERADE 1504 1 (autoclean)
ipt_state 832 2 (autoclean)
ipt_LOG 3712 0 (unused)
ip_conntrack_ftp 3680 0 (unused)
iptable_mangle 2336 0 (autoclean) (unused)
iptable_nat 15988 2 (autoclean) [ip_nat_ftp ipt_MASQUERADE]
ip_conntrack 15180 3 (autoclean) [ip_nat_ftp ipt_MASQUERADE
ipt_state ip_conntrack_ftp iptable_nat]
iptable_filter 1952 1 (autoclean)
ip_tables 11584 9 [ipt_REJECT ipt_MASQUERADE ipt_state
ipt_LOG iptable_mangle iptable_nat iptable_filter]
mod_quickcam 32864 0
videodev 4896 1 [mod_quickcam]
acquirewdt 1384 0 (unused)
softdog 1700 0 (unused)
usb-uhci 21668 0 (unused)
usbcore 59072 1 [usbdnet mod_quickcam usb-uhci]
eepro100 18096 1 (autoclean)
8139too 14336 1 (autoclean)
mii 1360 0 (autoclean) [8139too]
nls_iso8859-1 2816 4 (autoclean)
nls_cp850 3584 3 (autoclean)
vfat 9788 3 (autoclean)
fat 31384 0 (autoclean) [vfat]
supermount 62180 3 (autoclean)
NVdriver 947232 10
ide-scsi 8032 0
scsi_mod 92488 3 [sr_mod sd_mod ide-scsi]
rtc 5912 1 (autoclean)
reiserfs 169312 5
[root@hydrogen root]#
-------------------------- END PASTE ------------------------------
Once my Zaurus is connected and turned on the output of the command ifconfig
on my desktop is:
-------------------------- START PASTE ------------------------------
[root@hydrogen root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:BA:8C:ED:76
inet addr:WWW.XX.YYY.ZZ Bcast:WWW.XX.YYY.AA Mask:255.255.255.128
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:461345 errors:0 dropped:0 overruns:0 frame:0
TX packets:367700 errors:0 dropped:0 overruns:0 carrier:0
collisions:1072 txqueuelen:100
RX bytes:576198601 (549.5 Mb) TX bytes:127984745 (122.0 Mb)
Interrupt:7 Base address:0x8000
eth1 Link encap:Ethernet HWaddr 00:A0:C9:B7:DB:B6
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:150730 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:144058986 (137.3 Mb)
Interrupt:9 Base address:0xd400
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:6201 errors:0 dropped:0 overruns:0 frame:0
TX packets:6201 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:463788 (452.9 Kb) TX bytes:463788 (452.9 Kb)
usb0 Link encap:Ethernet HWaddr 40:00:00:00:FF:09
inet addr:192.168.129.200 Bcast:192.168.129.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:344 (344.0 b) TX bytes:1005 (1005.0 b)
vmnet1 Link encap:Ethernet HWaddr 00:50:56:C0:00:01
inet addr:192.168.151.1 Bcast:192.168.151.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:576 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
vmnet8 Link encap:Ethernet HWaddr 00:50:56:C0:00:08
inet addr:192.168.170.1 Bcast:192.168.170.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:289 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
[root@hydrogen root]#
-------------------------- END PASTE ------------------------------
And on my Zaurus ifconfig gives:
-------------------------- START PASTE ------------------------------
# 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:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1040 (1.0 Kb) TX bytes:1040 (1.0 Kb)
usbd0 Link encap:Ethernet HWaddr 40:00:01:00:00:01
inet addr:192.168.129.201 Bcast:192.168.129.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:183 errors:2 dropped:2 overruns:0 frame:2
TX packets:132 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:10621 (10.3 Kb) TX bytes:9529 (9.3 Kb)
#
-------------------------- END PASTE ------------------------------
From my MDK 8.2 destop I can ping my Zaurus, I can telnet and ftp into it.
But from my Zaurus I cannot access the network. I can't even ping anything
(other
than localhost/192.168.129.201). The How-To on
"http://www.zauruszone.com/howtos/linux_ethernet-over-usb-howto.shtml"
suggest
that when using MDK 8.2 you should not have to do anything else. But seams
to me you
should at least configure the Zaurus with your network setttings, unless it
is using
DHCP by defaults!?!
I then try to configure the network on the Zaurus using the "Network & Sync"
applet on the "Settings" tab. Settings are :
Static IP
IP: 192.168.129.201
Mask: 255.255.255.0
Broadcast: 192.168.129.255
Gateway: 192.168.129.200
DNS 1: FFF.GG.HH.II
DNS 2: FFF.GG.JJ.KK
Save all settings... Still can't ping anyting.. Reboot Zaurus... Same thing
no Net ?!
And when I go back to the "Network & Sync" applet, the broadcast setting is
gone!?!?
I decide to do thing manually... remove the network setttings in the
"Network & Sync" applet.
reboot for good mesure... And follow the instructions given in
"http://www.zauruszone.com/howtos/linux_ethernet-over-usb-howto.shtml" about
setting your routing
table, even if these instructions arfe not in the MDK 8.2 section. Here is
the output of that session:
-------------------------- START PASTE ------------------------------
[sroutier@hydrogen sroutier]$ telnet zaurus
Trying 192.168.129.201...
Connected to zaurus (192.168.129.201).
Escape character is '^]'.
Lineo Embedix Linux(TM)
Copyright 1999-2000 Lineo, Inc.
localhost login: root
Password:
#
# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
192.168.129.0 0.0.0.0 255.255.255.0 U 40 0 0
usbd0
#
# route add -host 192.168.129.200 usbd0
# route delete -net 192.168.129.0/24 usbd0
# route add default gw 192.168.129.200
#
# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
192.168.129.200 0.0.0.0 255.255.255.255 UH 40 0 0
usbd0
0.0.0.0 192.168.129.200 0.0.0.0 UG 40 0 0
usbd0
#
#
# ping 192.168.129.200
PING 192.168.129.200 (192.168.129.200): 56 data bytes
--- 192.168.129.200 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
#
# ping 192.168.129.201
PING 192.168.129.201 (192.168.129.201): 56 data bytes
64 bytes from 192.168.129.201: icmp_seq=0 ttl=255 time=1.0 ms
64 bytes from 192.168.129.201: icmp_seq=1 ttl=255 time=0.3 ms
--- 192.168.129.201 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.3/0.6/1.0 ms
#
-------------------------- END PASTE ------------------------------
Has you can see It does not work !??!?!
Any ideas/suggestion are more than welcome.
Thanks.
/Sebast.
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390