You are not logged in.

#1 2013-12-02 16:29:48

4on6
Member
Registered: 2011-10-05
Posts: 172

[SOLVED] ppp: pon seems to work, but ping doesn't

Hi List,
when trying to reinstall Archlinux from a CD, I get stuck in the very beginning of the process because I can't make the network connection work.

The disk is already partitioned and formatted. I loaded the appropriate (de-latin1) keys, mounted root, boot and home partitions (/mnt/, /mnt/boot/ etc) and used swapon for the swap partition. I then copied from the backup of my old installation the /etc/ppp/peers/pppoe file, changed eth0  to enp0s7 (after doing an ifconfig), and set a symlink to this file called provider.

Then calling pon on the commandline works as expected. However, if I ping www.google.com or so, I get the unknown host message. I believe the same setting worked for me with my former Archlinux install, and the internet connection works anyway - I'm using it for my labtop to write this message right now.

Did I miss something? Is there some necessary config I forgot about?
Here is the content of the pppoe file:

    plugin re-pppoe.so
   # network interface
    enp0s7
   # login name
    name "0123456789"
   usepeerdns 
   persist

   defaultroute
   hide-password
   noauth

Last edited by 4on6 (2013-12-07 18:06:48)

Offline

#2 2013-12-03 10:57:03

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,964

Re: [SOLVED] ppp: pon seems to work, but ping doesn't

you might have a dns resolving problem,

can you ping 8.8.8.8 (1 of google's public dns servers) ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2013-12-03 13:42:30

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: [SOLVED] ppp: pon seems to work, but ping doesn't

Without information from the journal, all we can do is guess.

Offline

#4 2013-12-03 19:35:50

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] ppp: pon seems to work, but ping doesn't

Lone_Wolf wrote:

you might have a dns resolving problem,

can you ping 8.8.8.8 (1 of google's public dns servers) ?

I tried it and get:

connect: Network is unreachable

Offline

#5 2013-12-03 19:45:04

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] ppp: pon seems to work, but ping doesn't

brain0 wrote:

Without information from the journal, all we can do is guess.

Of course, here are the messages:

PPP session is 1820
Connected to [... ip address ...] via interface enp0s7
Using interface ppp0
version 6.0.5 starting
ppp0 soliciting an IPv6 router
ppp0 : is a NET/ROM pseudo interface
no interfaces have a fixed hardware address
ppp0: waiting for 3rd party to configure IP address
peer from calling number [...ip address ...] authorized
LCP terminated by peer
Connection terminated
ppp0: carrier lost
Stopping dhcpcd on ppp0...
Modem hangup
exited
Stopped dhcpcd on ... (3x)
Timeout waiting for PADO packets
Unable to complete PPPoE Discovery
Terminating on signal 15
Exit.

Offline

#6 2013-12-04 00:34:28

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: [SOLVED] ppp: pon seems to work, but ping doesn't

Hm, a udev rule on the ISO is starting dhcpcd on ppp0, which it shouldn't. I don't know if this is your problem, but try

systemctl mask dhcpcd@.service

before launching pppd.

Offline

#7 2013-12-04 11:35:10

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] ppp: pon seems to work, but ping doesn't

brain0 wrote:

Hm, a udev rule on the ISO is starting dhcpcd on ppp0, which it shouldn't. I don't know if this is your problem, but try

systemctl mask dhcpcd@.service

before launching pppd.

I tried it, but it does not help.

There are descriptions of how to configure pppoe, but I think I don't need(ed) to give all this specific information, all I had to do was adding a pppoe connection config file (/ppp/peers/pppoe shown above) with my phone number as user name - and the usepeerdns and noauth attributes made it unnecessary to give more info.

From my (naive) point of view, these journal lines

connected to ... via interface enp0s7
Using interface ppp0
Connect: ppp0 <--> enp0s7
peer from calling number ... authorized

seem to suggest that the connection config file cited above allows to establish a connection (or at least log in).

But then

LCP terminated by peer
Timeout while waiting for PADO packets

something I don't understand seems to go wrong.

Or is the underlying problem that I forgot another config file or so? There is rp-pppoe.config too, and I changed ETH=eth0  to ETH=enp0s7, but to no avail. I could not change the user= ... settings in this file since I don't know what to put there for my provider (and if it is necessary at all).

Or should I abort direct configuration of pppd and go for something like wvdial (which I don't know at all)?

Offline

#8 2013-12-05 14:23:08

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: [SOLVED] ppp: pon seems to work, but ping doesn't

You can enable debug output for pppd by adding the 'debug' option. This will make your output more informative.

Offline

#9 2013-12-07 18:06:13

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] ppp: pon seems to work, but ping doesn't

For the record, I finally figured out that I did not prepare a /ppp/pap-secrets file. Doing so gave me a working internet connection, however resolvconf did not do its work (copying the dns servers received from peer to /etc/resolv.conf, or that file was overwritten by some other program), so I had to add Google nameservers (like 8.8.8.8) by hand.

Last edited by 4on6 (2013-12-07 18:31:03)

Offline

Board footer

Powered by FluxBB