LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-26-2005, 05:47 AM   #1
mike8994
Member
 
Registered: Apr 2004
Location: DUBois, PA
Distribution: Mepis 3.3.1-1
Posts: 31

Rep: Reputation: 15
No internet until I shutdown eth1


Small network of 2 windows and 1 Mepis computers. All static ip addresses on eth1. Only eth1 and loop-back are set to start at boot. Mepis is the only connection to the internet via dial-up.

Problem: I can dial up and connect ok but firefox or konquerer won't go anywhere. I mean they come up but just say "looking up www.mepis.com". Then I must disconnect the dialup, stop eth1, reconnect with dialup and then I can surf. I think it has someting to do with the default gateway address in my eth1. It is set to it's network address.
Ideally I'd like to keep eth1 set to start at boot but not need to stop it before I dial the internet.
Looking for some suggestions.
 
Old 07-26-2005, 06:03 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
that is either because of your routing table (default route) or your resolv.conf (not pointing to the right dns servers)
run
#cat /etc/resolv.conf
and
#route
wile both interfaces are up, then post the output here.

your default route would have to be pointing to your ppp0 device (add will have a non private address range in the collum 'gateway')
your dns records need to be set to your isp's dns servers
in the form of
nameserver <ipaddress>
 
Old 07-27-2005, 05:12 AM   #3
mike8994
Member
 
Registered: Apr 2004
Location: DUBois, PA
Distribution: Mepis 3.3.1-1
Posts: 31

Original Poster
Rep: Reputation: 15
With both interfaces up...
#cat /etc/resolv.conf
nameserver 63.173.217.2
nameserver 208.0.125.3
nameserver 63.173.217.2 #kppp temp entry
nameserver 208.0.125.3 #kppp temp entry
When I type route, it just display headers and just keeps trying.
--------------------------------------------------
With eth1 down and ppp0 up...
#cat /etc/resolv.conf
nameserver 63.173.217.2
nameserver 208.0.125.3
nameserver 63.173.217.2 #kppp temp entry
nameserver 208.0.125.3 #kppp temp entry
(same as before)

and
#route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
199-3.usachoice * 255.255.255.255 UH 0 0 0 ppp0
default 199-3.usachoice 0.0.0.0 UG 0 0 0 ppp0
 
Old 07-27-2005, 07:57 AM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
do a
route -n
with both up again...
 
Old 07-27-2005, 05:59 PM   #5
mike8994
Member
 
Registered: Apr 2004
Location: DUBois, PA
Distribution: Mepis 3.3.1-1
Posts: 31

Original Poster
Rep: Reputation: 15
With eth1 up at startup then kppp dials...
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
66.71.199.3 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 192.168.0.3 0.0.0.0 UG 0 0 0 eth1
---------------------------------------------------------
with eth1 shutdown and kppp redialed...
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
66.71.199.3 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
0.0.0.0 66.71.199.3 0.0.0.0 UG 0 0 0 ppp0
 
Old 07-27-2005, 06:09 PM   #6
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
can you see the lines in each routeing tables starting with 0.0.0.0 ?
that is your default route.

you might need to change settings in you dhclient.conf file, or your interfaces config files

you basically need to state that eth1 is not responsible for your default toute. either ppp0 will then automatically be the default route when you dial up, or you also tell it to be default route in your interface config or dhclient config (could also be called dhcpcd)
 
  


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
Dhcp eth0 and XP eth1 internet sharing props666999 Slackware 8 08-20-2005 09:48 AM
internet through eth1 DropSig Linux - Networking 2 07-14-2005 11:14 PM
Can't hit the internet, eth1 shows traffic, but can't get out chiquitomuir Linux - Networking 3 11-16-2004 09:50 PM
2.4.22 -> 2.6.6 (usbcore issues - pegasus - eth1 - internet connection) lrt2003 Slackware 1 06-13-2004 02:19 AM
DHCP using eth1 for internet eht0 for router... Zero-0-Effect Linux - Networking 12 01-17-2004 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:43 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