Subject: Re: Couldn't set interface address: Address already exists
To: None <netbsd-users@netbsd.org>
From: Auster <lrou@x.ua>
List: netbsd-users
Date: 07/12/2006 22:29:59
In article <s93k66jktie.fsf@chen.chizhovka.net> you wrote:
>> I try to establish vpn connection to my provider via pppd and pptp
>> and I get that message from pppd:
>> Couldn't set interface address: Address 89.178.99.0 already exists
> I replace
>  route add -host 217.21.51.32 192.168.0.133
> with
>  route add -net 217.21.51.32/32 192.168.0.133
> where 217.21.51.32 is my VPN server.
> I don't understand what happens, but it works for me and probably will
> work for you too. Can anybody explain what is a difference under NetBSD?
 
 from your logfile:
  Jul 11 22:35:51 chen pppd[2712]: Couldn't set interface address: Address 87.252.248.132 already exists
  Jul 11 22:35:51 chen pppd[2712]: local  IP address 87.252.248.132
  Jul 11 22:35:51 chen pppd[2712]: remote IP address 217.21.51.32
 [note, 1st line - incorrect diagnostic message]

 and, your `ifconfig ppp0' output:
  ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
          inet6 fe80::2e0:4cff:fe14:2ed1%ppp0 ->  prefixlen 64 scopeid 0x3


 a) route add -host 217.21.51.32 192.168.0.233
    netstat -rn | grep 217.21.51.32
   217.21.51.32       192.168.0.233      UGHS        0        0      -  rtk0

 b) route add -net 217.21.51.32/32 192.168.0.233
    netstat -rn | grep 217.21.51.32
   217.21.51.32/32    192.168.0.233      UGS         0        0      -  rtk0


Short explanation:
 When ppp interface is ready, each protocol installs a routing entry,
 in your case for specific host (217.21.51.32).
 In case (a):
  request for duplicate an existing entry (entry "host 217.21.51.32"),
  and the code returns EEXIST, and "couldn't set interface address".
 In case (b):
  there is no dublicate entry (entry "net 217.21.51.32", and entry "net 217.21.51.32/32").


Regards,

-- 
Auster Vl.