Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rp-pppoe hell
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Forse
Apprentice
Apprentice


Joined: 26 Dec 2002
Posts: 260
Location: /dev/random

PostPosted: Wed Aug 20, 2003 10:43 am    Post subject: rp-pppoe hell Reply with quote

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
View user's profile Send private message
Forse
Apprentice
Apprentice


Joined: 26 Dec 2002
Posts: 260
Location: /dev/random

PostPosted: Wed Aug 20, 2003 10:50 am    Post subject: Reply with quote

I forgot to mention that even user-mode PPPoE doesn't work :(
_________________
[ My sites ]: UnixTutorials : AniFIND : AnimeYume
Back to top
View user's profile Send private message
ichnaton
n00b
n00b


Joined: 28 May 2003
Posts: 21
Location: Maassluis, Holland

PostPosted: Wed Aug 20, 2003 10:51 am    Post subject: route ? Reply with quote

What's your routing like? Try it with
Code:
 route -n


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
View user's profile Send private message
madchaz
l33t
l33t


Joined: 01 Jul 2003
Posts: 995
Location: Quebec, Canada

PostPosted: Wed Aug 20, 2003 10:52 am    Post subject: Reply with quote

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
View user's profile Send private message
Forse
Apprentice
Apprentice


Joined: 26 Dec 2002
Posts: 260
Location: /dev/random

PostPosted: Wed Aug 20, 2003 11:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Forse
Apprentice
Apprentice


Joined: 26 Dec 2002
Posts: 260
Location: /dev/random

PostPosted: Wed Aug 20, 2003 11:12 am    Post subject: Reply with quote

I'll try the route staff when I get home ;)
_________________
[ My sites ]: UnixTutorials : AniFIND : AnimeYume
Back to top
View user's profile Send private message
Forse
Apprentice
Apprentice


Joined: 26 Dec 2002
Posts: 260
Location: /dev/random

PostPosted: Thu Aug 21, 2003 2:56 pm    Post subject: Reply with quote

well the route stuff din't work :(
Back to top
View user's profile Send private message
neuron
Advocate
Advocate


Joined: 28 May 2002
Posts: 2371

PostPosted: Thu Aug 21, 2003 5:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Forse
Apprentice
Apprentice


Joined: 26 Dec 2002
Posts: 260
Location: /dev/random

PostPosted: Thu Aug 21, 2003 7:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
jaska
Bodhisattva
Bodhisattva


Joined: 06 Jun 2003
Posts: 725
Location: Finland

PostPosted: Sat Aug 23, 2003 10:10 pm    Post subject: Reply with quote

Forse, this might help.

https://forums.gentoo.org/viewtopic.php?t=77326
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum