LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 05-14-2007, 06:12 AM   #1
lizparnell
LQ Newbie
 
Registered: May 2005
Posts: 8

Rep: Reputation: 0
Internet drops out when LAN connected (Mandriva 2007)


Hi all,

We're having a strange problem with our Internet connection. The setup is 2 machines (one PC and one laptop) - the PC is connected to the Internet permanently via an ADSL modem (eth0), and the laptop connects to the PC via a direct cable connection (eth1). eth0 uses DHCP, eth1 uses static IPs.

The problem - when the laptop is not connected to the PC, everything is fine. However as soon as the laptop is connected, the Internet connection drops out intermittently. It happens around every 5-10 minutes (though it's not at all predictable), and reconnects itself automatically after a few seconds.

What should we be looking at? Shorewall is running on the PC - is it possible that it is not configured correctly or something?

Any suggestions/ideas welcome.

TIA,

Mark and Liz
 
Old 05-14-2007, 11:32 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
As a guess, the computer is detecting this new connection and setting it as the default route until shorewall tries to bring the internet back up... sortof a back-and-forth. Can you get a copy of 'route -n' both with and without it working to verify?
 
Old 05-15-2007, 04:01 AM   #3
lizparnell
LQ Newbie
 
Registered: May 2005
Posts: 8

Original Poster
Rep: Reputation: 0
When eth0 drops out:

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
169.254.0.0     0.0.0.0         255.255.0.0     U     10     0        0 eth1
10.0.0.0        0.0.0.0         255.0.0.0       U     10     0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         10.0.0.1        0.0.0.0         UG    10     0        0 eth1
When both are connected:

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
169.254.0.0     0.0.0.0         255.255.0.0     U     10     0        0 eth1
10.0.0.0        0.0.0.0         255.0.0.0       U     10     0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         58.106.209.128  0.0.0.0         UG    10     0        0 eth0
0.0.0.0         10.0.0.1        0.0.0.0         UG    10     0        0 eth1
When LAN is not connected:

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         58.106.209.128  0.0.0.0         UG    10     0        0 eth0
Hope that tells you more than it tells me. ;-)

Thanks.
 
Old 06-01-2007, 03:40 AM   #4
lizparnell
LQ Newbie
 
Registered: May 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Just ran a quick test, and it appears that shorewall is not the culprit - I disabled shorewall temporarily, and the connection still dropped out.

Not sure if it's related, but the laptop couldn't connect to the Internet at all though with shorewall not running, even when the PC was connected fine.

Anyone got any bright ideas? I'm leaning towards a clean install on both machines (probably about time anyway), though the PC's DVD drive has died, so I'd have to replace that first.

In the meantime it's really frustrating!
 
  


Reply

Tags
internet, lan, network, shorewall


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
unable to share internet with LAN/mandriva 2007 mammen_in_linux Linux - Wireless Networking 2 08-17-2007 08:28 AM
unable to share internet with LAN/mandriva 2007 mammen_in_linux Linux - Networking 2 01-16-2007 07:35 AM
lan icon said internet is connected but its not justdream Linux - Networking 2 12-24-2005 03:38 PM
Wireless lan connected but no internet XJNick Linux - Wireless Networking 5 08-07-2005 10:35 PM
LAN Connected but cant access internet crw128 Linux - Networking 13 06-28-2005 05:51 PM


All times are GMT -5. The time now is 11:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration