Author Topic: slackware network setup  (Read 3038 times)

uberjoe

  • Full Member
  • ***
  • Posts: 131
    • View Profile
slackware network setup
« on: September 18, 2004, 02:53:34 am »
I'm trying to establish a usb connection between my slackware 10 (2.4.26) box and my z running openzaurus 3.3.6pre1. I can't ping, telnet, ssh, nothing. As far as I can tell I should be able to at least ping the damn thing. When I put the z in the cradle I get a new interface called eth1, everything I've read on the subject says I should get an interface called usb0 Could that be the problem? here is the dmesg output:

usb.c: USB disconnect on device 02:0c.1-2 address 4
hub.c: new USB device 02:0c.1-2, assigned address 5
CDCEther.c: Found Header descriptor, CDC version 110.
CDCEther.c: Imperfect filtering support - need sw hashing
CDCEther.c: Can't use SetEthernetMulticastFilters request
CDCEther.c: detected BULK OUT packets of size 64
CDCEther.c: eth1: Sharp SL-5500 400002000001
CDCEther.c: eth1: 40:00:02:00:00:01

When I run ifconfig eth1:

eth1      Link encap:Ethernet  HWaddr 40:00:02: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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0
          RX bytes:0 (0.0   TX bytes:0 (0.0

When I try to telnet I get a connection refused error. When I try to ssh I am asked for a password which I type in and am still refused. When I ping I get this forever, never stopping

ping 192.168.129.201
PING 192.168.129.201 (192.168.129.201) 56(84) bytes of data.
64 bytes from 192.168.129.201: icmp_seq=1 ttl=64 time=0.037 ms
64 bytes from 192.168.129.201: icmp_seq=2 ttl=64 time=0.033 ms
64 bytes from 192.168.129.201: icmp_seq=3 ttl=64 time=0.029 ms
64 bytes from 192.168.129.201: icmp_seq=4 ttl=64 time=0.031 ms
64 bytes from 192.168.129.201: icmp_seq=5 ttl=64 time=0.029 ms
64 bytes from 192.168.129.201: icmp_seq=6 ttl=64 time=0.029 ms

What the heck is going here?
SL-5500 hentges rom 3.5.2 w/cardfs and opie 1.1.8
Belkin IR keyboard
64mb cf card
256 sd card
Spectrum24 cf wi-fi card

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
slackware network setup
« Reply #1 on: September 18, 2004, 05:44:57 am »
Looks like slackware creates an eth1 device rather than a usb1 (or usbd1) device. Don't worry about it.

Telnet is not enabled on OZ, use ssh instead: 'ssh -l root 192.168.129.201'

However you have to make sure that eth1 is not using the same IP address as the Z (e.g. 192.168.129.201 by default). Try 192.168.129.200 instead.

It looks as though you are ping'ing/ssh'ing your end of the connection at the moment.


Simon
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

uberjoe

  • Full Member
  • ***
  • Posts: 131
    • View Profile
slackware network setup
« Reply #2 on: September 18, 2004, 03:30:05 pm »
Ok, here's what I've got so far:

eth1      Link encap:Ethernet  HWaddr 40:00:02:00:00:01
          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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0
          RX bytes:0 (0.0   TX bytes:4452 (4.3 Kb)

The ip of my z is 192.168.129.201 with a default gw of 192.168.129.200. When I try the command you supplied I get this:

ssh -l root 192.168.129.201
ssh: connect to host 192.168.129.201 port 22: No route to host

I'm confused because I added a route to that address. with this command:

route add -host 192.168.129.201 eth1

Thanks for all your help.
SL-5500 hentges rom 3.5.2 w/cardfs and opie 1.1.8
Belkin IR keyboard
64mb cf card
256 sd card
Spectrum24 cf wi-fi card

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
slackware network setup
« Reply #3 on: September 19, 2004, 06:06:46 am »
Hmm, I've never really looked into adding routes, so I'm not sure there.

Can you ping in either direction (Z from PC, PC from Z)?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

uberjoe

  • Full Member
  • ***
  • Posts: 131
    • View Profile
slackware network setup
« Reply #4 on: September 19, 2004, 01:32:51 pm »
I can't ping in either direction, pc to z or z to pc.

ping -c 1 192.168.129.201
PING 192.168.129.201 (192.168.129.201) 56(84) bytes of data.
From 192.168.129.200 icmp_seq=1 Destination Host Unreachable

--- 192.168.129.201 ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3025ms
, pipe 3
SL-5500 hentges rom 3.5.2 w/cardfs and opie 1.1.8
Belkin IR keyboard
64mb cf card
256 sd card
Spectrum24 cf wi-fi card

AxeZ

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • http://www.mycity.co.yu
slackware network setup
« Reply #5 on: September 21, 2004, 05:13:52 pm »
Same here, with the difference that I configured my slackware box and sl-5600 as explained in http://www.ruault.com/Zaurus/ethernet-over-usb-howto.html and at first i got usb0, configured everything properly. I could ping both wasy, I even went to browse the net with opera without any problems but it just stopped working, I think when it suspended itself.

When I checked ifconfig there was no usb0 but suddenly there was eth1 instead.

I am puzzled.
« Last Edit: September 21, 2004, 05:14:34 pm by AxeZ »

uberjoe

  • Full Member
  • ***
  • Posts: 131
    • View Profile
slackware network setup
« Reply #6 on: September 22, 2004, 09:45:00 pm »
Ok I've made some progress, everything works under windows with this setup
pc:

   ip   192.168.129.201
   mask   255.255.255.0
   gw   192.168.129.1

z:

   ip   192.168.129.1
   mask   255.255.255.0
   gw   192.168.129.201

but windows, sucking as it does is not acceptable.
I seen to have a problem adding a default gw in linux. When I use the command:
route add default gw 192.168.129.1 eth1
nothing happens except that I can no longer connect to the internet. So I don't know what is going on anymore.
SL-5500 hentges rom 3.5.2 w/cardfs and opie 1.1.8
Belkin IR keyboard
64mb cf card
256 sd card
Spectrum24 cf wi-fi card

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
slackware network setup
« Reply #7 on: September 23, 2004, 06:44:45 am »
What did you guys set your VendorID and ProductID to?

They are not the same as those used for the 5500/5000D.

Edit: UberJoe, ignore me as you are using a 5500, AxeZ this applies to you.


Si
« Last Edit: September 23, 2004, 06:48:18 am by lardman »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

uberjoe

  • Full Member
  • ***
  • Posts: 131
    • View Profile
slackware network setup
« Reply #8 on: September 25, 2004, 07:54:26 pm »
More progress, Had to upgrade my kernel to 2.6.7 and most everything works now. ping works, ssh works, but ftp is still a no go. I have security on the z setup to accept connections from any network but it still refuses the connection. Is there a switch I need to flip to accept ftp connections? FTP under windows does not work anymore either, but that is no big loss

when I put the ftp address in a konqueror window and hit enter, a windows pops up on the z asking to allow or deny the connection. I tap allow and konqueror says : could not enter folder. Don't know if that's helpful but there it is.
« Last Edit: September 25, 2004, 07:57:57 pm by uberjoe »
SL-5500 hentges rom 3.5.2 w/cardfs and opie 1.1.8
Belkin IR keyboard
64mb cf card
256 sd card
Spectrum24 cf wi-fi card