ifconfig alias: File Exists

Christian Kratzer ck-lists at cksoft.de
Wed Oct 20 00:12:26 PDT 2004


On Tue, 19 Oct 2004, Marc G. Fournier wrote:

> On Tue, 19 Oct 2004, Christian Kratzer wrote:
>> Hi,
>> On Tue, 19 Oct 2004, Marc G. Fournier wrote:
>>> Why would I be getting:
>>> # ifconfig fxp0 alias
>>> ifconfig: ioctl (SIOCAIFADDR): File exists
>>> when I know for a fact that it hasn't been configured?
>> you should use a netmask of for ipv4 aliases.
>> 	ifconfig fxp0 alias netmask
> Is that new?  You are right, that fixed it, but didn't think I had to do that 
> before :(

no it's been like that since I know of FreeBSD 2.0 and propably longer.
The BSD ip stack adds a route to the connected network over the
respective interface when you do an ifconfig.

Using the same netmask on all aliases it will cause it to try to add the
same route multiple times causing the error you saw.


Christian Kratzer                       ck at cksoft.de
CK Software GmbH                        http://www.cksoft.de/
Phone: +49 7452 889 135                 Fax: +49 7452 889 136

More information about the freebsd-questions mailing list