Network sharing doesn't work more then a few seconds
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Network sharing doesn't work more then a few seconds
Hi,
I'm trying to share my Internet cable connection to the internal LAN (W2K),
I used several scripts the current one was made by firestarter.
My problem is:
if I surf the Internet in the server it's OK.
But if I surf from the workstations it works for 3~6 minutes and then the network comes down, I can't ping the server or the workstation.
After I stop the network and restart (network and firewall) it work the same way.
You have static ip also to internet?
-No!
How the samba is your problem? Wasn't the problem sharing the internet connection?
-Yes, but if I start using dinamic IPs the serve can't find workstations, I think.
Do you have two nics or are you trying to do the thing within same wires?
-I had 2 nics: eth0 -> LAN; eth1->Internet.
Hmm.. my first idea was that the dhcp-client is not running on the background and the ip-address expires, but it doesn't explain why the server stops pinging to the workstation.
It is also possible that the netcard just locks up for some reason. I have had this kind of lockup problem with some d-link cards using via-rhine driver and with somewhat old kernels (some 2.4.18 and older).
You could see the syslog and dmesg from the server if there are something netcard related (like "eth transmit timeout: reseting") problems. Also is it the firewall that hangs or the networking itsefl. That is, does the ping packets start transmiting again if you drop the firewall
More questions: What kernel are you using? Does the packet counters increase after the hangup? Does there come some error, dropped or overruns when you look the interface with ifconfig?
with this scrip it works more time, 2 or 3 minutes, and
the network is up so I can ping the workstations and the the nics are in the ifconfig.
Quote:
More questions: What kernel are you using? Does the packet counters increase after the hangup? Does there come some error, dropped or overruns when you look the interface with ifconfig?
linux 2.4.25-1-386 debian sarge
It could be a script problem or a hardware problem. I'm using a Gigabyte GA-7N400 Pro 2 with a r8139 module (eth1=internet) the lan nic is a US Robotics (tulip module->lan).
Maybe I had too change the nics ?
Ok, now the machines ping eachother; does the network work afther few minutes from the server doing the routing? If not, is the dhcp-client still running?
(something like:
debian:/home/toto# tail /var/log/dmesg
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
hub.c: new USB device 00:02.2-5, assigned address 2
usb.c: USB device 2 (vend/prod 0xf5f/0x1320) is not claimed by any active driver.
hub.c: new USB device 00:02.1-3, assigned address 2
ip_conntrack version 2.1 (4095 buckets, 32760 max) - 292 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
usb_control/bulk_msg: timeout
usb-ohci.c: unlink URB timeout
usb.c: USB device not accepting new address=2 (error=-110)
hub.c: new USB device 00:02.1-3, assigned address 3
the network stops running and the dhcp-client is running.
I had to stop the network start it and run the iptables script to acces the internet from the server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.