aliases on lo0: SIOCDIFADDR gives EADDRNOTAVAIL

pluknet pluknet at gmail.com
Fri Jul 10 16:24:29 UTC 2009


2009/7/10 pluknet <pluknet at gmail.com>:
> Hi.
>
> I have the next string in rc.conf:
> ifconfig_lo0_alias0="inet 192.168.193.193/32"
>
> /etc/rc.d/netif restart lo0 prints an error:
>
> Stopping network:ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
>  lo0.
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
>        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
>        inet6 ::1 prefixlen 128
>        inet 127.0.0.1 netmask 0xff000000
>        inet 192.168.193.193 netmask 0xffffffff
>
> Can someone comment on this?
>

P.S. AFAICS from sh -x this equvalents to:
ifconfig lo0 inet 192.168.193.193/32 -alias
ifconfig lo0 inet 192.168.193.193 delete

$ sudo ifconfig lo0 inet 192.168.193.193/32 -alias
$ ifconfig lo0
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
$ sudo ifconfig lo0 inet 192.168.193.193 delete
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address

-- 
wbr,
pluknet


More information about the freebsd-net mailing list