LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 03-06-2007, 11:48 AM   #1
tramni1980
Member
 
Registered: Jul 2006
Location: Sofia, Bulgaria
Distribution: Slackware 13.37
Posts: 707

Rep: Reputation: 35
connect to internet with PPP using pppoe - roaring penguin


Hello!
I am running Slackware Linux 11.0 with kernel test26.s and LAN card Realtek RTL8138 Family PCI Fast Ethernet NIC #2.
I recently changed my ISP and had to switch to Point to Point protocol. In Windows everything works ok with the following settings:

ISP net2lan
Device name WAN Miniport (PPPOE)
Device Type PPPoE
Server Type PPP
Transports TCP/IP
Authentication MS CHAPV2
Compression (none)
PPP multilink framing off
Server IP address 85.187.175.41
Client IP address 85.187.175.41

In Slackware I have no internet connection. Whenever I run: "pppoe-connect", I get:

Using interface ppp1
Connect: ppp1 <--> /dev/pts/7
MS-CHAP authentication failed: bad username or password
CHAP authentication failed
Connection terminated.

The output of "pppoe-status" is:
pppoe-status: Link is down -- could not find interface corresponding to
pppd pid 5091

My /etc/ppp/pppoe.conf is:

#***********************************************************************
#
# pppoe.conf
#
# Configuration file for rp-pppoe. Edit as appropriate and install in
# /etc/ppp/pppoe.conf
#
# NOTE: This file is used by the pppoe-start, pppoe-stop, pppoe-connect and
# pppoe-status shell scripts. It is *not* used in any way by the
# "pppoe" executable.
#
# Copyright (C) 2000 Roaring Penguin Software Inc.
#
# This file may be distributed under the terms of the GNU General
# Public License.
#
# LIC: GPL
# $Id: pppoe.conf,v 1.11 2005/08/09 02:49:12 dfs Exp $
#***********************************************************************

# When you configure a variable, DO NOT leave spaces around the "=" sign.

# Ethernet card connected to DSL modem
ETH='eth0'

# PPPoE user name. You may have to supply "@provider.com" Sympatico
# users in Canada do need to include "@sympatico.ca"
# Sympatico uses PAP authentication. Make sure /etc/ppp/pap-secrets
# contains the right username/password combination.
# For Magma, use xxyyzz@magma.ca
USER='25sv/1/1/ivanov'

# Bring link up on demand? Default is to leave link up all the time.
# If you want the link to come up on demand, set DEMAND to a number indicating
# the idle time after which the link is brought down.
DEMAND=no
#DEMAND=300

# DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;
# NOCHANGE=do not adjust.
DNSTYPE=SERVER

# Obtain DNS server addresses from the peer (recent versions of pppd only)
# In old config files, this used to be called USEPEERDNS. Changed to
# PEERDNS for better Red Hat compatibility
PEERDNS=no

DNS1=
DNS2=

# Make the PPPoE connection your default route. Set to
# DEFAULTROUTE=no if you don't want this.
DEFAULTROUTE=yes

### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT

# How long pppoe-start waits for a new PPP interface to appear before
# concluding something went wrong. If you use 0, then pppoe-start
# exits immediately with a successful status and does not wait for the
# link to come up. Time is in seconds.
#
# WARNING WARNING WARNING:
#
# If you are using rp-pppoe on a physically-inaccessible host, set
# CONNECT_TIMEOUT to 0. This makes SURE that the machine keeps trying
# to connect forever after pppoe-start is called. Otherwise, it will
# give out after CONNECT_TIMEOUT seconds and will not attempt to
# connect again, making it impossible to reach.
CONNECT_TIMEOUT=30

# How often in seconds pppoe-start polls to check if link is up
CONNECT_POLL=2

# Specific desired AC Name
ACNAME=

# Specific desired service name
SERVICENAME=

# Character to echo at each poll. Use PING="" if you don't want
# anything echoed
PING="."

# File where the pppoe-connect script writes its process-ID.
# Three files are actually used:
# $PIDFILE contains PID of pppoe-connect script
# $PIDFILE.pppoe contains PID of pppoe process
# $PIDFILE.pppd contains PID of pppd process
CF_BASE=`basename $CONFIG`
PIDFILE="/var/run/$CF_BASE-pppoe.pid"

# Do you want to use synchronous PPP? "yes" or "no". "yes" is much
# easier on CPU usage, but may not work for you. It is safer to use
# "no", but you may want to experiment with "yes". "yes" is generally
# safe on Linux machines with the n_hdlc line discipline; unsafe on others.
SYNCHRONOUS=no

# Do you want to clamp the MSS? Here's how to decide:
# - If you have only a SINGLE computer connected to the DSL modem, choose
# "no".
# - If you have a computer acting as a gateway for a LAN, choose "1412".
# The setting of 1412 is safe for either setup, but uses slightly more
# CPU power.
CLAMPMSS=1412
#CLAMPMSS=no

# LCP echo interval and failure count.
LCP_INTERVAL=20
LCP_FAILURE=3

# PPPOE_TIMEOUT should be about 4*LCP_INTERVAL
PPPOE_TIMEOUT=80

# Firewalling: One of NONE, STANDALONE or MASQUERADE
FIREWALL=NONE

# Linux kernel-mode plugin for pppd. If you want to try the kernel-mode
# plugin, use LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
LINUX_PLUGIN=

# Any extra arguments to pass to pppoe. Normally, use a blank string
# like this:
PPPOE_EXTRA=""

# Rumour has it that "Citizen's Communications" with a 3Com
# HomeConnect DSL Modem DualLink requires these extra options:
# PPPOE_EXTRA="-f 3c12:3c13 -S ISP"

# Any extra arguments to pass to pppd. Normally, use a blank string
# like this:
PPPD_EXTRA=""


########## DON'T CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING
# If you wish to COMPLETELY overrride the pppd invocation:
# Example:
# OVERRIDE_PPPD_COMMAND="pppd call dsl"

# If you want pppoe-connect to exit when connection drops:
# RETRY_ON_FAILURE=no


The username and password settings are ok. They are ok in /etc/ppp/pap-secrets as well.
Do I have to tweak something with netconfig? If so, what?

I have no idea why this problem arises. Any ideas will be appreciated.

Regards,
Martin
 
Old 03-06-2007, 12:10 PM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I don't usually configure pppoe's files manually (ppp configs give me chills for some reason), but have you tried running
Code:
pppoeconf
that some distributions call adsl-config, some adsl-setup and so on..? It creates the configs automatically ensuring it goes well. In addition in some situations I have needed to run
Code:
poff -a && ifconfig eth0 down && pon dsl-provider
to get the connection work (dhcp settings seem to not work all right without that, still no idea why).
 
Old 03-06-2007, 01:58 PM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,434

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
In Slackware we have pppoe-setup. Just give your user and password info and answer servers to the DNS question. Choosing the default firewall is fine for most people(got iptables installed?).
After that, use pppoe-start pppoe-stop to start or stop the connection.
 
Old 03-06-2007, 02:17 PM   #4
tramni1980
Member
 
Registered: Jul 2006
Location: Sofia, Bulgaria
Distribution: Slackware 13.37
Posts: 707

Original Poster
Rep: Reputation: 35
Quote:
Originally Posted by gnashley
In Slackware we have pppoe-setup. Just give your user and password info and answer servers to the DNS question. Choosing the default firewall is fine for most people(got iptables installed?).
After that, use pppoe-start pppoe-stop to start or stop the connection.
Yes, pppoe-setup was the command I used to initially configure the pppoe connection. I have gone a little bit further. This is what I get now:

root@marto:/home/marto# pppoe-connect

Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
CHAP authentication succeeded
CCP terminated by peer (No compression negotiated)
Compression disabled by peer.
Cannot determine ethernet address for proxy ARP
local IP address 172.16.0.60
remote IP address 85.187.175.1

root@marto:/home/marto# pppoe-status
pppoe-status: Link is up and running on interface ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:172.16.0.60 P-t-P:85.187.175.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1480 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:74 (74.0 b) TX bytes:49 (49.0 b)

root@marto:/home/marto# pppoe-start
pppoe-start: There already seems to be a PPPoE connection up (PID 3169)

ping 64.179.4.146
connect: Network is unreachable

root@marto:/home/marto# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
85.187.175.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

root@marto:/home/marto# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0E:2E:83:81:24
inet6 addr: fe80::20e:2eff:fe83:8124/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2923 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:315648 (308.2 KiB) TX bytes:3560 (3.4 KiB)
Interrupt:11 Base address:0xd800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:245 errors:0 dropped:0 overruns:0 frame:0
TX packets:245 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:17058 (16.6 KiB) TX bytes:17058 (16.6 KiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:85.187.175.36 P-t-P:85.187.175.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1480 Metric:1
RX packets:231 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:27478 (26.8 KiB) TX bytes:73 (73.0 b)


But I have no internet connection.

Any suggestions will be appreciated.

Regards,
Martin
 
Old 03-06-2007, 03:26 PM   #5
tramni1980
Member
 
Registered: Jul 2006
Location: Sofia, Bulgaria
Distribution: Slackware 13.37
Posts: 707

Original Poster
Rep: Reputation: 35
Cool

Problem solved!
I am not quite sure what actually solved it, however
I think the knack was to set
PEERDNS to yes, DEFAULTROUTE to yes and to set the default route to 85.187.175.1, which is actually the default gateway in /etc/rc.d/rc.inet1. Anyway, I now have a working ppp internet connection
I added the command /usr/sbin/pppoe-connect to /etc/rc.d/rc.local like this:

/etc/rc.d/rc.local &, so that the console is relieved. However, now at boot up I do not get the prompt until I press enter. Is there some way to add the command to the boot scripts and relieve the console automatically, i.e. without having to press enter?

Thank you very much for your attention.
Regards,
Martin.
 
Old 03-07-2007, 02:39 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,434

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
Don't call pppoe-connect directly. pppoe-start does that itself.
 
Old 03-07-2007, 09:15 AM   #7
tramni1980
Member
 
Registered: Jul 2006
Location: Sofia, Bulgaria
Distribution: Slackware 13.37
Posts: 707

Original Poster
Rep: Reputation: 35
Cool

Quote:
Originally Posted by gnashley
Don't call pppoe-connect directly. pppoe-start does that itself.
Yes, thank you very much, that worked. I should have read the man page more carefully
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
roaring penguin GUI Eyeball Linux - Software 0 10-20-2005 12:31 PM
Problems Installing Roaring Penguin PPPoE on Mandrake 10 james33440 Linux - Networking 17 08-25-2004 07:49 AM
pppOe/Roaring Penguin question kev0lush Slackware 3 02-23-2003 08:36 PM
roaring penguin Ryan_Sutton Linux - Networking 2 07-22-2002 03:20 PM
roaring penguin ... leprechaun Linux - General 7 02-06-2002 02:50 PM


All times are GMT -5. The time now is 05:54 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration