You are not logged in.

#1 2006-08-29 09:50:24

muep
Member
Registered: 2006-03-06
Posts: 2

Problems with pppoe networking and... routing?

Hi

Until now, all I have used have beed DHCP connections, which have worked easily. However, I have now moved a to a new apartment where I must use a different ISP than before. Now I get a LAN connection via DHCP, which lets me access ISP's own services. The WAN access is provided via pppoe.

I have succeeded in getting the ppp interface configured and it is now started at boot time. The problem is that after boot, I don't seem to be able to connect anywhere, except to the lan via eth0. ppp0 has an ip address and it seems to be working, but I can't ping anything outside the LAN if I don't specify the interface as ppp0.

If I run:
sudo ifconfig eth0 stop
sudo ifconfig eth0 start
sudo /etc/rc.d/ppp restart

I get the connection working. This isn't a good solution, I believe there is a better one available. I think that as default, it tries to use the wrong interface. How can I make it use ppp0 when accessing the internet?

Offline

#2 2006-08-29 10:45:55

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: Problems with pppoe networking and... routing?

Have you set the default Gateway?

route add default gw (your Gateway)

Have you tried to turn it off and on again?

Offline

#3 2006-08-29 11:32:31

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Problems with pppoe networking and... routing?

pppd doesn't replace the default route if one is set already. Try

route del default

before starting pppd.

Offline

Board footer

Powered by FluxBB