Author Topic: Strange Networking Pb...  (Read 6142 times)

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Strange Networking Pb...
« on: December 20, 2004, 10:13:29 am »
Hi!
I've been accessing the internet from my zaurus for monthes now, but since yesterday, it won't work...

I have a mandrake 10.0 and a sl c750 running pdaxrom katherin RC5.

i can ping from my zaurus to my mandrake, and to www.google.fr without any pb.
i can't pig from my mandrake to my zaurus.

I can't access the net with dillo, ans the status bar indicates "Contacting the host".

my zaurus ip is 192.168.129.201
my mandrake ip is 192.168.129.200
both have the same bcast and mask given by ifconfig.

i really don't understand anything...
Any help would be apreciated...
Thanks.

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Strange Networking Pb...
« Reply #1 on: December 20, 2004, 11:12:40 am »
I think we need some more information.  What is your gateway?  Is it the mandrake or a router?  I assume you are using ethernet and not through USB.  What dns server are you pointing to?  Have you added any new devices to your network (ie duplicate IP).  Can you browse the net by IP?
« Last Edit: December 20, 2004, 11:13:28 am by bluedevils »
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Strange Networking Pb...
« Reply #2 on: December 20, 2004, 05:42:51 pm »
hola hola bluedevils ! Slow down a little bit

i set up as a gateway on the zaurus my mandrake ip, i. e. 192.168.129.200, which worked fine until now.

I'm connected to my z via the usb cable and i reach the internet trough a usb sagem fast 800 but i think that for some dark reasons the eagle drivers that are in charge of this modem "emulate" a eth0 interface...

the dns server the same as it has lways been, it's my provider's dns (wanadoo.fr). Plus i don't think it comes from this as Dillo pass through the "solving dns" step.

And about this new device added to the network, i don't think i did such a thing. Well, i kind of did some time ago, but it never prevented my zaurus from reaching the net.

Thank you very much for answering me, and excuse me if i didn't understand one (or more) of your questions, but i'm still an unexperimented linux user  but i'm doing my best !

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Strange Networking Pb...
« Reply #3 on: December 21, 2004, 09:57:20 am »
i think this can be useful :

Code: [Select]
[root@mandrake alan]# ifconfig
eth1      Lien encap:Ethernet  HWaddr 00:60:4C:29:62:CF
          adr inet6: fe80::260:4cff:fe29:62cf/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:875 errors:0 dropped:0 overruns:0 frame:0
          TX packets:902 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          RX bytes:553485 (540.5 Kb)  TX bytes:111291 (108.6 Kb)

lo        Lien encap:Boucle locale
          inet adr:127.0.0.1  Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hôte
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:200 errors:0 dropped:0 overruns:0 frame:0
          TX packets:200 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0
          RX bytes:16416 (16.0 Kb)  TX bytes:16416 (16.0 Kb)

ppp0      Lien encap:Protocole Point-à-Point
          inet adr:83.xxx.xxx.xxx  P-t-P:193.253.160.3  Masque:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:479 errors:0 dropped:0 overruns:0 frame:0
          TX packets:441 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:3
          RX bytes:364967 (356.4 Kb)  TX bytes:49730 (48.5 Kb)

usb0      Lien encap:Ethernet  HWaddr 2E:A0:65:A9:0E:6E
          inet adr:192.168.129.200  Bcast:192.168.129.255  Masque:255.255.255.0
          adr inet6: fe80::2ca0:65ff:fea9:e6e/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          RX bytes:454 (454.0 b)  TX bytes:1082 (1.0 Kb)

the very strange thing is that i can ssh from my zaurus to my mandrake box without any problem...

I know i medded up my mandrake with some stupid manipulation (mainly eraising /var/log/*)   and that causes me some error message at boot time but everything works fine, except of course this connection sharing. I don't know if it is related.

zmiq2

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
    • http://
Strange Networking Pb...
« Reply #4 on: December 21, 2004, 10:18:44 am »
Since you have many adapters/interfaces, can you please also post the result of

#route -n

(maybe you've got a wrong default route)
sl-c750, archos av580, socket cf [bt, wifi, modem], noname cf lan, audiovox rtm800 gsm-gprs cf, rom: sharp -> oz3.5.3 -> cacko -> oz3.5.4.1

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Strange Networking Pb...
« Reply #5 on: December 22, 2004, 06:53:30 am »
hi zmiq2 !

i hope this is revelant :

Quote
[root@mandrake alan]# route -n
Table de routage IP du noyau
Destination     Passerelle      Genmask            Indic  Metric Ref    Use Iface
193.253.160.3   0.0.0.0         255.255.255.255  UH    0         0        0     ppp0
192.168.129.0   0.0.0.0         255.255.255.0      U       0         0        0     usb0
127.0.0.0           0.0.0.0         255.0.0.0              U       0         0        0     lo
0.0.0.0         193.253.160.3   0.0.0.0                 UG     0         0        0     ppp0

Thanks again.

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Strange Networking Pb...
« Reply #6 on: December 22, 2004, 06:31:13 pm »
sorry, i think my post was not clear

Code: [Select]
[root@mandrake alan]# route
Table de routage IP du noyau
Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
193.253.160.3   *               255.255.255.255 UH    0      0        0 ppp0
192.168.129.0   *               255.255.255.0   U     0      0        0 usb0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         193.253.160.3   0.0.0.0         UG    0      0        0 ppp0

Code: [Select]
[root@mandrake alan]# ifconfig
eth1      Lien encap:Ethernet  HWaddr 00:60:4C:29:62:CF
 Â         adr inet6: fe80::260:4cff:fe29:62cf/64 Scope:Lien
 Â         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Â         RX packets:27073 errors:0 dropped:0 overruns:0 frame:0
 Â         TX packets:17848 errors:0 dropped:0 overruns:0 carrier:0
 Â         collisions:0 lg file transmission:1000
 Â         RX bytes:34641855 (33.0 Mb)  TX bytes:1733353 (1.6 Mb)

lo        Lien encap:Boucle locale
 Â         inet adr:127.0.0.1  Masque:255.0.0.0
 Â         adr inet6: ::1/128 Scope:Hôte
 Â         UP LOOPBACK RUNNING  MTU:16436  Metric:1
 Â         RX packets:248 errors:0 dropped:0 overruns:0 frame:0
 Â         TX packets:248 errors:0 dropped:0 overruns:0 carrier:0
 Â         collisions:0 lg file transmission:0
 Â         RX bytes:19128 (18.6 Kb)  TX bytes:19128 (18.6 Kb)

ppp0      Lien encap:Protocole Point-à-Point
 Â         inet adr:83.115.133.65  P-t-P:193.253.160.3  Masque:255.255.255.255
 Â         UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
 Â         RX packets:26882 errors:0 dropped:0 overruns:0 frame:0
 Â         TX packets:17645 errors:0 dropped:0 overruns:0 carrier:0
 Â         collisions:0 lg file transmission:3
 Â         RX bytes:34586147 (32.9 Mb)  TX bytes:1372282 (1.3 Mb)

usb0      Lien encap:Ethernet  HWaddr EA:60:E5:09:D3:76
 Â         inet adr:192.168.129.200  Bcast:192.168.129.255  Masque:255.255.255.0
 Â         adr inet6: fe80::e860:e5ff:fe09:d376/64 Scope:Lien
 Â         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Â         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 Â         TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
 Â         collisions:0 lg file transmission:1000
 Â         RX bytes:0 (0.0 b)  TX bytes:582 (582.0 b)

I hope it's better...
« Last Edit: December 22, 2004, 06:38:01 pm by alan »

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Strange Networking Pb...
« Reply #7 on: December 28, 2004, 05:46:29 pm »
i'm still stuck into this... is there any thing else i should post ?

at boot time, i have an error bout http2 or something like that, i don't have time to read well... I guess there is a log somewhere, but i don't kniw which one it is.

Any help would be apreciated...

cvmiller

  • Full Member
  • ***
  • Posts: 242
    • View Profile
    • http://
Strange Networking Pb...
« Reply #8 on: December 29, 2004, 08:21:50 pm »
Quote
i'm still stuck into this... is there any thing else i should post ?

at boot time, i have an error bout http2 or something like that, i don't have time to read well... I guess there is a log somewhere, but i don't kniw which one it is.

Any help would be apreciated...
Perhaps I am not understanding, but what is the ppp0 interface used for? I see eth0 as well as usb0, and then there is the ppp0 with an interesting address on it (83.115.133.65). Your default gateway is via the 83.115.133.65 address right now.

Do you have a real ethernet interface for the Z. That would help.

Looking at what you have printed out, it looks like the usb0 is 192.168.129.200, not 201. That will cause you quite a few problems. Perhaps you could reconfigure the usb0 to something else, like .210 to ensure that it isn't the same as a current IP address.

I hope this helps,

Craig...
SL-6000
ROM v1.12 (Sharp)
Belkin F8U1500 IR Keyboard
1 GB SD Card by SanDisk (ext2)

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Strange Networking Pb...
« Reply #9 on: December 30, 2004, 12:26:17 pm »
Hi cvmiller !

Quote
Perhaps I am not understanding, but what is the ppp0 interface used for? I see eth0 as well as usb0, and then there is the ppp0 with an interesting address on it (83.115.133.65)

the point is i use a USB Sagem fast 800 modem to access the internet (ADSL). This modem doesn't work properly with mandrake (and linux in general...) so i use the Eagle USB driver which is the only way to have it work.

I don't precisely know how nor why, but this driver creates a "fake" eth0 (i have no ethernet card on my pc and when i get this interface down, i have no internet access anymore) but to me the most important interface is ppp0.

Quote
Your default gateway is via the 83.115.133.65 address right now.

It just doesn't work, plus it used to work with the usb0 adress (192.168.129.200).

Thanks anyway !  

Do you know if there is a way to completely reset the networking configuration under mandrake 10.0 ? Is used to work, it should work again !
« Last Edit: December 30, 2004, 12:27:58 pm by alan »

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
Strange Networking Pb...
« Reply #10 on: December 30, 2004, 12:26:23 pm »
At Zaurus, issue the following commad using root:

route add default gw 192.168.129.200

I hope the above will help.

cvmiller

  • Full Member
  • ***
  • Posts: 242
    • View Profile
    • http://
Strange Networking Pb...
« Reply #11 on: December 30, 2004, 09:12:59 pm »
I agree with freizugheit

Add the default route to your Zaurus. I miss understood earlier and thought those ifconfig displays were of your Z, not your Mandrake. So if I made a network diagram it would look like:

ADSL (USB)---> Mandrake-----USB---->Zaurus

Does that look right? If you Mandrake machine can get out to the internet and your Z can't, then it is probably your lack of a default route in the Z, and the Mandrake isn't setup to forward traffic (you will probably have to set it up for IP Masquerade.

I hope this helps,

Craig...
SL-6000
ROM v1.12 (Sharp)
Belkin F8U1500 IR Keyboard
1 GB SD Card by SanDisk (ext2)

alan

  • Full Member
  • ***
  • Posts: 221
    • View Profile
Strange Networking Pb...
« Reply #12 on: January 02, 2005, 08:41:36 am »
thank you guys, you're help is very appreciated, but it seems not to be the solution...

on the zaurus side, route gives me

Code: [Select]
Destination     Geteway            Genmask       Flags Metric Ref    Use Iface
193.168.129.0   *               255.255.255.0      U    0      0      0   usbd0
default         193.168.129.200   0.0.0.0         UG    0      0      0   usbd0

I think it means that the default gateway is already set up, does it ?

Craig : your network diagram is absolutely riht, i should have described it that way !
You say that the Mandrake may not be setup to forward traffic ? I think the solution is more in this way, but the thing is that it had been working for quite a lot of time before it stopped...

I use the Drakconf (gui) to configure everything on my mandrake. I did evrything that had been necessary on the first time, but it didn't work. I am not good at command line, so i have not been able to adapt the different how tos i've found here and there...

Sorry for so much newbiness  

Thanks again guys.

cvmiller

  • Full Member
  • ***
  • Posts: 242
    • View Profile
    • http://
Strange Networking Pb...
« Reply #13 on: January 03, 2005, 09:32:41 am »
OK, the routing table on the Z looks good.

Do you have forwarding turned on in Mandrake? I have never done it with a GUI, on CLI, so I don't now if I am going to be that much help, but you will need to turn on forwarding, and NAT, if you expect to surf the internet on the Z.

I run Mandrake on my Pismo Powerbook. It does look like there is a "Internet Connection Sharing" icon under "Network & Internet" in drakconf. You might want to check that to ensure that your forwarding and NAT are correctly setup.

I hope this helps,

Craig...
SL-6000
ROM v1.12 (Sharp)
Belkin F8U1500 IR Keyboard
1 GB SD Card by SanDisk (ext2)

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
Strange Networking Pb...
« Reply #14 on: January 03, 2005, 10:21:13 am »
Last time, I used the following for iptables configuratino for sharing Internet from Linux Internet gateway:

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

I hope this might help too.
« Last Edit: January 04, 2005, 09:58:33 am by freizugheit »