From owner-freebsd-net@FreeBSD.ORG Thu Oct 17 07:06:06 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3DDBE951 for ; Thu, 17 Oct 2013 07:06:06 +0000 (UTC) (envelope-from melifaro@FreeBSD.org) Received: from mail.ipfw.ru (mail.ipfw.ru [IPv6:2a01:4f8:120:6141::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F1F3727E0 for ; Thu, 17 Oct 2013 07:06:05 +0000 (UTC) Received: from v6.mpls.in ([2a02:978:2::5] helo=ws.su29.net) by mail.ipfw.ru with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76 (FreeBSD)) (envelope-from ) id 1VWdsJ-000Hd7-NW; Thu, 17 Oct 2013 07:03:47 +0400 Message-ID: <525F8C4F.5090303@FreeBSD.org> Date: Thu, 17 Oct 2013 11:05:51 +0400 From: "Alexander V. Chernikov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130728 Thunderbird/17.0.7 MIME-Version: 1.0 To: Raimundo Santos Subject: Re: ifconfig: ioctl (SIOCAIFADDR): File exists - but not only with alias command References: In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2AOFMGQHXPBLALXGQLKIR" Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2013 07:06:06 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2AOFMGQHXPBLALXGQLKIR Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 16.10.2013 22:17, Raimundo Santos wrote: > Hello list, Hello! >=20 > I have a quad port Intel NIC and I am stucked on this problem: whenever= I > try to modify the address of one port of this NIC, I see from ifconfig >=20 > ifconfig: ioctl (SIOCAIFADDR): File exists >=20 > Here is the status of one port: >=20 > # ifconfig igb1 > igb1: flags=3D8843 metric 0 mtu= 1500 >=20 > options=3D401bb > ether 00:1b:21:5a:93:31 > inet6 fe80::21b:21ff:fe5a:9331%igb1 prefixlen 64 scopeid 0x2 > nd6 options=3D29 > media: Ethernet autoselect (1000baseT ) > status: active >=20 > As you can see, no inet address. Try to put an address that was used be= fore > in the same port of this NIC, and.. >=20 >=20 > # ifconfig igb1 XX.XX.XX.20/28 > ifconfig: ioctl (SIOCAIFADDR): File exists This seems rather strange. I'm using multiple fibs in production, and it shouldn't behave that way. Can you do the following and send me output? 1) issue `route -n monitor` and log all messages 2) add first address to interface 3) do route -n get network_address (e.g. XX.XX.XX.16/28) for added prefix (in fib 0 and fib 1) 4) remove this address 5) repeat step 3 6) add this prefix to another port 7) repeat step 3 >=20 > I have routed running with this /etc/gateways: >=20 > ripv2 > if=3Dtun0 no_rip > if=3Dtun1 no_rip > if=3Det0 no_rip > if=3Det1 no_rip > if=3Digb2 no_rip > if=3Digb3 no_rip > rdisc_interval=3D45 > no_ag > no_super_ag > subnet=3DX.Y.Z.56/30,1 > subnet=3DX.Y.Z.0/29,1 > subnet=3DX.Y.Z.8/29,1 > subnet=3DX.Y.Z.16/29,1 > subnet=3DX.Y.Z.24/29,1 > subnet=3DX.Y.Z.32/29,1 > subnet=3DX.Y.Z.40/29,1 > subnet=3DX.Y.Z.48/29,1 > subnet=3DX.Y.Z.64/29,1 > subnet=3DX.Y.Z.72/29,1 > subnet=3DX.Y.Z.80/29,1 > subnet=3DX.Y.Z.88/29,1 > subnet=3DX.Y.Z.96/29,1 > subnet=3DX.Y.Z.104/29,1 > subnet=3DX.Y.Z.112/29,1 > subnet=3DX.Y.Z.120/29,1 >=20 > The problem occurs when configuring the primary address or an alias in = any > port, after unconfigure some other address. >=20 > Using >=20 > # uname -a > FreeBSD XXX 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #10: Thu Aug 1 19:04= :09 > BRT 2013 XXX:/usr/obj/usr/src/sys/XXX_KERNEL amd64 >=20 > A custom system with 0 thru 15 FIBs, FWD in ipfw, and VNET/VIMAGE all > enabled. >=20 > Thank you! > Raimundo Santos > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >=20 ------enig2AOFMGQHXPBLALXGQLKIR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlJfjFIACgkQwcJ4iSZ1q2k4WwCgou/pnKqoiYtrsfGO8u/iqAOf Mi0AoJcBXUYKj84OetTK6ZE3St4VjcMb =O2X/ -----END PGP SIGNATURE----- ------enig2AOFMGQHXPBLALXGQLKIR--