Leap and ADSL Modem

Hi all.

I run Leap on my PC and I would to connect it to internet using an old Ethernet ADSL modem (only modem, not router).

The modem works well on opensuse 12.3 (I set it using Yast → DSL e Yast → Modem), but in Leap it doesn’t work.

I followed this thread https://forums.opensuse.org/showthread.php/502199-UPGRADING-REMOVES=

The service has been created, but I can’t connect to internet.

Follows the output of command ifconfig:

PC:~ # ifconfig
eth0 Link encap:Ethernet HWaddr 08:60:6E:D8:B6:5A
inet addr:192.168.1.2 Bcast:255.255.255.255 Mask:255.255.255.0
inet6 addr: fe80::a60:6eff:fed8:b65a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:256 errors:0 dropped:0 overruns:0 frame:0
TX packets:360 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27202 (26.5 Kb) TX bytes:33915 (33.1 Kb)

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:65536 Metric:1
RX packets:1336 errors:0 dropped:0 overruns:0 frame:0
TX packets:1336 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:106364 (103.8 Kb) TX bytes:106364 (103.8 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:87.15.150.19 P-t-P:192.168.100.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:97 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:9452 (9.2 Kb) TX bytes:54 (54.0 b)

and route -n:

PC:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.100.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0

This is the output of Yast → Services (detail of the service created following the thread specified above)

ppp@TIM.service - PPP link to TIM
Loaded: loaded (/etc/systemd/system/ppp@.service; enabled)
Active: active (running) since Mon 2016-02-08 21:59:56 CET; 43s ago
Docs: man:pppd(8)
Main PID: 4654 (pppd)
CGroup: /system.slice/system-ppp.slice/ppp@TIM.service
`-4654 /usr/sbin/pppd call TIM linkname TIM updetach nolog

Feb 08 21:59:55 PC pppd[4647]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
Feb 08 21:59:55 PC pppd[4647]: pppd 2.4.7 started by root, uid 0
Feb 08 21:59:55 PC pppd[4647]: PPP session is 6880
Feb 08 21:59:55 PC pppd[4647]: Connected to 00:90:1a:a4:46:da via interface eth0
Feb 08 21:59:55 PC pppd[4647]: Using interface ppp0
Feb 08 21:59:55 PC pppd[4647]: Connect: ppp0 eth0
Feb 08 21:59:56 PC pppd[4647]: PAP authentication succeeded
Feb 08 21:59:56 PC pppd[4647]: peer from calling number 00:90:1A:A4:46:DA authorized
Feb 08 21:59:56 PC pppd[4647]: not replacing default route to eth0 [192.168.1.1]
Feb 08 21:59:56 PC pppd[4654]: Script /etc/ppp/ip-up finished (pid 4655), status = 0x0

Thanks for the help.

Can you ping an internet address by IP address? eg

ping 8.8.8.8
ping 206.190.36.45

It may be that you’re just missing a name server for domain name resolution. Check /etc/resolv.conf for that.

Thanks for the reply.

I can’t ping any internet address.

Here is the content of my /etc/resov.conf:


### /etc/resolv.conf file autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
#     NETCONFIG_DNS_STATIC_SEARCHLIST
#     NETCONFIG_DNS_STATIC_SERVERS
#     NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
#     NETCONFIG_DNS_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
# Note: Manual change of this file disables netconfig too, but
# may get lost when this file contains comments or empty lines
# only, the netconfig settings are same with settings in this
# file and in case of a "netconfig update -f" call.
#
### Please remove (at least) this line when you modify the file!
# nameserver 192.168.1.1
nameserver 85.37.17.15
nameserver 85.38.28.74

maybe there is something wrong in these 2 files used to create the service ppp@TIM?

active options in /etc/ppp/options:


PC:~ # grep -v ^# /etc/ppp/options | grep -v ^$
noipdefault
noauth
crtscts
lock
modem
asyncmap 0
nodetach
lcp-echo-interval 30
lcp-echo-failure 4
lcp-max-configure 60
lcp-restart 2
idle 600
noipx
file /etc/ppp/filters

TIM:

# load plugin for PPPoE
plugin rp-pppoe.so
#
# Ethernet interface to use
eth0
#
# set user
user <My_user_name>
#
# set lower mtu/mru for PPPoE
mtu 1492
mru 1492
#
# set default route
defaultroute
#
# obtain DNS entries
usepeerdns
#
# never die
idle 0
maxfail 0
persist
passive

I missed this yesterday when replying

Feb 08 21:59:56 PC pppd[4647]: not replacing default route to eth0 [192.168.1.1]

and your routing table has default gateway via eth0 (rather than via the PPP tunnel). That’s where the problem is. A config mistake somewhere…

Checking ‘man pppd’, I note the following options

   defaultroute
              Add a default route to the system routing tables, using the peer as the
              gateway, when IPCP negotiation is successfully completed.   This  entry
              is  removed  when  the PPP connection is broken.  This option is privi-
              leged if the nodefaultroute option has been specified.

       replacedefaultroute
              This option is a flag to the defaultroute option.  If  defaultroute  is
              set  and this flag is also set, pppd replaces an existing default route
              with the new default route.

I wonder if the second option also needs to be present in your config.

Yes!

Added to /etc/ppp/peers/TIM the line

replacedefaultroute

The working file is:


# load plugin for PPPoE
plugin rp-pppoe.so
#
# Ethernet interface to use
eth0
#
# set user
user aliceadsl
#
# set lower mtu/mru for PPPoE
mtu 1492
mru 1492
#
# set default route
defaultroute
replacedefaultroute
#
# obtain DNS entries
usepeerdns
#
# never die
idle 0
maxfail 0
persist
passive


Tomorrow i will update the original thread

Thank you very much!

Glad to have been of help! :slight_smile: