You are not logged in.

#1 2011-08-23 17:21:05

tuxg
Member
Registered: 2011-07-15
Posts: 11

[Solved] pppoe and rc.conf

Hi archers,
I have to use pppoe for my internet connection. So, I want to configure rc.conf accordingly.
How to do that ?
I tried leaving address, netmask and gateway empty in rc.conf but this make dhclient start anyway (logic).
It's not a big deal (I hacked the network daemon), but I prefer a cleaner solution if possible.

PS: BTW why there isn't a simple way to choose what dhcp client to choose, since a bunch of people are having trouble with dhcpcd ?

thx.

Last edited by tuxg (2011-08-25 05:14:48)

Offline

#2 2011-08-23 17:26:06

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [Solved] pppoe and rc.conf

Use netcfg. Create a profile:

CONNECTION="ppp"
INTERFACE="ignore"
PRE_UP="ip link set dev eth0 up"
PEER="pppoe"

Then write the peer file (/etc/ppp/peers/pppoe):

plugin rp-pppoe.so
eth0
noauth
defaultroute
usepeerdns

user username_here
password password_here

DHCP does not come into play with pppoe.

Offline

#3 2011-08-23 18:06:09

tuxg
Member
Registered: 2011-07-15
Posts: 11

Re: [Solved] pppoe and rc.conf

thanks for reply,
netcfg depends on dhcpcd and I don't want to install it because it causes me some issues when I use another connection (dhcp).
Is this means that the pppoe connection is not covered by simply configuring rc.conf ?

Offline

#4 2011-08-23 18:38:35

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [Solved] pppoe and rc.conf

tuxg wrote:

thanks for reply,
netcfg depends on dhcpcd and I don't want to install it because it causes me some issues when I use another connection (dhcp).
Is this means that the pppoe connection is not covered by simply configuring rc.conf ?

rc.conf has never supported a pppoe connection.

Offline

#5 2011-08-23 19:48:53

tuxg
Member
Registered: 2011-07-15
Posts: 11

Re: [Solved] pppoe and rc.conf

falconindy wrote:
tuxg wrote:

thanks for reply,
netcfg depends on dhcpcd and I don't want to install it because it causes me some issues when I use another connection (dhcp).
Is this means that the pppoe connection is not covered by simply configuring rc.conf ?

rc.conf has never supported a pppoe connection.

ah! my bad (new arch user).
I'll try Gusar solution and see.

Offline

#6 2011-08-23 20:08:34

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [Solved] pppoe and rc.conf

If you only ever plan to use netcfg for pppoe, then you don't need dhcpcd. There's no hard dependency, only when you use IP="dhcp" in a profile do you need a dhcp client.

Offline

#7 2011-08-25 04:56:13

tuxg
Member
Registered: 2011-07-15
Posts: 11

Re: [Solved] pppoe and rc.conf

First of all, thank you for the help, the problem is resolved.
And thank you for introducing me to netcfg (I heard about it but never actually tried it)

/me going to read more documentation about netcfg wink

About dhcpd, I meant that the installation of netcfg brings it (I dont want things that I don't use)
but I'll give another try, may be the issues I had with it are now fixed. we'll see.

Offline

#8 2011-08-25 10:33:23

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [Solved] pppoe and rc.conf

tuxg wrote:

About dhcpd, I meant that the installation of netcfg brings it

Pacman is very flexible. You can install things ignoring it's dependencies, or later remove something even though another app depends on it. Of course you have to know very well what you're doing if you do stuff like that, but in this case it's safe to remove dhcpcd - the only thing that will break is netcfg profiles that have IP="dhcp" in them.

Offline

#9 2011-08-25 19:38:18

tuxg
Member
Registered: 2011-07-15
Posts: 11

Re: [Solved] pppoe and rc.conf

Yeah :B
Thanks, though I read the man pacman many times, I never thought about this.

You are very helpful wink

Offline

Board footer

Powered by FluxBB