Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ADSL and baselayout 1.12
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
NoOrdinary
n00b
n00b


Joined: 16 Apr 2005
Posts: 25
Location: Slovenia

PostPosted: Thu Dec 08, 2005 7:29 pm    Post subject: ADSL and baselayout 1.12 Reply with quote

Today I updated to baselayout 1.12.0_pre11-r3 (reason was udev 077-r1). I'm not running system on ~arch only stuff needed for kde 3.5 and. However in /etc/conf.d/net.example I found this:
Code:
# PPP
# For PPP support, emerge net-dialup/ppp
# PPP is used for most dialup connections, including ADSL.
# The older ADSL module is documented below, but you are encouraged to try
# this module first.
...

Following example I have written new /etc/conf.d/net:
Code:
config_eth0=( "192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0" )
config_eth1=( "null" )
link_ppp0="eth1"
plugins_ppp0=( "pppoe" )
username_ppp0='my_username'

but I can't get ADSL working. I probably didn't configure something and there is no help about this yet (at least I didn't find anything). So can someone please explain what and where need to be set to use this new module, I'm now back on rp-pppoe but curious hehe. During boot both eth0 and eth1 were set but nothing about ppp0, that also wasnt in ifconfig -a output. I tried to compile pppoe in kernel as module and build in just to be sure but it was same. Cheer for any info.
Back to top
View user's profile Send private message
xaos5
Apprentice
Apprentice


Joined: 19 Apr 2005
Posts: 255
Location: Michigan

PostPosted: Thu Dec 08, 2005 7:35 pm    Post subject: Reply with quote

adsl is pppoe not ppp, ppp stands for point to point protocol while the oe means over ethernet. I assume your adsl modem is connected to you computer from a ethernet cord. pppoe might rely on ppp package stuff being there.

Quote:
Assuming you need PPPoE to connect to the internet, the Installation CD (any version) has made things easy for you by including rp-pppoe. Use the provided adsl-setup script to configure your connection. You will be prompted for the ethernet device that is connected to your adsl modem, your username and password, the IPs of your DNS servers and if you need a basic firewall or not.

Code Listing 6: Using rp-pppoe

# adsl-setup
# adsl-start

If something goes wrong, double-check that you correctly typed your username and password by looking at /etc/ppp/pap-secrets or /etc/ppp/chap-secrets and make sure you are using the right ethernet device. If your ethernet device doesn't exist, you will have to load the appropriate network modules. In that case you should continue with Manual Network Configuration as we explain how to load the appropriate network modules there.


above was taken from the gentoo handbook.
_________________
AMD 3000+ xp-m (133@16.5 default) 190x11.5, 1024mb ram, geforce 6600GT @ 580/1090
Back to top
View user's profile Send private message
NoOrdinary
n00b
n00b


Joined: 16 Apr 2005
Posts: 25
Location: Slovenia

PostPosted: Thu Dec 08, 2005 8:03 pm    Post subject: Reply with quote

I don't have any problems using adsl during install or so, I'm just curious how to set up ADSL in new baselayout if rp-pppoe is going to be deprecated.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Dec 08, 2005 9:38 pm    Post subject: Reply with quote

You need more options I think - you didn't specify a password. Checkout the example for more options.

If you do get it working, then open a new bug and post your thoughts on how to improve the documentation.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
xaos5
Apprentice
Apprentice


Joined: 19 Apr 2005
Posts: 255
Location: Michigan

PostPosted: Fri Dec 09, 2005 2:40 am    Post subject: Reply with quote

ha didn't read the last part of your post, I wouldn't really worry about it until they actually do it. They will probably document something on it when the time comes or someone will post a howto on these forums.
_________________
AMD 3000+ xp-m (133@16.5 default) 190x11.5, 1024mb ram, geforce 6600GT @ 580/1090
Back to top
View user's profile Send private message
xaos5
Apprentice
Apprentice


Joined: 19 Apr 2005
Posts: 255
Location: Michigan

PostPosted: Fri Dec 09, 2005 2:46 am    Post subject: Reply with quote

UberLord wrote:
You need more options I think - you didn't specify a password. Checkout the example for more options.

If you do get it working, then open a new bug and post your thoughts on how to improve the documentation.


even better idea then you can update a wiki page so this doesn't get asked a million more times :D
_________________
AMD 3000+ xp-m (133@16.5 default) 190x11.5, 1024mb ram, geforce 6600GT @ 580/1090
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Dec 09, 2005 6:42 am    Post subject: Reply with quote

xaos5 wrote:
UberLord wrote:
You need more options I think - you didn't specify a password. Checkout the example for more options.

If you do get it working, then open a new bug and post your thoughts on how to improve the documentation.


even better idea then you can update a wiki page so this doesn't get asked a million more times :D


No I won't - and here's why.

I'm a good coder but a bad documentor. I can get things working from my documentation because I wrote both.

Also, I don't have any ADSL hardware with which to test :P

So some other people - maybe you??? will have to write wiki's and stuff.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
xaos5
Apprentice
Apprentice


Joined: 19 Apr 2005
Posts: 255
Location: Michigan

PostPosted: Fri Dec 09, 2005 7:38 am    Post subject: Reply with quote

UberLord wrote:
xaos5 wrote:
UberLord wrote:
You need more options I think - you didn't specify a password. Checkout the example for more options.

If you do get it working, then open a new bug and post your thoughts on how to improve the documentation.


even better idea then you can update a wiki page so this doesn't get asked a million more times :D


No I won't - and here's why.

I'm a good coder but a bad documentor. I can get things working from my documentation because I wrote both.

Also, I don't have any ADSL hardware with which to test :P

So some other people - maybe you??? will have to write wiki's and stuff.


I was refering to NoOrdinary about writing a wiki page.
_________________
AMD 3000+ xp-m (133@16.5 default) 190x11.5, 1024mb ram, geforce 6600GT @ 580/1090
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Dec 09, 2005 9:48 am    Post subject: Reply with quote

Fair enough :lol:
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
volkmar
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jul 2004
Posts: 122

PostPosted: Fri Dec 09, 2005 2:32 pm    Post subject: Re: ADSL and baselayout 1.12 Reply with quote

You may find some information in your PPP docs.
NoOrdinary wrote:
but I can't get ADSL working. I probably didn't configure something and there is no help about this yet (at least I didn't find anything). So can someone please explain what and where need to be set to use this new module, I'm now back on rp-pppoe but curious hehe. During boot both eth0 and eth1 were set but nothing about ppp0, that also wasnt in ifconfig -a output. I tried to compile pppoe in kernel as module and build in just to be sure but it was same. Cheer for any info.
I was using those settings as described in my Kernel mode pppoe thread and it did work. But I've forgot the settings for /etc/conf.d/net, only I remember is that I had to slightly modify /etc/init.d/net.lo somehow in order to make it trigger the kernel-pppoe.
Maybe the new baselayout does support kernel-pppoe out of the box?
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Mon Dec 12, 2005 7:37 pm    Post subject: Reply with quote

I've stumbled about the same problem as the original poster. I'm running on ~x86 on the server in question. Thus, I was surprised to learn that I had to change quite a bit after emerging net-dialup/ppp-2.4.3-r10.

As suggested, I examined net.example and found it to be confusing to the extreme. It's great to have examples but even I, a seasoned Linux veteran, found the ppp stuff to be way overloaded.

After having migrated my old settings to my new /etc/conf.d/net I tried to start the interface:

Code:

 * Caching service dependencies ...                                                                             [ ok ]
 * Starting ppp0
 *   Configuration not set for ppp0 - assuming dhcp
 *   Bringing up ppp0
 *     dhcp
 *       ppp0 does not exist                                                                                    [ !! ]


Well, hadn't I just configured ppp0? I added the following line:

Code:

config_ppp0=( "0.0.0.0" )

(My IP is dynamic.)

Didn't help either but this time I noticed pppd didn't even get started. I my despair I changed the line to:

Code:

config_ppp0=( "pppd" )


And now it works. This seems to be undocumented, though, which isn't exactly helpful. Please consider adding a line explicitly stating that every (?) interface needs that config_${iface} stuff or else nothing will happen. Furthermore, please document the usage of "pppd" (or whatever it might supposed to be) in this case.

It still complains about the "persist" option, though, which worries me greatly since I need it. It says "The 'persist' option is not allowed." Why is that? And how do I tell pppd to re-open the connection if the link fails? Or is this the new default behaviour?
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Mon Dec 12, 2005 7:54 pm    Post subject: Reply with quote

Ok, answering myself:

"persist" gets special treatment. Not that the user gets to know why. Not even in the code comments. But "we" don't work like that. :-)

/lib/rcscripts/net.modules.d/pppd wrote:

# We don't work with these options set by the user
for i in unit nodetach linkname maxfail persist ; do
if [[ " ${opts} " == *" ${i} "* ]]; then
eerror "The option \"${i}\" is not allowed"
return 1
fi
done


And a few lines down "we" find this:

/lib/rcscripts/net.modules.d/pppd wrote:

# Set forced options
opts="unit ${unit} persist maxfail 0 ${opts}"


"persist" obviously is the default. Which should be prominently documented because pppd's default is "nopersist". I haven't checked the rest of the code but I hope that "maxfail 0" doesn't mean that my server will indefinitely try to connect by pppd (which would be pppd's default behaviour again).

Both "maxfail" and "persist" should be user-adjustable by /etc/conf.d/net, IMHO. If this is really hard-coded (and so it seems) that would be unfortunate.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Dec 12, 2005 8:33 pm    Post subject: Reply with quote

Please open a new bug for pppd documentation
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Mon Dec 12, 2005 8:53 pm    Post subject: Reply with quote

UberLord wrote:
Please open a new bug for pppd documentation


Done:

https://bugs.gentoo.org/show_bug.cgi?id=115346

Nevertheless: Why are "persist" and "maxfail" (to "0") being enforced now? Is there any special reason not to use the upstream defaults and make them user-adjustable?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Dec 13, 2005 7:01 am    Post subject: Reply with quote

Heck if I know - I don't maintain anything pppd related. Bug mrness@gentoo.org with all pppd/adsl related questions.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
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