LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-04-2009, 03:41 AM   #1
spx2
Member
 
Registered: Dec 2005
Distribution: debian
Posts: 160

Rep: Reputation: 30
eth1 breaks eth0


I have a debian install on a machine with 2 eth cards,eth0 and eth1.
eth0 has been configured using pppoeconf for a pppoe connection which
is working fine.
eth1 was meant to be there in order to provide for a nat so that an
internet connection can be provided to another computer also using debian.
The moment I plug in the cable to eth1 , eth0 stops working.
(Is this caused maybe by hotplug ?)
The goal was to actually get eth1 working also without breaking eth0's connection and afterwards make a nat using iptables.
The same thing was done using Slackware and netconfig+pppoeconf and there
were no problems.
The pppoe is up using the pppd service and it was configured using pppoeconf.


I tried to find out the problem by trying to find out which file is beeing
modified when I plug the cable in eth1 so I did
strace ifconfig eth1 2>&1 | grep open
I got a list of files and I suspect /proc/net/if_inet6 is the file
that ifconfig modifies and reads thata from.
So I decided to do sudo lsof | grep if_inet6 in order to find out
what process uses the hotplug feature to autodetect when I put the cable
inside eth1.
Unfortunately I find no process that did this.

What should I do so that the internet connection doesn't drop when I plug in the cable for eth1 ?
 
Old 01-04-2009, 07:51 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
hotplug is ancient ... meant for older machines
 
Old 01-04-2009, 09:11 PM   #3
mike10
Member
 
Registered: Aug 2005
Distribution: Debian amd64 with 32bit libs and Debian 32 bit laptop
Posts: 119

Rep: Reputation: 16
can you post the contents of
Code:
/etc/network/interfaces
 
Old 01-05-2009, 07:02 AM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
and verify you haven't assigned a default route to both interfaces..

one interface should have a default route the other should have a static route defined.
 
Old 01-06-2009, 02:59 AM   #5
spx2
Member
 
Registered: Dec 2005
Distribution: debian
Posts: 160

Original Poster
Rep: Reputation: 30
I've solved the problem
 
Old 01-06-2009, 08:26 AM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Would be nice to know what you did, or how you solved the issue for the next guy searching for a solution...
 
  


Reply



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
howto acess intrnet thru eth1(wireless card)in winXP via briging in linux(eth0-eth1) labhesh_popli Linux - Wireless Networking 1 09-21-2006 01:11 AM
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 02:33 PM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 12:12 PM
Kernel 2.4.22 finds eth0 and eth1 but 2.6.0 does not find eth1 coollink Linux - Networking 3 01-13-2004 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:17 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration