OESF Portables Forum

Everything Else => Desktop Operating Systems Issues => Zaurus General Forums => Archived Forums => Linux Issues => Topic started by: fir on December 07, 2004, 08:27:13 am

Title: Fedora Core 3 And Usb Networking
Post by: fir on December 07, 2004, 08:27:13 am
I'm tryiong to get a C860 w/Cacko networked via my Fedora Core three box.  The good news is that USB networking is enabled by default.  If I plug in the Z, ifup the interface, and add a route, then I have connectivity between the two machines.

I'd like to have hotplug bring up the interface and add the route automatically.  I've googled for instructions, and found some, but I haven't fouind any that work with FC3.  Simply adding a /etc/hotplug/usbdnet file doesn't do anything - it is ignored.

Likewise the iptables scripts I have seen to enable masquerading for the Z have not worked for me.  The one I tried actually stopped my FC3 box from communicating with anything.

Any help with either of the above issues will be gratefully received.

Frank.
Title: Fedora Core 3 And Usb Networking
Post by: nberger on December 07, 2004, 02:23:19 pm
In FC3 for some reason the name of the USB module is 'usbnet', not 'usbdnet', so you should change the name of your script to 'usbnet' .  Also make sure the script is executable by everybody. (chmod a+x usbnet). It's working for me with this setup so let me know if it doesn't...

Cheers,
- Nicolas
Title: Fedora Core 3 And Usb Networking
Post by: raybert on December 07, 2004, 04:54:49 pm
I just upgraded to FC3 from RH9.  I didn't need to change anything, my Z (C860) continued working just as before.

To get my C860 working on RH9 I had to do the following:
Code: [Select]
DEVICE=usb0
IPADDR=192.168.22.1
NETMASK=255.255.255.0
NETWORK=192.168.22.0
BROADCAST=192.168.22.255
BOOTPROTO=static
NOZEROCONF=yes

(Note that the 22's should be changed to match your Z's address.)

I *think* that's all I did.  When I plug my Z in it is automatically set-up and I can immediately get to it via the network.

Good luck.

~ray
Title: Fedora Core 3 And Usb Networking
Post by: pjf02536 on December 07, 2004, 08:45:16 pm
ON FC3 all I needed to do was blacklist the CDCEther then bring up usbnet

rmmod CDCEther
( acm not needed to be blacklisted, as My cell phone needs this )
modprobe usbnet

then pop in the Z .....

-Pete F
Title: Fedora Core 3 And Usb Networking
Post by: fir on December 08, 2004, 08:28:52 am
Thanks everyone!  I now have the hotplug working so I can just plug in the Z and be connected.  Great.

I'm still in the dark about getting the FC3 box to route for the zaurus, so that it has connectivity to more than just the host.  Any tips there?

Frank.
Title: Fedora Core 3 And Usb Networking
Post by: otzenpunk on December 13, 2004, 12:36:26 pm
Don't know anything about your network situation, but maybe your workstation, where you plug your zaurus into, is itself behind a router, so you have to add another route on the router?

For example you have the following configuration:
Inet <--> Router (192.168.1.1) <--> (192.168.1.2) Workstation (192.168.129.1) <--> (192.168.129.201) Zaurus

Then you have to add the following route on the router (linux syntax):
route add -net 192.168.129.0 netmask 255.255.255.0 gw 192.168.1.2

The gateway of your Zaurus stays as is. (Should be 192.168.129.1, in the example.)

Additionally, you don't need any masquerading on your workstation, if your router already does the masquerading.
Title: Fedora Core 3 And Usb Networking
Post by: otzenpunk on December 13, 2004, 01:25:56 pm
Just forgot:

Of course you have to turn IP forwarding on on your workstation, like this:
echo 1 > /proc/sys/net/ipv4/ip_forward
Title: Fedora Core 3 And Usb Networking
Post by: fir on December 13, 2004, 01:29:14 pm
Yes, that would work where I have control of the router, however I am often in environments where I do not.  I'm sure I can figure out the masquerading when I find the time to sit down and read about it and play a little.  I probably would have done that this past weekend if I hadn't run into trouble installing Fedora Core 3 on a couple machines with Adaptec 2410SA SATA RAID controllers.  Worked before, doesn't work now; very frustrating (but not on topic here).

Frank.
Title: Fedora Core 3 And Usb Networking
Post by: otzenpunk on December 13, 2004, 08:37:58 pm
Good luck.
I hope you already know this (http://www.netfilter.org/documentation/HOWTO/NAT-HOWTO.html)?
Title: Fedora Core 3 And Usb Networking
Post by: fir on December 14, 2004, 07:59:23 am
Quote
Good luck.
I hope you already know this (http://www.netfilter.org/documentation/HOWTO/NAT-HOWTO.html)?
One of the things I need to figure out is where things have changed.  The scripts I have found in various HOWTO documents for the Zaurus to enable NAT have only runied connectivity for the host.  I am guessing this is because they were written for something a little earlier than I am using (Fedora Core 3, Kernel 2.6.9)

Frank