1 |
060611 Francisco J. A. Ares wrote: |
2 |
> Could anyone point me to some resource or share his/her "/etc/conf.d/net*" ? |
3 |
> I was using the old "/etc/init.d/rp-pppoe" script to start/stop adsl |
4 |
> but I did an "emerge world" ... |
5 |
|
6 |
Always a bad idea (smile). |
7 |
|
8 |
> ... without looking at the messages |
9 |
> that now the "net" script should handle all possible types of connection, |
10 |
> so now I don't know how to configure it. |
11 |
|
12 |
The dox are not quite adequate: I filed a bug & got the usual snotty answer. |
13 |
|
14 |
I needed 3 things to get it working : |
15 |
(1) in /etc/init.d , delete the old net.ppp0 (or rename it neutrally) |
16 |
& do 'ln -s net.lo net.ppp0' ; |
17 |
(2) do 'rc-update del net.eth0 default' 'rc-update add net.ppp0 default' |
18 |
(this is the bit which isn't adequately documented: anyone would think |
19 |
that both are simply symlinks to net.lo so what's the difference ? |
20 |
but in fact, it affects how Baselayout configures the connection); |
21 |
(3) create a new /etc/conf.d/net following net.example : mine is |
22 |
|
23 |
config_eth0=( "192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255" ) |
24 |
# We have to instruct ppp0 to actually use ppp |
25 |
config_ppp0=( "ppp" ) |
26 |
# Each PPP interface requires an interface to use as a "Link" |
27 |
link_ppp0="eth0" # PPPoE requires an ethernet interface |
28 |
# Specify what pppd plugins you want to use: |
29 |
plugins_ppp0=( "pppoe" ) |
30 |
# PPP requires at least a username. |
31 |
# It will use the password specified in /etc/ppp/*-secrets |
32 |
username_ppp0='user@isp' |
33 |
pppd_ppp0=( "updetach" "defaultroute" ) |
34 |
|
35 |
I found the 2 items in the last line were required by testing items. |
36 |
You may need a bit of trial+error to get it right for your system+ISP. |
37 |
|
38 |
If you really can't get it to work, you can go on using Rp-pppoe: |
39 |
just omit/reverse steps (1-2) & restore your old /etc/conf.d/net ; |
40 |
there's a section in net.example confirming this. |
41 |
|
42 |
-- |
43 |
========================,,============================================ |
44 |
SUPPORT ___________//___, Philip Webb : purslow@××××××××××××××.ca |
45 |
ELECTRIC /] [] [] [] [] []| Centre for Urban & Community Studies |
46 |
TRANSIT `-O----------O---' University of Toronto |
47 |
-- |
48 |
gentoo-user@g.o mailing list |