Can't set up wvdial or dialup connection

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
phelest

Re: Can't set up wvdial or dialup connection

Post by phelest »

... to verify the "primary and secondary DNS addresses" provided during dial-up:

peter@... ~ $ grep 'ppp' /var/log/syslog | cat -n
1 Feb 17 13:30:45 ... pppd[6459]: pppd 2.4.5 started by peter, uid 1000
2 Feb 17 13:30:45 ... pppd[6459]: Using interface ppp0
3 Feb 17 13:30:45 ... pppd[6459]: Connect: ppp0 <--> /dev/ttyS0
4 Feb 17 13:30:45 ... NetworkManager[772]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
5 Feb 17 13:30:45 ... NetworkManager[772]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
6 Feb 17 13:30:46 ... pppd[6459]: not replacing existing default route via 192.168.2.91
7 Feb 17 13:30:46 ... pppd[6459]: local IP address 149.225.130.41
8 Feb 17 13:30:46 ... pppd[6459]: remote IP address 139.4.249.10
9 Feb 17 13:30:46 ... pppd[6459]: primary DNS address 195.129.111.49
10 Feb 17 13:30:46 ... pppd[6459]: secondary DNS address 195.129.111.50
11 Feb 17 13:30:48 ... ntpd[1531]: Listen normally on 6 ppp0 149.225.130.41 UDP 123
12 Feb 17 13:31:15 ... pppd[6459]: Terminating on signal 15
13 Feb 17 13:31:15 ... pppd[6459]: Connect time 0.5 minutes.
14 Feb 17 13:31:15 ... pppd[6459]: Sent 0 bytes, received 0 bytes.
15 Feb 17 13:31:15 ... NetworkManager[772]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
16 Feb 17 13:31:17 ... ntpd[1531]: Deleting interface #6 ppp0, 149.225.130.41#123, interface stats: received=0, sent=0, dropped=0, active_time=29 secs

17 Feb 17 13:47:24 ... pppd[6881]: pppd 2.4.5 started by peter, uid 1000
18 Feb 17 13:47:24 ... NetworkManager[772]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
19 Feb 17 13:47:24 ... NetworkManager[772]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
20 Feb 17 13:47:24 ... pppd[6881]: Using interface ppp0
21 Feb 17 13:47:24 ... pppd[6881]: Connect: ppp0 <--> /dev/ttyS0
22 Feb 17 13:47:24 ... pppd[6881]: not replacing existing default route via 192.168.2.91
23 Feb 17 13:47:24 ... pppd[6881]: local IP address 149.225.132.63
24 Feb 17 13:47:24 ... pppd[6881]: remote IP address 139.4.249.11
25 Feb 17 13:47:24 ... pppd[6881]: primary DNS address 195.129.111.50
26 Feb 17 13:47:24 ... pppd[6881]: secondary DNS address 195.129.111.49
27 Feb 17 13:47:26 ... ntpd[1531]: Listen normally on 7 ppp0 149.225.132.63 UDP 123
28 Feb 17 13:50:00 ... pppd[6881]: Terminating on signal 15
29 Feb 17 13:50:00 ... pppd[6881]: Connect time 2.6 minutes.
30 Feb 17 13:50:00 ... pppd[6881]: Sent 0 bytes, received 92 bytes.
31 Feb 17 13:50:00 ... NetworkManager[772]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
32 Feb 17 13:50:02 ... ntpd[1531]: Deleting interface #7 ppp0, 149.225.132.63#123, interface stats: received=0, sent=0, dropped=0, active_time=156 secs
peter@... ~ $
phelest

Re: Can't set up wvdial or dialup connection

Post by phelest »

How it should work with DNS entries according to my understanding:
/etc/ppp/ip-up.d: should adapt the DNS entries in case the ppp dial-up was successful = add additonal or replace DNS entries into "/etc/resolv.conf".
/etc/ppp/ip-down.d: should change back "/etc/resolv.conf" to the original settings (before the ppp dial-up was started) in case dial-up has been terminated.
- but this is not implemented correctly !
Last edited by phelest on Sun Feb 17, 2013 4:19 pm, edited 1 time in total.
phelest

Re: Can't set up wvdial or dialup connection

Post by phelest »

peter@... /etc $ man pppd | perl -ane'if(/usepeerdns/){$p=6}; printf "%2d $_",$p-- if $p;'
  • 6 usepeerdns
    5 Ask the peer for up to 2 DNS server addresses. The addresses supplied by the peer (if any) are passed to the /etc/ppp/ip-up
    4 script in the environment variables DNS1 and DNS2, and the environment variable USEPEERDNS will be set to 1. In addition,
    3 pppd will create an /etc/ppp/resolv.conf file containing one or two nameserver lines with the address(es) supplied by the
    2 peer.
    1
peter@... /etc $

I'm already still a long time struggling with that "/etc/ppp/ip-up" script mentioned above ... and how that would work correctly :

peter@... ~ $ ls -lR /etc/ppp/ | cat -n
  • 1 /etc/ppp/:
    2 total 76
    3 -rw------- 1 root root 80 Apr 25 2012 chap-secrets
    4 -rwxr-xr-x 1 root root 1754 Feb 4 2011 ip-down
    5 drwxr-xr-x 2 root root 4096 Nov 5 22:59 ip-down.d
    6 -rwxr-xr-x 1 root root 1892 Feb 4 2011 ip-up
    7 drwxr-xr-x 2 root root 4096 Nov 5 22:59 ip-up.d
    8 -rwxr-xr-x 1 root root 784 Feb 4 2011 ipv6-down
    9 drwxr-xr-x 2 root root 4096 Feb 4 2011 ipv6-down.d
    10 -rwxr-xr-x 1 root root 922 Feb 4 2011 ipv6-up
    11 drwxr-xr-x 2 root root 4096 Feb 4 2011 ipv6-up.d
    12 -rw-r--r-- 1 root root 13487 Feb 4 2011 options
    13 -rw-r--r-- 1 root root 1759 Oct 15 2010 options.pptp
    14 -rw------- 1 root root 1628 Apr 25 2012 pap-secrets
    15 drwxr-s--- 2 root dip 4096 Feb 12 22:37 peers
    16 -rwxr-xr-x 1 root root 137 Feb 4 2011 pppoe_on_boot
    17 drwxr-xr-x 2 root root 4096 Dec 13 2011 resolv
    18 -rw-r--r-- 1 root peter 52 Feb 17 13:47 resolv.conf
    19
    20 /etc/ppp/ip-down.d:
    21 total 12
    22 -rwxr-xr-x 1 root root 581 Feb 4 2011 0000usepeerdns
    23 -rwxr-xr-x 1 root root 486 Sep 8 00:05 000resolvconf
    24 -rwxr-xr-x 1 root root 2204 Dec 13 2011 0dns-down
    25
    26 /etc/ppp/ip-up.d:
    27 total 12
    28 -rwxr-xr-x 1 root root 902 Feb 4 2011 0000usepeerdns
    29 -rwxr-xr-x 1 root root 515 Sep 8 00:05 000resolvconf
    30 -rwxr-xr-x 1 root root 4024 Dec 13 2011 0dns-up
    31
    32 /etc/ppp/ipv6-down.d:
    33 total 0
    34
    35 /etc/ppp/ipv6-up.d:
    36 total 0
    37
    38 /etc/ppp/peers:
    39 total 16
    40 -rw-r----- 1 root dip 2141 Jul 22 2011 dsl-provider
    41 -rw-r----- 1 root dip 1093 Apr 25 2012 provider
    42 -rw-r--r-- 1 root root 30 Mar 10 2012 wvdial
    43 -rw-r--r-- 1 root root 75 Mar 10 2012 wvdial-pipe
    44
    45 /etc/ppp/resolv:
    46 total 0
peter@... ~ $

The most easiest workaround seems to be:

Code: Select all

sudo  cp  /etc/ppp/resolv.conf  /etc/resolv.conf
( updated with a POTS modem PPP dial-up using "Gnome-PPP" in LinuxMint 13 Maya MATE )
phelest

Re: Can't set up wvdial or dialup connection

Post by phelest »

Once you have another dial-up active (ping to an IP address is ok, but DNS is still missing) then you can find out
the returned connection relevant DNS IP addresses (related to usepeerdns - listed by connection time) via

Code: Select all

grep  'DNS address'  /var/log/syslog
peter@... ~ $ grep 'DNS address' /var/log/syslog
Feb 17 13:30:46 ... pppd[6459]: primary DNS address 195.129.111.49
Feb 17 13:30:46 ... pppd[6459]: secondary DNS address 195.129.111.50
Feb 17 13:47:24 ... pppd[6881]: primary DNS address 195.129.111.50
Feb 17 13:47:24 ... pppd[6881]: secondary DNS address 195.129.111.49
Feb 17 20:00:50 ... pppd[9112]: primary DNS address 195.129.111.49
Feb 17 20:00:50 ... pppd[9112]: secondary DNS address 195.129.111.50
peter@... ~ $
phelest

Re: Can't set up wvdial or dialup connection

Post by phelest »

... these both need to be found here then :
The 1st was available at my system, but the 2nd not - but just copying from .../ppp/... to the other directory (as mentioned above) did the job:

peter@... ~ $ more /etc/ppp/resolv.conf # was available
nameserver 195.129.111.49
nameserver 195.129.111.50
peter@... ~ $ more /etc/resolv.conf # was missing, but file above was MANUALLY copied to here !
nameserver 195.129.111.49
nameserver 195.129.111.50
peter@... ~ $
phelest

Re: Can't set up wvdial or dialup connection

Post by phelest »

My list of what can be checked:

1. Does the application Gnome-PPP start up (without activating anything further - needs to be installed first) ?
2. Can Gnome-PPP successfully test your POTS dial-up modem (Setup -> Detect -> some modem LEDs are flickering during the test) ?
3. Does Gnome-PPP connect successfully to your ISP (open and capture the LOG during the start-up of the dial-up !!!) ?
4. Open a new terminal now - can you successfully ping all 4 of the given IP addresses in that output of the Gnome-PPP LOG ?
like:
--> local IP address 149.225.178.186
--> remote IP address 139.4.249.12
--> primary DNS address 195.129.111.49
--> secondary DNS address 195.129.111.50
5. Does further connectivity fail due to the usage of names in the browser instead of using IP addresses (because DNS is missing) ?

... close Gnome-PPP ... then:
6. Did you do AT&F at your modem and save that to the active modem bank - to try at least the default modem settings ?
7. Do you know the exact modem parameters, AT commands and Init-Strings to be used (check the modem logfile in another OS if it is working there) ?
8. You can very easily check all AT commands and settings of the modem with the "Serial port terminal" (needs to be installed first) !

9. Do you need to use a dial-out digit ("0") to get from an internal to the external POTS (analogue telephone network) ?
10. Have you tried to skip the "dialtone"/"no dialtone" detection ?
11. Have you tried to use PAUSE at dedicated steps ?
Locked

Return to “Beginner Questions”