View previous topic :: View next topic |
Author |
Message |
Forse Apprentice
Joined: 26 Dec 2002 Posts: 260 Location: /dev/random
|
Posted: Wed Aug 20, 2003 10:43 am Post subject: rp-pppoe hell |
|
|
Hi folks. I have gentoo acting as my server and I use rp-pppoe to connect to internet. After I installed gentoo I emerged rp-pppoe and everything woked fine, but after I removed ppp and rp-pppoe and installed latest from cvs (I was going to use kernel mode PPPoE) it doesn't work...It's weird, coz I can connect to my ISP, but I can't reach net. If I ping something it just stays there...without giving me any error or anything. I tried to emerge ppp and rp-pppoe from emerge, but the same thing happends.
The most weird thing is if I boot from livecd and chroot to my gentoo install...I can use internet...ping and everything else works just fine.
any clues?
thx a lot _________________ [ My sites ]: UnixTutorials : AniFIND : AnimeYume |
|
Back to top |
|
|
Forse Apprentice
Joined: 26 Dec 2002 Posts: 260 Location: /dev/random
|
Posted: Wed Aug 20, 2003 10:50 am Post subject: |
|
|
I forgot to mention that even user-mode PPPoE doesn't work _________________ [ My sites ]: UnixTutorials : AniFIND : AnimeYume |
|
Back to top |
|
|
ichnaton n00b
Joined: 28 May 2003 Posts: 21 Location: Maassluis, Holland
|
Posted: Wed Aug 20, 2003 10:51 am Post subject: route ? |
|
|
What's your routing like? Try it with
I had a similar problem where (no expert but i'll try to say)
the default gateway is to the eth device, but it should be the ppp0 device connected
to this same eth.
to solve this matter you can do a
Code: | # route del default |
before adsl-start
and
Code: | route add default ppp0 |
after it.
Also, you might hack /usr/bin/adsl-start like this:
Code: |
echo $$ > $PIDFILE.start
# del default route
/sbin/route del default
# Start the connection in the background unless we're debugging
if [ "$DEBUG" != "" ] ; then
$CONNECT "$@"
# add default route ppp0
/sbin/route add default ppp0
exit 0
fi
|
Afterwards, route -n is like:
Code: |
flamingo root # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
62.45.156.1 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 eth0
172.18.32.0 0.0.0.0 255.255.248.0 U 0 0 0 eth1
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 62.45.156.1 0.0.0.0 UG 0 0 0 ppp0
|
|
|
Back to top |
|
|
madchaz l33t
Joined: 01 Jul 2003 Posts: 995 Location: Quebec, Canada
|
Posted: Wed Aug 20, 2003 10:52 am Post subject: |
|
|
did you, by any chance, remove PPPoE support from your kernel?
That's what it sounds like. That it works with the liveCD kernel makes that all the more likely.
do the following
Code: |
cd /usr/src/linux
make menuconfig
|
then go to network device support and make sure PPP is enabled. (seince you'll be using it all the time, I'd say put it in the kernel, not as a module)
you also need PPP over Ethernet, PPP support for async and sync
puting the compressions in won't hurt _________________ Someone asked me once if I suffered from mental illness. I told him I enjoyed every second of it. |
|
Back to top |
|
|
Forse Apprentice
Joined: 26 Dec 2002 Posts: 260 Location: /dev/random
|
Posted: Wed Aug 20, 2003 11:11 am Post subject: |
|
|
madchaz wrote: | did you, by any chance, remove PPPoE support from your kernel?
That's what it sounds like. That it works with the liveCD kernel makes that all the more likely.
do the following
Code: |
cd /usr/src/linux
make menuconfig
|
then go to network device support and make sure PPP is enabled. (seince you'll be using it all the time, I'd say put it in the kernel, not as a module)
you also need PPP over Ethernet, PPP support for async and sync
puting the compressions in won't hurt |
nope...ppp support is compiled in kernel. I don't like modules...so I compile everything i need in kernel...since it's server and I don't need module problems _________________ [ My sites ]: UnixTutorials : AniFIND : AnimeYume |
|
Back to top |
|
|
Forse Apprentice
Joined: 26 Dec 2002 Posts: 260 Location: /dev/random
|
Posted: Wed Aug 20, 2003 11:12 am Post subject: |
|
|
I'll try the route staff when I get home _________________ [ My sites ]: UnixTutorials : AniFIND : AnimeYume |
|
Back to top |
|
|
Forse Apprentice
Joined: 26 Dec 2002 Posts: 260 Location: /dev/random
|
Posted: Thu Aug 21, 2003 2:56 pm Post subject: |
|
|
well the route stuff din't work |
|
Back to top |
|
|
neuron Advocate
Joined: 28 May 2002 Posts: 2371
|
Posted: Thu Aug 21, 2003 5:03 pm Post subject: |
|
|
DEBUG=1 adsl-start
then in another terminal try ping, then kill pppd and ppp, and check the log in /tmp/rp-ppp<something> |
|
Back to top |
|
|
Forse Apprentice
Joined: 26 Dec 2002 Posts: 260 Location: /dev/random
|
Posted: Thu Aug 21, 2003 7:54 pm Post subject: |
|
|
neuron wrote: | DEBUG=1 adsl-start
then in another terminal try ping, then kill pppd and ppp, and check the log in /tmp/rp-ppp<something> |
thnx a lot for a nice tip...i'll give it a go |
|
Back to top |
|
|
jaska Bodhisattva
Joined: 06 Jun 2003 Posts: 725 Location: Finland
|
|
Back to top |
|
|
|