Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Dec 2005 13:42:20 +0100
From:      Philippe Pegon <Philippe.Pegon@crc.u-strasbg.fr>
To:        ohmer@epita.info
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ifconfig can't remove aliases
Message-ID:  <439C1EAC.6090102@crc.u-strasbg.fr>
In-Reply-To: <51053.213.41.241.56.1134240324.squirrel@webmail.epita.info>
References:  <51053.213.41.241.56.1134240324.squirrel@webmail.epita.info>

next in thread | previous in thread | raw e-mail | index | archive | help
oHmEr wrote:
> hello,
> 
> i have a problem with ifconfig: it refuses to delete an ipv6 alias for an
> incomprehensible reason. here's what i'm doing :
> 
> $ uname -a
> FreeBSD homer.cload.net 6.0-RELEASE FreeBSD 6.0-RELEASE #4: Sun Nov 27
> 19:01:40 CET 2005     root@homer.cload.net:/usr/obj/usr/src/sys/HOMER 
> i386
> $ ifconfig dc0
> dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         options=8<VLAN_MTU>
>         inet6 fe80::248:54ff:fe12:76fb%dc0 prefixlen 64 scopeid 0x1
>         inet6 2001:7a8:b138::1 prefixlen 64
>         inet 192.168.2.253 netmask 0xffffff00 broadcast 192.168.2.255
>         inet6 2001:7a8:b138:caca:caca:caca:caca:1 prefixlen 64
>         inet6 2001:7a8:b138::caca:1 prefixlen 48
>         ether 00:48:54:12:76:fb
>         media: Ethernet autoselect (100baseTX <full-duplex>)
>         status: active
> $ sudo ifconfig dc0 inet6 -alias 2001:7a8:b138::1
> ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
> 
> other ipv6 addresses can't be removed too. is it a bug ? what can cause
> this error ?

try :

$ sudo ifconfig dc0 inet6 2001:7a8:b138::1 delete

or

$ sudo ifconfig dc0 inet6 2001:7a8:b138::1 -alias

in ifconfig(8) :

SYNOPSIS
      ifconfig [-L] [-k] [-m] interface [create] [address_family] 
[address [dest_address]] [parameters]

parameters is in the end (like delete or -alias)

--
Philippe Pegon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?439C1EAC.6090102>