From owner-freebsd-stable@FreeBSD.ORG Thu Feb 14 12:38:20 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92BA516A41A for ; Thu, 14 Feb 2008 12:38:20 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id D584F13C44B for ; Thu, 14 Feb 2008 12:38:19 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp121-45-133-39.lns11.adl6.internode.on.net [121.45.133.39]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m1ECcBW0058927 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 14 Feb 2008 23:08:11 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Mark Andrews Date: Thu, 14 Feb 2008 23:08:00 +1030 User-Agent: KMail/1.9.7 References: <200802141213.m1ECD4pj080346@drugs.dv.isc.org> In-Reply-To: <200802141213.m1ECD4pj080346@drugs.dv.isc.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5324828.akKEWp9nzj"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200802142308.07630.doconnor@gsoft.com.au> X-Spam-Score: -2.212 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: freebsd-stable@freebsd.org Subject: Re: Can't delete IPV6 addresses with ifconfig X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2008 12:38:20 -0000 --nextPart5324828.akKEWp9nzj Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thu, 14 Feb 2008, Mark Andrews wrote: > > --nextPart1996860.fztbeObibp > > Content-Type: text/plain; > > charset=3D"utf-8" > > Content-Transfer-Encoding: quoted-printable > > Content-Disposition: inline > > > > Hi, > > I am experimenting with IPv6 and I can't seem to remove an IPv6 > > address=3D20 from an interface, eg I have.. > > [midget 22:11] ~ >ifconfig fxp0 > > fxp0: flags=3D3D8943 > > mtu=3D20 1500 > > options=3D3Db > > inet 10.0.2.1 netmask 0xffffff00 broadcast 10.0.2.255 > > inet 10.0.2.3 netmask 0xffffffff broadcast 10.0.2.3 > > inet 10.0.2.4 netmask 0xffffffff broadcast 10.0.2.4 > > inet 10.0.2.7 netmask 0xffffffff broadcast 10.0.2.7 > > inet6 2002:792d:8527::1:1 prefixlen 64 > > ether 00:02:b3:32:2c:51 > > media: Ethernet 100baseTX > > status: active > > > > But I can't remove it, viz.. > > [midget 22:11] ~ >sudo ifconfig fxp0 -alias 2002:792d:8527::1:1/64 > > ifconfig: 2002:792d:8527::1:1/64: bad value > > [midget 22:27] ~ >sudo ifconfig fxp0 delete 2002:792d:8527::1:1/64 > > ifconfig: 2002:792d:8527::1:1/64: bad value > > [midget 22:27] ~ >sudo ifconfig fxp0 delete 2002:792d:8527::1:1 > > ifconfig: 2002:792d:8527::1:1: bad value > > [midget 22:27] ~ >sudo ifconfig fxp0 delete 2002:792d:8527::1:1=3D20 > > prefixlen 64 > > ifconfig: 2002:792d:8527::1:1: bad value > > [midget 22:27] ~ >sudo ifconfig fxp0 delete 2002:792d:8527::/64 > > ifconfig: 2002:792d:8527::/64: bad value > > > > Anyone know the right way to do this? :) > > ifconfig fxp0 -alias inet6 2002:792d:8527::1:1 This doesn't work, what Hajimu suggested does though. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart5324828.akKEWp9nzj Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHtDYv5ZPcIHs/zowRAhM0AJ9s8Z0nlNyk/KX54DjRRE4wppDeQwCggMdn Rs3NK2ehwLd5KR57MXwjf+c= =O5ET -----END PGP SIGNATURE----- --nextPart5324828.akKEWp9nzj--