default gateway not set by PPPoE, can't ping internet
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to set up my Red Hat 7.1 Linux box to be a gateway to my DSL connection. I've got two ethernet cards, one going to the DSL modem (eth1), and the other to my hub (eth0). Linux recognizes and configures both ethernet cards, and successfully starts the Roaring Penguin PPPoE client. But I cannot ping any external internet sites, either using their domain name or IP address. The output from route shows my default destination's gateway is my internal LAN card (eth0), not my ppp0 connection, as the DSL-HOWTO shows in section 3.2.3. I'm pretty sure thats the problem, but I don't know what to do now. My DSL IP is dynamic, so I can't just hard code it. Below is the output from route and ifconfig. Thanks in advance for any help.
two or three days ago i asked pretty much the same question. I'd presume that you can successfully run:
route del default gw 192.168.blahhhhhhh
to remove the gateway. if you can, then the route output should change, (probably able to use dns to give the ppp0 connection a name rather than just IP number. My problem was that i couldn't suss how to remove the eth gateway. someone lovely on here said it was in /etc/sysconfig/network (rh71). knock the GATEWAY= line on the head, and restart the network. Of course... if that lines not in there, i'm not erally of much use...!
In my /etc/sysconfig/network-scripts/ifcfg-eth0 file I found a line with GATEWAY=. I removed it and restarted the network and the problem was solved. Thanks.
I had the exact same issue on Debian with the pppoe driver as it was being set up by the pppoeconf script. I couldn't ping a known IP directly, but it worked when running
ping -I ppp0 <ip_address>
So it was also a default route issue.
The solution for me was to add the command "replacedefaultroute" to /etc/ppp/peers/dsl-provider. Here "dsl-provider" is just the filename of the pppd config file that sets up the connection, it might be different for you.
Also note that you have to have *both* "defaultroute" (which is usually on) and the "replacedefaultroute" in there. It took me a while to realise that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.