[iPAQ] Re: [Familiar] usb networking

From: Aaron <aamehl_at_actcom.net.il>
Date: Tue, 26 Oct 2004 07:12:01 +0200

HI thanks

What about the usbnet file the howto on the wiki mentions?
I don't need that anymore?

I don't know where you found all this out but voila the
> /sbin/ifconfig usb0 192.168.1.14/32 up
and
/sbin/route add 192.168.1.15 dev usb0

was what I was missing I remember something like it existing but I
couldn't find reference to it anywhere.

Thanks
this is great.

let me know about the hotplug issue.
much thanks
Aaron
> First work on the ipaq side of things...
>
> -bash-2.05b# lsmod | grep usb
> usb-eth 5996 1 (autoclean)
> sa1100usb_core 16344 0 (autoclean) [usb-eth]
>
> If usb-eth is not loaded, load it and check again:
> -bash-2.05b# modprobe usb-eth
>
> Now check your ipaq network settings:
>
> -bash-2.05b# tail -7 /etc/network/interfaces
> # usb network
> # (192.168.0.202 is the iPAQ's IP, 192.168.0.200 is the host's IP)
> iface usbf inet static
> address 192.168.1.15
> netmask 255.255.255.0
> network 192.168.1.0
> gateway 192.168.1.14
>
> In the above you are stating that you want the usbf interface on
> your ipaq to have the ip 192.168.1.15. As this is only a point to
> point connection your gateway (192.168.1.14) is also the ip of
> the other end (in this case your PC's usb network interface).
>
> Having set that up, put your ipaq in your usb cradle. It should
> automatically configure the usbf interface. Your ipaq may appear
> to hang at this point. This is because the other side of the
> point-to-point connection is awaiting configuration. Go to your
> pc now and check you can see your usb0 interface:
>
> ben_at_slack-tv$ /sbin/ifconfig usb0
> ... your unconfigured usb0 details here
>
> Now you want to configure your usb0 interface:
>
> ben_at_slack-tv$ /sbin/ifconfig usb0 192.168.1.14/32 up
> ben_at_slack-tv$ /sbin/route add 192.168.1.15 dev usb0
>
> This adds a route to the ipaq. Now ping the ipaq's
> usb interface to make sure you can see it:
>
> ben_at_slack-tv$ ping 192.168.1.15
> PING 192.168.1.15 (192.168.1.15) 56(84) bytes of data.
> 64 bytes from 192.168.1.15: icmp_seq=1 ttl=64 time=1.77 ms
> 64 bytes from 192.168.1.15: icmp_seq=2 ttl=64 time=1.25 ms
> ^C
>
> Success! Now ssh into it from your pc:
>
> ben_at_slack-tv$ root_at_192.168.1.15
>
> Hope that helps you out. You can make life easier by getting
> hotplug to recognise the interface has come up and configure
> it automagically for you. I haven't got this rock steady
> myself yet so I'll hold fire on that one.
>
> HTH,
>
> Ben
> _______________________________________________
> The Familiar Linux Distribution
> Familiar mailing list
> Familiar_at_handhelds.org
> https://handhelds.org/mailman/listinfo/familiar
> irc://irc.freenode.net #familiar
>
Received on Tue Oct 26 2004 - 01:06:49 EDT

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:25:06 EDT