Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ADSL pppoe DHCP problem --- SOLVED
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
kanesoban
n00b
n00b


Joined: 11 Jul 2007
Posts: 14

PostPosted: Fri Jul 13, 2007 9:34 pm    Post subject: ADSL pppoe DHCP problem --- SOLVED Reply with quote

Ok, i am writing this not because i have a problem, and i want help, rather i write down, what problem i had, and what solved it (it was driving me nuts), maybe it will help others too.

Problem was, that i was unable to use the internet. I have ADSL connection, i use pppoe, and every network information is given by DHCP.

When i tried to initalize connection with /etc/init.d/net.eth0 start i had the following error (also i had the same error at boot appear):

Starting eth0
Bringing up eth0
dhcp
Running dhcpcd...
Error, eth0: timed out

Alot of other people had similar errors. When they asked help, others suggested, that some kernel modules are missing, and kernel must be recompiled with the needed modules (mostly the missing modules were that of the network card's), so i recompiled my kernel with the needed modules. But that did not help. Or rather, it helped partly, since i had the same error appear, BUT i was able to connect to the net using pppoe-setup, and pppoe-start. Too bad, that those can be used only by root.

However, the bottom line is: the error was caused by this line in /etc/conf.d/net:
config_eth0=( "dhcp" )
This was set to "dhcp", since my internet provider uses DHCP. But for some reason replacing that line with
config_eth0=( "adsl" )
solved everything. There is no more timeout error.
I wrote this down, in case someone else experiences what i have.
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Fri Jul 13, 2007 10:31 pm    Post subject: Reply with quote

In that case, you should use the ppp module. The adsl one is going to go away.

Code:

config_eth0=("null")
config_ppp0=( "ppp" )
link_ppp0="eth0"
plugins_ppp0=( "pppoe" )
username_ppp0='your username'
password_ppp0='your password'
pppd_ppp0=(
    "noauth"
    "defaultroute"
    "usepeerdns"
    "default-asyncmap"
    "ipcp-accept-remote"
    "ipcp-accept-local"
    "lcp-echo-interval 20"
    "lcp-echo-failure 5"
    "persist"
    "holdoff 2"
    "mru 1492"
    "mtu 1492"
    "lock")


and the address will get assigned to the ppp0 interface, probably like it is now. You can also set it to pass the address along to eth0:

Code:

config_eth0=( "dhcp" )
config_ppp0=( "ppp" )
link_ppp0="eth0"
plugins_ppp0=( "pppoe"
               "dhcpc" )
<snip rest of stuff that doesn't change>


I've never tested that method out, but it requires dhcpcd for the DHCP client I believe.
_________________
Thomas S. Howard
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