View previous topic :: View next topic |
Author |
Message |
seatec n00b


Joined: 05 Jul 2003 Posts: 50 Location: Munich.de
|
Posted: Wed Jul 30, 2003 3:38 pm Post subject: Need network _guru_. Very strange problem - SOLVED |
|
|
Hi everyone
At home I run a linux 2.x router that does NAT to the outside world, providing my little home lan with internet access. A 10/100Mbit switch (can't be configured) keeps the network together. Here's my problem:
I decided my new gentoo was ready to replace my old main machine. So I shut both down, unplugged them, switched their places, and plugged them back in(the network cables are still on the same place, so cable 1 is in machine 2 now and vice versa). While the old system booted back up and worked fine on the new place, my gentoo did not.
It got an IP from the dhcpd(the router), it can ping into the lan and into the internet(so routing is correct). If I telnet into my lan it works, too. if I telnet into the internet, it times out. Why??? I didn't change a thing. Also, smbclient does not work anymore all of a sudden. it times out too(in my lan).
Does anyone have any idea what might cause this effect???
(Hint: There's no firewall configured in the gentoo)
seatec
Last edited by seatec on Thu Jul 31, 2003 12:31 am; edited 1 time in total |
|
Back to top |
|
 |
neuron Advocate


Joined: 28 May 2002 Posts: 2371
|
Posted: Wed Jul 30, 2003 5:45 pm Post subject: |
|
|
well do you have the NAT properly set up?
it doesen't NAT per default...
"It got an IP from the dhcpd(the router), it can ping into the lan and into the internet(so routing is correct)."
you also need to allow forwarding of packets from the lan to internet.. |
|
Back to top |
|
 |
linux_weenie Guru


Joined: 25 Jun 2003 Posts: 365
|
Posted: Wed Jul 30, 2003 6:04 pm Post subject: |
|
|
are you using cable? with my smoothwall setup at home i have two network card one for the modem and the other for my dhcp and routing. is the router the gentoo box or the old machine? and if i understand correctly you are trying to configure the new gentoo box to be the router? if so why is the gentoo box taking in dhcp if its the router?
-Will _________________ There are only 10 types of people in the world. Those who understand binary and those who don't. |
|
Back to top |
|
 |
seatec n00b


Joined: 05 Jul 2003 Posts: 50 Location: Munich.de
|
Posted: Wed Jul 30, 2003 8:20 pm Post subject: |
|
|
Hi again
All together I have about 6 machines here. The router is the same for about 2 years, and it will stay the same. All machines have a fine internet connection provided by that NAT gateway. Within the internal network, I setup a new gentoo, which didn't have network problems for the last 2 week (since I installed it). Now that I moved it physically, I can't get online anymore. Well, not tcp at least. Ping works, namelookup works(with a nameserver within the internet). I just can't telnet/ssh/http/anything-tcp out.
seatect |
|
Back to top |
|
 |
neuron Advocate


Joined: 28 May 2002 Posts: 2371
|
Posted: Wed Jul 30, 2003 11:14 pm Post subject: |
|
|
ohhh, I thought you were replacing your gateway :p, nevermind me then  |
|
Back to top |
|
 |
kashani Advocate


Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Wed Jul 30, 2003 11:32 pm Post subject: |
|
|
I'd guess MAC address caching wackiness. Try rebooting the switch if you attempt it again.
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
 |
seatec n00b


Joined: 05 Jul 2003 Posts: 50 Location: Munich.de
|
Posted: Wed Jul 30, 2003 11:52 pm Post subject: |
|
|
I'm still debugging. I rebooted gentoo, switch and gateway. I sniffed both interfaces of the gateway. the problem is definitively the gentoo. while the whole lan sees that the gentoo sends a SYN, and the gateway receives and forwards the SYN/ACK back to the gentoo, itself does not see it. I sniffed from the gentoo, and from anotehr box. the gentoo didn't see the SYN/ACK. Right now I'm compilng a kernel and hope to solve the problem that way.
seatec |
|
Back to top |
|
 |
seatec n00b


Joined: 05 Jul 2003 Posts: 50 Location: Munich.de
|
Posted: Thu Jul 31, 2003 12:06 am Post subject: |
|
|
SOLVED
I compiled a new kernel, now everything works fine again. The kernel that gave me headaches was:
2.4.20-gentoo-r5
I now run a vanilla 2.4.20. Everything is back to normal. I still have no clue wtf was wrong. Apparently the kernel was the problem.
Where to submit substantial bugs?
seatec |
|
Back to top |
|
 |
devon l33t

Joined: 23 Jun 2003 Posts: 943
|
Posted: Thu Jul 31, 2003 2:10 am Post subject: |
|
|
Gentoo Bugzilla. Can you re-create the problem? I am using 2.4.20-gentoo-r5 and have no problems. |
|
Back to top |
|
 |
Cthulu23 n00b

Joined: 27 Aug 2002 Posts: 8
|
Posted: Thu Jul 31, 2003 2:26 am Post subject: ENC |
|
|
Check to see if explicit congestion notification (ECN) is selected in your kernel config. I've had machines that didn't speak ECN completely ignore traffic from one of my mail servers that did. This is especially likely if the traffic is hitting older / misconfigured firewalls (but not on your home network, of course). |
|
Back to top |
|
 |
seatec n00b


Joined: 05 Jul 2003 Posts: 50 Location: Munich.de
|
Posted: Thu Jul 31, 2003 9:55 am Post subject: |
|
|
thx for the hint devon. I submitted the bug. I didn't try to re-create the problem, but I try to rebuild the same kernel again later and test it once more.
Cthulhu23:
# CONFIG_INET_ECN is not set
Thats from the kernel config. I suppose thats the option that you were refering to.
I'll post an update later today when I tested the old kernel once more.
I wonder wether the problem is related to my onboard gigabit ethernet nic, a 3com 3c940. maybe the driver is buggy?
seatec |
|
Back to top |
|
 |
Cthulu23 n00b

Joined: 27 Aug 2002 Posts: 8
|
Posted: Thu Jul 31, 2003 4:39 pm Post subject: |
|
|
To see if ECN is your problem, repeat your sniff of the traffic. Check the flags on the SYN/ACK that your box ignores to see if ECN is enabled. |
|
Back to top |
|
 |
|