ifconfig: ioctl (SIOCAIFADDR): Destination address required

Hi,

am trying to connect two servers via tincd and it worked. But something happend "over night" and now when I start tincd I get
Code:
ifconfig: ioctl (SIOCAIFADDR): Destination address required
when I run [cmd=]ifconfig tun0 10.0.0.1 netmask 255.255.255.0[/cmd]

I googled but could not find a helpful answer. I can not remember if I had changed something.

Thanks for help.
 
No, tincd uses its own script called "tinc-up".

There it says:
Code:
ifconfig $INTERFACE 10.0.0.1 netmask 255.255.255.0

The interface name is configured to be tun0. So there is no difference if I run the command manually.
 
Strange, I removed the line

Code:
mode = switch

and now it seems to work. I will close this thread if it's still working tomorrow :)
 
Be careful when using variables with interface names. There might be race conditions where an interface is not created or configured in time. If you're using DHCP, try SYNCDHCP instead.
 
Thanks for the hint. Im not using DHCP but I will modify the script.

Thanks.
 
Back
Top