Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 02 Sep 2014, 05:56
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
shareInternet-2.2.4.pet - Puppy as router - bugfix
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 8 [110 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
Author Message
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Thu 10 Jun 2010, 03:29    Post subject:  

alienx2,

Thinking about this after my last response, I'm wondering if this is a dhcp problem, since it happens some time later.
(shareInternet only starts things going, and stops things. It doesn't actually run while traffic is flowing.)

That said, can we establish which link dies, when things fail:
Can the puppy machine still talk to the internet?
Can the puppy machine still talk to the Linksys router?

Other questions:
Is the ethernet port on the Puppy machine, that is connected to the Linksys router, defined statically?
Are you using the Linksys router as a router?
Is it running dhcp as a server?
(When I do something similar I plug the puppy machine into one of the client ports of the wireless router, and stop the dhcp server on the router. Effectively using the wireless router as an ethernet switch.)

gyro
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Thu 10 Jun 2010, 03:36    Post subject: shareInternet-2.2.2.pet  

I have attached the current version of shareInternet, 2.2.2.

The only change is a tweak to the iptables firewall rules.

gyro

Edit: withdrawn, please use v2.2.3 as per first post

Last edited by gyro on Fri 11 Jun 2010, 21:45; edited 1 time in total
Back to top
View user's profile Send private message 
alienx2

Joined: 24 May 2010
Posts: 13

PostPosted: Thu 10 Jun 2010, 08:25    Post subject:  

gyro wrote:
alienx2,

Thinking about this after my last response, I'm wondering if this is a dhcp problem, since it happens some time later.
(shareInternet only starts things going, and stops things. It doesn't actually run while traffic is flowing.)

That said, can we establish which link dies, when things fail:
Can the puppy machine still talk to the internet?
Can the puppy machine still talk to the Linksys router?


Its only one problem is talk to internet... Linksys is working connect to puppy linux (tested with Remote Desktop VNC, FTP)



Quote:

Is the ethernet port on the Puppy machine, that is connected to the Linksys router, defined statically?


yes. eth0 = static IP to linksys. then eth1 = auto DHCP to internet...

Quote:
Are you using the Linksys router as a router?


yes but gateway to puppy linux as router.

Quote:
Is it running dhcp as a server?


only internet have dhcp.
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Thu 10 Jun 2010, 10:27    Post subject:  

alienx2 wrote:
Its only one problem is talk to internet... Linksys is working connect to puppy linux (tested with Remote Desktop VNC, FTP)
I think you are saying that all links stay up except the link between the Puppy box and the Internet.
Just to be sure, when the problem occurs can the windows box "ping" the puppy box?
If the puppy box is not running as a router, does not run shareInternet, can it maintain the link to the Internet?

alienx2 wrote:
only internet have dhcp.

I would be surprised if this were the case.
If you run shareInternet, then it runs "dnsmasq" to provide a dhcp service downstream to the Linkysys router, and SOHO routers usually provide a dhcp service to their clients, in this case the windows box.
I would also suspect that the Linksys expects a dhcp service upstream on the puppy box.

gyro
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Thu 10 Jun 2010, 10:40    Post subject:  

alienx2,

Just thought of another couple of questions.

What is the static IP address on eth0 of the puppy box?
What is the IP address of the windows box?

gyro
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Thu 10 Jun 2010, 11:00    Post subject:  

alienx2,

A silly question, have you tried connecting the linksys directly to the ethernet port of the motorola?

gyro
Back to top
View user's profile Send private message 
alienx2

Joined: 24 May 2010
Posts: 13

PostPosted: Thu 10 Jun 2010, 11:11    Post subject:  

gyro wrote:
alienx2 wrote:
Its only one problem is talk to internet... Linksys is working connect to puppy linux (tested with Remote Desktop VNC, FTP)
I think you are saying that all links stay up except the link between the Puppy box and the Internet.
Just to be sure, when the problem occurs can the windows box "ping" the puppy box?
If the puppy box is not running as a router, does not run shareInternet, can it maintain the link to the Internet?


windows box cant ping internet even also puppy linux (with shareinternet) cant ping internet. so manual turn off eth1 (internet) then turn on eth1.. both of them ping work.

because it sound like the problem is 2 network card conflict.

yes puppy box need shareInternet to be router Smile



gyro wrote:

alienx2 wrote:
only internet have dhcp.

I would be surprised if this were the case.
If you run shareInternet, then it runs "dnsmasq" to provide a dhcp service downstream to the Linkysys router, and SOHO routers usually provide a dhcp service to their clients, in this case the windows box.
I would also suspect that the Linksys expects a dhcp service upstream on the puppy box.


linksys is working connect with puppy box (with shareInternet)... because linksys gateway ip is Ip address of puppy box.

gyro wrote:

What is the static IP address on eth0 of the puppy box?


in puppy box, eth0 is 192.168.1.101

gyro wrote:

What is the IP address of the windows box?


windows box is 192.168.1.102

192.168.1.xxx is linksys router


gyro wrote:

A silly question, have you tried connecting the linksys directly to the ethernet port of the motorola?


yes its always working.. but linksys got disconnect.. because my internet always disconnect every 3-6 hours... there is no automatic detect DHCP in linksys settings... About test straight up to internet (motorola) without router, Windows, ubuntu is working and automatic detect after internet disconnect...
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Fri 11 Jun 2010, 09:59    Post subject:  

alienx2,

I think you are saying:
if you connect the windows box directly to the motorola, it works fine.
If you connect the linksys router directly to the motorola, then the link to the internet drops after a few hours.
If you connect the puppy box to the motorola and the linksys to the puppy box, then the internet drops after a few hours.

One guess is that the motorola often gets a different IP address from dhcp every few hours. The windows box can follow this IP address change, but neither the linksys nor puppy with the current shareInternet can follow this IP change.
The current shareInternet is not correctly setup for such a dynamic situation. I will create a new version of shareInternet, v 2.2.3, in a couple of days, that is configured for such a situation. ( I need time to setup a test situation.)

When the problem occurs, does just a reboot of the puppy box fix it?

I'm surprised that the linksys is functioning as router, with eth0 of the puppy box being 192.168.1.101 and the windows box being 192.168.1.102. Normally I would expect these to be in different sub-nets, thus I would expect eth0 of the puppy box to be something like 192.168.2.101.

gyro
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Fri 11 Jun 2010, 21:51    Post subject:  

alienx2,

Please upgrade shareInternet to v2.2.3 and try again.
It's available on the first post.

gyro
Back to top
View user's profile Send private message 
alienx2

Joined: 24 May 2010
Posts: 13

PostPosted: Sat 12 Jun 2010, 00:41    Post subject:  

gyro wrote:
alienx2,

Please upgrade shareInternet to v2.2.3 and try again.
It's available on the first post.

gyro


Sure i will test it tonight.. i will let you know tomorrow.
Back to top
View user's profile Send private message 
alienx2

Joined: 24 May 2010
Posts: 13

PostPosted: Sun 13 Jun 2010, 00:32    Post subject:  

still same problem... i think it was dhcpcd because there is no automatic dhcp everytime in PUPPY Linux. but i tried searched some forum who similar the problem to me...

i feeling the problem similar to http://www.murga-linux.com/puppy/viewtopic.php?t=30372&sid=75e90b75411b0fdd3c3160c43a41c303

but there solved the problem is take a look http://www.murga-linux.com/puppy/viewtopic.php?t=51424

i didnt test that script... that sound great tricky about repeating renew dhcp every 15 minutes.. Smile i will test it next 6 hours from now...
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Sun 13 Jun 2010, 08:43    Post subject:  

alienx2,

Normally dhcpcd does automatically renew the IP address.
But it would appear that for some folk the dhcpcd in puppy fails to do this.

Again it's a guess, but one explanation would be if some ISP's often give a different IP address, instead of renewing the old one. And the dhcpcd in puppy can automatically handle the renewing of the old IP address, but not getting a completely new one.

If my guess is correct, then the suggested script should work around the problem. You should set it to run every 2 hours.
The new version of shareInternet has more chance of being capable of coping with a changing IP address.

One way to see if changing IP address is happening, is to see what is the IP address of eth1, when it's working, and then again after you've got it working again.

gyro
Back to top
View user's profile Send private message 
alienx2

Joined: 24 May 2010
Posts: 13

PostPosted: Sun 13 Jun 2010, 11:45    Post subject:  

Thanks.. Its working script now Smile for me, its fine for every 15mins...
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Thu 17 Jun 2010, 02:35    Post subject: shareInternet-2.2.4.pet
Subject description: bug fix
 

Bug:
If the default route had a non zero metric, shareInternet failed to properly detect the interface pertaining to the default route. This resulted in all interfaces being detected as "inside". Thus shareInternet did not work.

Fixed in shareInternet 2.2.4. (see first post for download)
Recommended upgrade for all users of shareInternet.

gyro
Back to top
View user's profile Send private message 
gyro

Joined: 28 Oct 2008
Posts: 419
Location: Brisbane, Australia

PostPosted: Thu 17 Jun 2010, 06:21    Post subject:  

alienx2 wrote:
so is there automatic?
Yes, its called "dhcpcd".
But the version of "dhcpcd" that's in the puppy you are using, doesn't seem to be working correctly in your situation.

I have compiled a newer version for puppy 431, see http://www.murga-linux.com/puppy/viewtopic.php?t=51424

gyro
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 8 [110 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0881s ][ Queries: 13 (0.0059s) ][ GZIP on ]