OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

4 Pages V  < 1 2 3 4 >  
Reply to this topicStart new topic
> Usb Connection Howto, Windows & Linux - OE specific
telemetric_au
post Apr 17 2006, 06:33 AM
Post #31





Group: Members
Posts: 327
Joined: 28-February 06
From: South East of South Australia
Member No.: 9,251



followed 7_feet_up's guide (thanks) and it would work as far as assigning the ip to usb0, but it seemed the pointopoint command wasnt working as i couldn't ping either way unless i executed the command:

CODE
route add -host 192.168.129.201 usb0


but i wanted this down automatically so i added it into /etc/network/interfaces like so:

CODE
iface usb0 inet static
address 192.168.1.105
netmask 255.255.255.0

post-up route add -host 192.168.1.201 usb0


* adjust your ip's to suit and enjoy ~1-3ms response times biggrin.gif

now onto ICS ...
Go to the top of the page
 
+Quote Post
telemetric_au
post Apr 17 2006, 07:11 AM
Post #32





Group: Members
Posts: 327
Joined: 28-February 06
From: South East of South Australia
Member No.: 9,251



well after mucking aroun some i cant get my z to ping past my pc which is connected by ethernet to adsl/router and the interent ...

have put the iptables config commands as suggeste in the interfaces file and is executing but doesnt seem to work

i d like explained this code : specifically the choice of ip's that relevance...

CODE
up iptables -t filter -A FORWARD -s 192.168.129.0/24 -j ACCEPT
up iptables -t filter -A FORWARD -d 192.168.129.0/24 -j ACCEPT
up iptables -t nat -F PREROUTING
up iptables -t nat -P PREROUTING ACCEPT
up iptables -t nat -F POSTROUTING
up iptables -t nat -P POSTROUTING ACCEPT
up iptables -t nat -F OUTPUT
up iptables -t nat -P OUTPUT ACCEPT
up iptables -t nat -A POSTROUTING -s 192.168.129.0/24 -o usb0 -j MASQUERADE
Go to the top of the page
 
+Quote Post
telemetric_au
post Apr 18 2006, 04:17 AM
Post #33





Group: Members
Posts: 327
Joined: 28-February 06
From: South East of South Australia
Member No.: 9,251



I GOT IT WORKING !!! --finally after trying every other tech...

(SL-5500 connected via usb cradle to DEBAIN SID connected via ethernet to ADSL router)

with another method briefly touched on in this and most threads.... "bridging"

here's the config: biggrin.gif

first: apt-get install bridge-utils
(this gives you the brctl command)

PC's : /etc/network/interfaces (note: 192.168.1.105 is simply a dummy address to bring usb0 up with and is then reset to 0.0.0.0)

CODE
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 0.0.0.0
netmask 0.0.0.0

auto br0
iface br0 inet dhcp
pre-up brctl addbr br0
pre-up brctl addif br0 eth0
post-down brctl delbr br0

allow-hotplug usb0
mapping hotplug
script grep
map usb0
iface usb0 inet static
address 192.168.1.105
netmask 255.255.255.0
post-up ifconfig usb0 0.0.0.0 up
post-up brctl addif br0 usb0
post-down brctl delif br0 usb0


exec # /etc/init.d/networking restart

alternatively br0 can be assigned manually rather than dhcp from a router etc...

Zaurus's Network Set-up GUI ;

configure usbd0:

CODE
check automatically bring-up
set ip address, subnet, gateway, dns's as needed (with gateway being your pc's assigned ip *(not router), be that for eth0 or what would now be br0)


now as i did a fair bit of mucking around first there may be some of the things prior to this method needed though i dont recon here they are:

on Z; edit /etc/resolv.conf to match your pc's ... and add def gateway commands etc as commonly done, but i think OPZ's GUI setup screen handles that...

cool.gif -can now ping www.google.com ... now onto package management ...

references:

http://www.gumstix.org/tikiwiki/tiki-index...page=Networking
http://www.stolk.org/debian/bluetooth.html
Go to the top of the page
 
+Quote Post
telemetric_au
post Apr 18 2006, 04:44 AM
Post #34





Group: Members
Posts: 327
Joined: 28-February 06
From: South East of South Australia
Member No.: 9,251



Just to make life even more sweet, i just set the OPZ GUI network interefaces setup for usbd0 to DHCP,
took it out the cradle put it back in, waited a bit, closed and opened the config applet (to refresh) and it's now been assigned an ip from my router !! smile.gif

and just to check can still ping www.google.com wink.gif

-and the package manager has started working , just updated the package list and about to start checkin' the feed smile.gif
Go to the top of the page
 
+Quote Post
telemetric_au
post Apr 28 2006, 03:25 PM
Post #35





Group: Members
Posts: 327
Joined: 28-February 06
From: South East of South Australia
Member No.: 9,251



i just added an updated bridging guide to the wiki:

http://www.oesf.org/index.php?title=Generi...and_Bridging%29
Go to the top of the page
 
+Quote Post
lardman
post Apr 29 2006, 02:03 PM
Post #36





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



Please add stuff to the official OZ wiki: http://openzaurus.berlios.de/

Thanks smile.gif


Si
Go to the top of the page
 
+Quote Post
telemetric_au
post Apr 29 2006, 02:25 PM
Post #37





Group: Members
Posts: 327
Joined: 28-February 06
From: South East of South Australia
Member No.: 9,251



trying to do it now, but the server is soooo slow...

would also like to be able to upoad images...
Go to the top of the page
 
+Quote Post
NickNak
post May 1 2006, 12:17 PM
Post #38





Group: Members
Posts: 11
Joined: 6-September 05
From: Bedfordshire, UK
Member No.: 8,046



I have run into problems with my bridging setup: I can log into my SL-5500 using ssh, ping hosts on the internet, download small files using wget, but if I try to download anything bigger than about 1k I get "no response from the server". I have noticed that usb0 on the desktop gets an MTU of 1494 whereas usbd0 at the other end on the Zaurus gets an MTU of 1500. I can't increase usb0 to 1500 on the desktop, but if I decrease usbd0 to 1494 on the Z ('ifconfig usbd0 mtu 1494') the problem is fixed. My question is: why doesn't this 'just work'? Why do usb0 and usbd0 get different MTUs? Is there a bug somewhere, or is there something wrong with my setup?
Go to the top of the page
 
+Quote Post
telemetric_au
post May 2 2006, 03:09 PM
Post #39





Group: Members
Posts: 327
Joined: 28-February 06
From: South East of South Australia
Member No.: 9,251



sorry, but i have no experience with that problem ... i have seen mention of it elsewhere, either in the wiki or on the boards...
Go to the top of the page
 
+Quote Post
7_feet_up
post May 3 2006, 02:32 AM
Post #40





Group: Members
Posts: 27
Joined: 19-April 05
From: Netherlands
Member No.: 6,917



QUOTE(NickNak @ May 1 2006, 09:17 PM)
I have run into problems with my bridging setup:  I can log into my SL-5500 using ssh, ping hosts on the internet, download small files using wget, but if I try to download anything bigger than about 1k I get "no response from the server".  I have noticed that usb0 on the desktop gets an MTU of 1494 whereas usbd0 at the other end on the Zaurus gets an MTU of 1500. I can't increase usb0 to 1500 on the desktop, but if I decrease usbd0 to 1494 on the Z ('ifconfig usbd0 mtu 1494') the problem is fixed.  My question is: why doesn't this 'just work'?  Why do usb0 and usbd0 get different MTUs? Is there a bug somewhere, or is there something wrong with my setup?
*

I don't know what causes the necessity to shrink the mtu, but the issue has been described before on the usbnet driver page and already has been reported on the kernel bugzilla. I certainly would consider it a bug, either on the zaurus side, or on the desktop side.
Go to the top of the page
 
+Quote Post
NickNak
post May 4 2006, 01:54 PM
Post #41





Group: Members
Posts: 11
Joined: 6-September 05
From: Bedfordshire, UK
Member No.: 8,046



The "USB Networking" howto submitted by telemetric_au seems to be Debian-specific, maybe the title should reflect that. I have just added a Gentoo-specific howto: http://openzaurus.berlios.de/HowTos/Bridging_with_Gentoo which includes a workaround for the MTU problem I mention above.
Go to the top of the page
 
+Quote Post
telemetric_au
post May 4 2006, 03:04 PM
Post #42





Group: Members
Posts: 327
Joined: 28-February 06
From: South East of South Australia
Member No.: 9,251



QUOTE(NickNak @ May 5 2006, 08:54 AM)
The "USB Networking" howto submitted by telemetric_au seems to be Debian-specific, maybe the title should reflect that.  I have just added a Gentoo-specific howto: http://openzaurus.berlios.de/HowTos/Bridging_with_Gentoo which includes a workaround for the MTU problem I mention above.
*



would like to get a look at that, but the server wont even load the page...

i do mention what system its setup on...

will look into it more though when can load your page...

good to hear you got it worked smile.gif
Go to the top of the page
 
+Quote Post
telemetric_au
post May 4 2006, 03:20 PM
Post #43





Group: Members
Posts: 327
Joined: 28-February 06
From: South East of South Australia
Member No.: 9,251



NickNak:

fixed up my title to debian rather than generic,

and gave a link to your page ...

nice guide, i didnt realise there was such difference between the systems...

thanks
Go to the top of the page
 
+Quote Post
benplaut
post Jul 18 2006, 06:51 PM
Post #44





Group: Members
Posts: 113
Joined: 27-April 05
Member No.: 7,011



waiting for an arch tutorial, all you arch users hidden in the shadows wink.gif

anyway, if i figure it out, i'll post tongue.gif
Go to the top of the page
 
+Quote Post
lardman
post Jul 19 2006, 02:32 AM
Post #45





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



If someone fancies tidying up the info in this thread and adding it to the OZ wiki (http://openzaurus.berlios.de/ or http://wiki.openzaurus.org/), that would be useful.


Si
Go to the top of the page
 
+Quote Post

4 Pages V  < 1 2 3 4 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd July 2014 - 05:47 AM