Re: could not determine remote ip address

Jean-David Beyer <[email protected]> Tue, 09 Aug 2005 08:27:49 -0400
Newsgroups gmane.linux.redhat.ppp
Organization Institute For Regimented Whimsey
Message-ID <[email protected]>
[email protected] wrote:
> who knows about the IPCP negotiation of ppp? I've searched in this and
> other newsgroups for this error message: Could not determine remote IP
> Address, but did not find a solution. Got this message when trying to
> start pppd.
> 
> Just before this message it gives in the debug log: rcvd [IPCP ConfAck
> id=0x2 <addr 62.59.16.49> <compress VJ 0f 01>
> 
> Finally, I found out that when I specify on the command line the local
> and remote IP address, that it will work. If I only specify the remote
> address, it works as well. For example, I can ping the remote server.
> 
> Why does it say that it cannot determine the remote IP address, while it 
> just has received the ACK for the IP address?
> 
> And, how is it possible that I can work fine while I selected myselves
> the remote IP address? I would guess that the other side would reject
> that I myselves select an IP addres, and that all routing would go
> wrong...
> 
> If needed, I can dump the /etc/ppp/options file or let you know the other
>  debug entries (those are just less then a couple of 30 lines, I believe.
> 
> 
> Michael
> 
I have trouble understanding your question. Here is what a dialup session
looks like in /var/log/messages. I have obscured sensitive items.

Aug  9 07:55:26 trillian pppd[13430]: Starting link
Aug  9 07:55:27 trillian wvdial[15777]: WvDial: Internet dialer version 1.53
Aug  9 07:55:27 trillian wvdial[15777]: Initializing modem.
Aug  9 07:55:27 trillian wvdial[15777]: Sending: ATZ
Aug  9 07:55:27 trillian wvdial[15777]: ATZ
Aug  9 07:55:27 trillian wvdial[15777]: OK
Aug  9 07:55:27 trillian wvdial[15777]: Sending: ATM1L1
Aug  9 07:55:27 trillian wvdial[15777]: ATM1L1
Aug  9 07:55:27 trillian wvdial[15777]: OK
Aug  9 07:55:27 trillian wvdial[15777]: Modem initialized.
Aug  9 07:55:27 trillian wvdial[15777]: Idle Seconds = 600, disabling
automatic reconnect.
Aug  9 07:55:27 trillian wvdial[15777]: Sending: ATDT1234567890
Aug  9 07:55:27 trillian wvdial[15777]: Waiting for carrier.
Aug  9 07:55:27 trillian wvdial[15777]: ATDT1234567890
Aug  9 07:55:51 trillian wvdial[15777]: CONNECT 50666/ARQ/V90/LAPM/V42BIS
Aug  9 07:55:51 trillian wvdial[15777]: Carrier detected.  Chatmode finished.
Aug  9 07:55:51 trillian pppd[13430]: Serial connection established.
Aug  9 07:55:51 trillian pppd[13430]: Connect: ppp0 <--> /dev/ttyS4
Aug  9 07:55:55 trillian pppd[13430]: Remote message: Login Succeeded

You say you specify something on a command line. I never use a command line
as my dial-up connection is set up to run by demand, and to drop after a
period of inactivity. I find this desireable as some daemon processes on
this machine, and on another machine on my LAN that connects to the Internet
only through this machine need to communicate at times when I am not here
(e.g., on vacation, etc.).

The files related to dial-up are mostly in /etc and under /etc/sysconfig.

My /etc/wvdial.conf looks like this (with sensitive stuff obscured):

# cat wvdial.conf
[Modem0]
Modem = /dev/ttyS4
Baud = 115200
Init1 = ATZ
Init3 = ATM1L1
Dial Command = ATDT
SetVolume = 1
FlowControl = NOFLOW
Abort on Busy = on
Abort on No Dialtone = on
Dial Attempts = 3
Carrier Check = yes
Stupid Mode = 1
Idle Seconds = 600
[Dialer myISP]
Area Code = 123
Username = myLogin
Password = PAssWOrd
Phone = 4567890
Stupid Mode = 1
Inherits = Modem0

My files that matter in /etc/sysconfig are in network-scripts. One is

# cat ifcfg-Exit109
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
DEBUG=yes
DEVICE=ppp0
WVDIALSECT=myISP
MODEMPORT=/dev/ttyS4
LINESPEED=115200
PAPNAME=myLogin
USERCTL=yes
ONBOOT=yes
PERSIST=no
DEFROUTE=yes
#PEERDNS=yes
PEERDNS=no

#DEMAND=no
DEMAND=yes

IDLETIMEOUT=600
TYPE=Modem

#IPADDR=987.654.321.210
IPADDR=123.456.789.012

BOOTPROTO=none
NETMASK=255.255.255.255
CCP=off
PC=off
AC=off
BSDCOMP=off
VJ=off
VJCCOMP=off
PROVIDER=myISP
MODEMNAME=Modem0

I have a static IP address. I infer you do not, so you will probably want to
put PEERDNS=yes in your file, and remove the IPADDR= line.

-- 
  .~.  Jean-David Beyer          Registered Linux User 85642.
  /V\  PGP-Key: 9A2FC99A         Registered Machine   241939.
 /( )\ Shrewsbury, New Jersey    http://counter.li.org
 ^^-^^ 08:10:00 up 55 days, 2:04, 3 users, load average: 4.03, 4.14, 4.16