From owner-freebsd-current@FreeBSD.ORG Wed Apr 9 07:35:36 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE0C237B401 for ; Wed, 9 Apr 2003 07:35:36 -0700 (PDT) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D257843FCB for ; Wed, 9 Apr 2003 07:35:31 -0700 (PDT) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br ([10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h39EZ9927178; Wed, 9 Apr 2003 11:35:09 -0300 Message-ID: <3E942F9C.9060302@tcoip.com.br> Date: Wed, 09 Apr 2003 11:35:08 -0300 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4a) Gecko/20030408 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Jacques Beigbeder References: <20030409141422.GA20752@trefle.ens.fr> In-Reply-To: <20030409141422.GA20752@trefle.ens.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: 4.7 IP alias ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2003 14:35:37 -0000 Jacques Beigbeder wrote: > I have a host with GENERIC 4.7 kernel: > > # uname -a > FreeBSD federation 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Wed Oct 9 15:08:34 GMT ... > > I have an interface like: > > # ifconfig fxp0 > fxp0: flags=8843 mtu 1500 > inet x.y.z.16 netmask 0xffffff00 broadcast x.y.z.255 > inet6 fe80::2b0:d0ff:feea:7442%fxp0 prefixlen 64 scopeid 0x1 > ether 00:b0:d0:ea:74:42 > media: Ethernet autoselect (10baseT/UTP) > status: active > > The other interface (fxp1) is unused. > > Then I try to set an IP alias, same interface, same network, another > IP address, the end is .250 instead of .16. > > # ifconfig fxp0 x.y.z.250 netmask 255.255.255.0 broadcast x.y.z.255 alias > ifconfig: ioctl (SIOCAIFADDR): File exists > > Why does this command fails? > I'm used to use this on 3.4, 4.5... Frankly, I doubt you used to do this before. Anyway, what you need to do is use /32 netmask (255.255.255.255) for an alias in the same network of a previous configured network address. -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca TCO Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net Save the bales!