Subject: Re: Couldn't set interface address: Address already exists
To: None <netbsd-users@netbsd.org>
From: Denis Lagno <dilmah@post.ru>
List: netbsd-users
Date: 07/12/2006 01:59:15
Is it possible to manually assign inet addresses for ppp 
via ifconfig?

pppd created this interface:

# ifconfig ppp0
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 
1400
         inet6 fe80::210:4bff:fe67:8727%ppp0 ->  prefixlen 
64 scopeid 0x4

And I know adresses:
local  IP address 89.178.128.12
remote IP address 195.14.40.16

So can I execute something like:
# ifconfig ppp0 inet 89.178.128.12 195.14.40.16
ifconfig: SIOCAIFADDR: File exists

It does not work.

Or maybe:

# ifconfig ppp0 inet 89.178.128.12
# ifconfig ppp0
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 
1400
         inet 89.178.128.12 -> 0.0.0.0 netmask 0xff000000
         inet6 fe80::210:4bff:fe67:8727%ppp0 ->  prefixlen 
64 scopeid 0x4

It is also not very good.

Can I do something helpful in this situation via ifconfig?