Gentoo Archives: gentoo-user

From: Philip Webb <purslow@×××××××××.ca>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] /etc/conf.d/net
Date: Sun, 20 Aug 2006 05:56:26
Message-Id: 20060820055221.GA4812@sympatico.ca
In Reply to: [gentoo-user] /etc/conf.d/net by David Corbin
1 060819 David Corbin wrote:
2 > I emerged a bunch of stuff this morning, and got this:
3 > "Gentoo is moving toward common config file for all network interfaces.
4 > I looked at /etc/conf.d/net.example & it's woefully unclear
5 > how I port my /etc/init.d/net.ppp0 to the new file/format.
6
7 Yes, the dox are not as detailed as they sb.
8 To repeat my explanation to another troubled user a few weeks ago :
9
10 I needed 3 things to get it working :
11 (1) in /etc/init.d , delete the old net.ppp0 (or rename it neutrally)
12 & do 'ln -s net.lo net.ppp0' ;
13 (2) do 'rc-update del net.eth0 default' 'rc-update add net.ppp0 default'
14 (this is the bit which isn't adequately documented: anyone would think
15 that both are simply symlinks to net.lo so what's the difference ?
16 but in fact, it affects how Baselayout configures the connection);
17 (3) create a new /etc/conf.d/net following net.example : mine is
18
19 config_eth0=( "192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255" )
20 # We have to instruct ppp0 to actually use ppp
21 config_ppp0=( "ppp" )
22 # Each PPP interface requires an interface to use as a "Link"
23 link_ppp0="eth0" # PPPoE requires an ethernet interface
24 # Specify what pppd plugins you want to use:
25 plugins_ppp0=( "pppoe" )
26 # PPP requires at least a username.
27 # It will use the password specified in /etc/ppp/*-secrets
28 username_ppp0='user@isp'
29 pppd_ppp0=( "updetach" "defaultroute" )
30
31 I found the 2 items in the last line were required by testing items.
32 You may need a bit of trial+error to get it right for your system+ISP.
33
34 If you really can't get it to work, you can go on using Rp-pppoe:
35 just omit/reverse steps (1-2) & restore your old /etc/conf.d/net ;
36 there's a section in net.example confirming this.
37
38 --
39 ========================,,============================================
40 SUPPORT ___________//___, Philip Webb : purslow@××××××××××××××.ca
41 ELECTRIC /] [] [] [] [] []| Centre for Urban & Community Studies
42 TRANSIT `-O----------O---' University of Toronto
43 --
44 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] /etc/conf.d/net Alan Mckinnon <alan@××××××××××××××××.za>