LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-14-2007, 03:01 PM   #1
Sir_Yaro
LQ Newbie
 
Registered: Jan 2005
Location: Poland
Distribution: Kubuntu 10.10
Posts: 14

Rep: Reputation: 0
Question routing problems with zaurus


That's my network:
http://yaro.gdi.pl/pic/diagram01.jpg

No matter what i try I can't set up routing for my palmtop zaurus.

zaurus ping usb0 and eth0 and can't get 192.168.0.1 (router)

On desktop:
Code:
[yaro]@d[~]$ ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:02:B3:95:9F:CC
          inet addr:192.168.0.100  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::202:b3ff:fe95:9fcc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16473 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16685 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14996632 (14.3 MiB)  TX bytes:3004685 (2.8 MiB)
Code:
[yaro]@d[~]$ ifconfig usb0
usb0      Link encap:Ethernet  HWaddr FE:69:EC:91:C3:A8
          inet addr:192.168.129.1  Bcast:192.168.129.255  Mask:255.255.255.0
          inet6 addr: fe80::fc69:ecff:fe91:c3a8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1494  Metric:1
          RX packets:564 errors:0 dropped:0 overruns:0 frame:0
          TX packets:648 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:33401 (32.6 KiB)  TX bytes:47072 (45.9 KiB)

[yaro]@d[~]$
routing table:
Code:
[yaro]@d[~]$ route
Kernel IP routeing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.129.0   *               255.255.255.0   U     0      0        0 usb0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
172.16.10.0     *               255.255.255.0   U     0      0        0 vmnet8
default         router          0.0.0.0         UG    0      0        0 eth0
[yaro]@d[~]$ host router
router has address 192.168.0.1
[yaro]@d[~]$
answers on desktop:
Code:
[yaro]@d[~]$ ping -c 1 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=255 time=1.37 ms

--- 192.168.129.201 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.375/1.375/1.375/0.000 ms
[yaro]@d[~]$ 
[yaro]@d[~]$ ping -c 1 192.168.129.1
PING 192.168.129.1 (192.168.129.1) 56(84) bytes of data.
64 bytes from 192.168.129.1: icmp_seq=1 ttl=64 time=0.078 ms

--- 192.168.129.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.078/0.078/0.078/0.000 ms
[yaro]@d[~]$ 
[yaro]@d[~]$ ping -c 1 192.168.0.100
PING 192.168.0.100 (192.168.0.100) 56(84) bytes of data.
64 bytes from 192.168.0.100: icmp_seq=1 ttl=64 time=0.075 ms

--- 192.168.0.100 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.075/0.075/0.075/0.000 ms
[yaro]@d[~]$ 
[yaro]@d[~]$ ping -c 1 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.417 ms

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.417/0.417/0.417/0.000 ms
[yaro]@d[~]$

On zaurus:
Code:
root@zaurus:~# ifconfig usbd0
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
          inet6 addr: fe80::4200:1ff:fe00:1/10 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1494  Metric:1
          RX packets:843 errors:0 dropped:0 overruns:0 frame:0
          TX packets:710 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:55198 (53.9 KiB)  TX bytes:58233 (56.8 KiB)

root@zaurus:~#
answers on zaurus:
Code:
root@zaurus:~# ping -c 1 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=0.4 ms

--- 192.168.129.201 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 0.4/0.4/0.4 ms
root@zaurus:~# 
root@zaurus:~# ping -c 1 192.168.129.1
PING 192.168.129.1 (192.168.129.1): 56 data bytes
64 bytes from 192.168.129.1: icmp_seq=0 ttl=64 time=1.5 ms

--- 192.168.129.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 1.5/1.5/1.5 ms
root@zaurus:~# 
root@zaurus:~# ping -c 1 192.168.0.100
PING 192.168.0.100 (192.168.0.100): 56 data bytes
64 bytes from 192.168.0.100: icmp_seq=0 ttl=64 time=1.8 ms

--- 192.168.0.100 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 1.8/1.8/1.8 ms
root@zaurus:~# 
root@zaurus:~# ping -c 1 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
root@zaurus:~#
routing table:
Code:
root@zaurus:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.129.0   *               255.255.255.0   U     0      0        0 usbd0
default         192.168.129.1   0.0.0.0         UG    0      0        0 usbd0
root@zaurus:~#
I tried almost everything but no matter I do i can't route packets from pda to router. It should be damn easy but it just doesn't work and I have no clue why :/

Any help appreciated...
 
Old 03-14-2007, 03:15 PM   #2
Sir_Yaro
LQ Newbie
 
Registered: Jan 2005
Location: Poland
Distribution: Kubuntu 10.10
Posts: 14

Original Poster
Rep: Reputation: 0
i just find solution!!!

Code:
modprobe ip_tables
modprobe iptable_nat

echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/ip_dynaddr

EXTIF="eth0"
INTIF="usb0"

iptables -P INPUT ACCEPT
iptables -F INPUT
iptables -P OUTPUT ACCEPT
iptables -F OUTPUT
iptables -P FORWARD DROP
iptables -F FORWARD
iptables -t nat -F

iptables -A FORWARD -i $EXTIF -o $INTIF -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
iptables -A FORWARD -j LOG

iptables -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE
and everything works like charm...
 
Old 03-16-2007, 10:13 AM   #3
Sir_Yaro
LQ Newbie
 
Registered: Jan 2005
Location: Poland
Distribution: Kubuntu 10.10
Posts: 14

Original Poster
Rep: Reputation: 0
http://wiki.openzaurus.org/HowTos/Bridging_with_Gentoo

Quote:
I found that the MTU assigned to usbd0 on the Zaurus was diferent from that assigned to usb0 on the PC:

Different MYU does not prevent logging into the Zaurus using ssh but does prevent downloading files larger than about 1kB. I am not sure why this happens, it may be related to this kernel bug report

The solution is to reduce the MTU on the Zaurus end. You can configure the Zaurus to do this automatically by editing /etc/network/interfaces. Find the section starting 'iface usbd0' and add the following line:

up ifconfig usbd0 mtu 1494
 
  


Reply

Tags
routing, usb, zaurus



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
zaurus usb dmesg error, new to zaurus, and hey first post. hi erikmallinson Linux - Laptop and Netbook 7 08-22-2008 05:15 AM
problems syncing my sharp zaurus sl5500 with XP pro craz3 Linux - Laptop and Netbook 3 11-27-2005 03:40 AM
Zaurus Linux Ftp problems bunty Linux - Hardware 1 12-02-2004 08:21 PM
vim on zaurus with open zaurus libncurses problem Brain Drop Linux - Laptop and Netbook 2 02-25-2004 06:59 PM
Zaurus install problems Rivitir Linux - Laptop and Netbook 1 12-10-2003 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration