can't run eth0 and ppp0 at same time

can't run eth0 and ppp0 at same time

Post by Melvin Branc » Mon, 20 Apr 1998 04:00:00



I am a newbie to Linux, so please explain things in detail and keep it as
simple as possible.

I am running Redhat Linux 5.0, I've successfully installed X-windows, and
setup a small network for my learning purposes.  I can ping my remote
machine and can even telnet from my remote to my server with no problem as
long as I am not connected to my ISP.  

But when I attempt to make my internet connection via the ppp0 device I
connect to my ISP with no problem, but when I attempt to ping any internet
host; the ping command errors out and gives me an error message "can't
locate XXXX.com" I also cannot ping anything on my local network.  If I
deactivate the device eth0; I can ping other internet hosts.

I know the problem has something to do with the nameserver, but can't
figure it out.  I've tried rearranging things in my "resolv.conf" and
"host" files but nothing seems to work.  PS I've read all the HOW TO's and
FAQ's please don't refer me to those.

Listed below are samples of my network configuration files:

"host" file            
127.0.0.1          localhost       localhost.localdomain
190.190.190.1   sky.dark         myserver
190.190.190.2   meremote       myremote

"resolv.conf
search .
nameserver xxx.xxx.xxx.xx

My hostname is:         sky.dark  
IP Address for Server eth0:     190.190.190.1
My ISP's Nameserver is:         xxx.xxx.xxx.xx

Thanks In Advance.

 
 
 

can't run eth0 and ppp0 at same time

Post by Harald Bechere » Tue, 21 Apr 1998 04:00:00



> ...
> But when I attempt to make my internet connection via the ppp0 device I
> connect to my ISP with no problem, but when I attempt to ping any internet
> host; the ping command errors out and gives me an error message "can't
> locate XXXX.com" I also cannot ping anything on my local network.  If I
> deactivate the device eth0; I can ping other internet hosts.
> ...

Most of the time the pppd can't replace the default route wich is
normaly on eth0.

Before you start your ppp connection do a:
        route
You will see that the default route is on eth0. When you make a
        route del defaultroute
you remove the existing routing entry.
then you start your ppp connection and it must work.

Greeting
Harald Becherer

 
 
 

can't run eth0 and ppp0 at same time

Post by Pat Crea » Tue, 21 Apr 1998 04:00:00




>> ...
>> But when I attempt to make my internet connection via the ppp0 device I
>> connect to my ISP with no problem, but when I attempt to ping any
internet
>> host; the ping command errors out and gives me an error message "can't
>> locate XXXX.com" I also cannot ping anything on my local network.  If I
>> deactivate the device eth0; I can ping other internet hosts.
>> ...

>Most of the time the pppd can't replace the default route wich is
>normaly on eth0.

>Before you start your ppp connection do a:
> route
>You will see that the default route is on eth0. When you make a
> route del defaultroute
>you remove the existing routing entry.
>then you start your ppp connection and it must work.

>Greeting
>Harald Becherer

If you're using eth0 just for your local network, that is, to access only
those ip addresses defined by its ip address and netmask, you don't need a
default ip address at all --- leave it unassigned and let pppd set it via
the defaultroute option.

Even if you do have another gateway accessible via the eth0 device, you can
usually set static routes to the networks behind it and still not use a
default route until the ppp device is up and running.

 
 
 

can't run eth0 and ppp0 at same time

Post by HeTT » Tue, 21 Apr 1998 04:00:00


I think you will find that you have your eth0 set as your default gateway.
You need to make your ppp0 interface the default gateway

--
HeTTaR
Mark Eaton
hettar<at>uq.net.au

...


>I am a newbie to Linux, so please explain things in detail and keep it as
>simple as possible.

>I am running Redhat Linux 5.0, I've successfully installed X-windows, and
>setup a small network for my learning purposes.  I can ping my remote
>machine and can even telnet from my remote to my server with no problem as
>long as I am not connected to my ISP.

>But when I attempt to make my internet connection via the ppp0 device I
>connect to my ISP with no problem, but when I attempt to ping any internet
>host; the ping command errors out and gives me an error message "can't
>locate XXXX.com" I also cannot ping anything on my local network.  If I
>deactivate the device eth0; I can ping other internet hosts.

>I know the problem has something to do with the nameserver, but can't
>figure it out.  I've tried rearranging things in my "resolv.conf" and
>"host" files but nothing seems to work.  PS I've read all the HOW TO's and
>FAQ's please don't refer me to those.

>Listed below are samples of my network configuration files:

>"host" file
>127.0.0.1          localhost       localhost.localdomain
>190.190.190.1   sky.dark         myserver
>190.190.190.2   meremote       myremote

>"resolv.conf
>search .
>nameserver xxx.xxx.xxx.xx

>My hostname is: sky.dark
>IP Address for Server eth0: 190.190.190.1
>My ISP's Nameserver is:  xxx.xxx.xxx.xx

>Thanks In Advance.

 
 
 

can't run eth0 and ppp0 at same time

Post by Craig Zell » Wed, 22 Apr 1998 04:00:00



> I am a newbie to Linux, so please explain things in detail and keep it as
> simple as possible.

> I am running Redhat Linux 5.0, I've successfully installed X-windows, and
> setup a small network for my learning purposes.  I can ping my remote
> machine and can even telnet from my remote to my server with no problem as
> long as I am not connected to my ISP.  

> But when I attempt to make my internet connection via the ppp0 device I
> connect to my ISP with no problem, but when I attempt to ping any internet
> host; the ping command errors out and gives me an error message "can't
> locate XXXX.com" I also cannot ping anything on my local network.  If I
> deactivate the device eth0; I can ping other internet hosts.

> I know the problem has something to do with the nameserver, but can't
> figure it out.  I've tried rearranging things in my "resolv.conf" and
> "host" files but nothing seems to work.  PS I've read all the HOW TO's and
> FAQ's please don't refer me to those.

> Listed below are samples of my network configuration files:

> "host" file            
> 127.0.0.1          localhost       localhost.localdomain
> 190.190.190.1   sky.dark         myserver
> 190.190.190.2   meremote       myremote

> "resolv.conf
> search .
> nameserver xxx.xxx.xxx.xx

> My hostname is:         sky.dark  
> IP Address for Server eth0:     190.190.190.1
> My ISP's Nameserver is:         xxx.xxx.xxx.xx

  I ran into the same problem after installing 5.0 and setting up both a local
ethernet and a PPP dialup connection. What's happening is that RedHat
foolishly defaulted the installation with 'routed' running. 'routed' assumes
that IP forwarding is enabled when it finds more than one interface, and
screws up your route tables after hearing the RIP from your ISP, or your
ISP is turning you off after it hears your routed announcing its own default
route or a route to your eth0 address if it's not a legitimate Internet
address. Turn off 'routed', or run it 'quiet' (routed -q) and that should fix
the problem.

Craig

----
Craig Zeller, Sr. Technical Consultant, Digital Equipment Corporation

 
 
 

1. Can't run eth0 and ppp0 at the same time

I am a newbie to Linux, so please explain things in detail and keep it as
simple as possible.

I am running Redhat Linux 5.0, I've successfully installed X-windows, and
setup a small network for my learning purposes.  I can ping my remote
machine and can even telnet from my remote to my server with no problem as
long as I am not connected to my ISP.  

But when I attempt to make my internet connection via the ppp0 device I
connect to my ISP with no problem, but when I attempt to ping any internet
host; the ping command errors out and gives me an error message "can't
locate XXXX.com" I also cannot ping anything on my local network.  If I
deactivate the device eth0; I can ping other internet hosts.

I know the problem has something to do with the nameserver, but can't
figure it out.  I've tried rearranging things in my "resolv.conf" and
"host" files but nothing seems to work.  PS I've read all the HOW TO's and
FAQ's please don't refer me to those.

Listed below are samples of my network configuration files:

"host" file            
127.0.0.1          localhost       localhost.localdomain
190.190.190.1   sky.dark         myserver
190.190.190.2   meremote       myremote

"resolv.conf
search .
nameserver xxx.xxx.xxx.xx

My hostname is:         sky.dark  
IP Address for Server eth0:     190.190.190.1
My ISP's Nameserver is:         xxx.xxx.xxx.xx

Thanks In Advance.

2. TCP Wrappers setup -- New Thread

3. help: ppp0 'conflicts' with eth0/eth1

4. : backspaceTransla

5. Problems configuring eth0 and ppp0 at the same time.

6. 3995-C64 Optical Library

7. Sharing ppp0 to eth0 : Ping - Request Timed Out

8. Newbie Sound Question (Debian)

9. useing eth0 and ppp0 at same time?

10. Can't route IP across eth0/ppp0 Linux gateway???

11. ppp0 & eth0 can't coexist solved

12. eth0 hoses ppp0 on RH5.1 box, and new default route doesn't help.

13. eth0 and ppp0 can't coexist