Hi, I am experimenting with IPv6 and I can't seem to remove an IPv6 address from an interface, eg I have.. [midget 22:11] ~ >ifconfig fxp0 fxp0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> 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 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? :) -- 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: This is a digitally signed message part. Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20080214/1dd5b780/attachment.pgp
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 14 Feb 2008 22:27+1030, Daniel O'Connor wrote:> [midget 22:27] ~ >sudo ifconfig fxp0 delete 2002:792d:8527::1:1 > ifconfig: 2002:792d:8527::1:1: bad valueHave you tried: sudo ifconfig fxp0 delete inet6 2002:792d:8527::1:1 - -- - ---------------------------------------------------------------------- Trond Endrest?l | trond@fagskolen.gjovik.no Patron of The Art of Computer Programming| FreeBSD 6.2-S & Pine 4.64 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFHtC5xbYWZalUoElsRAkXXAJ97xso/N94EE1EaQ4m7hHsIkRJJYgCfSTFV QTMPguKKLtHZWFd2oPTk4LA=a5p3 -----END PGP SIGNATURE-----
> But I can't remove it, viz.. > [midget 22:27] ~ >sudo ifconfig fxp0 delete 2002:792d:8527::1:1/64 > ifconfig: 2002:792d:8527::1:1/64: bad valueTry ifconfig fxp0 inet6 delete 2002:792d:8527::1:1 I think you need the address family in there and no netmask on the end. That certainly stops the error for me here. -pete.
> --nextPart1996860.fztbeObibp > Content-Type: text/plain; > charset="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=20 > from an interface, eg I have.. > [midget 22:11] ~ >ifconfig fxp0 > fxp0: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu=20 > 1500 > options=3Db<RXCSUM,TXCSUM,VLAN_MTU> > 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=20 > 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> =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 > > --nextPart1996860.fztbeObibp > 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) > > iD8DBQBHtCy15ZPcIHs/zowRAp4GAKCiDBhK5KnMRXAtHN9J9pJwbr9vTQCeLHtF > H6WuTRDWwPdfOggg4inmxbw> =UEHW > -----END PGP SIGNATURE----- > > --nextPart1996860.fztbeObibp---- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews@isc.org
Hi,>>>>> On Thu, 14 Feb 2008 22:27:34 +1030 >>>>> "Daniel O'Connor" <doconnor@gsoft.com.au> said:doconnor> Hi, doconnor> I am experimenting with IPv6 and I can't seem to remove an IPv6 address doconnor> from an interface, eg I have.. doconnor> [midget 22:11] ~ >ifconfig fxp0 doconnor> fxp0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu doconnor> 1500 doconnor> options=b<RXCSUM,TXCSUM,VLAN_MTU> doconnor> inet 10.0.2.1 netmask 0xffffff00 broadcast 10.0.2.255 doconnor> inet 10.0.2.3 netmask 0xffffffff broadcast 10.0.2.3 doconnor> inet 10.0.2.4 netmask 0xffffffff broadcast 10.0.2.4 doconnor> inet 10.0.2.7 netmask 0xffffffff broadcast 10.0.2.7 doconnor> inet6 2002:792d:8527::1:1 prefixlen 64 doconnor> ether 00:02:b3:32:2c:51 doconnor> media: Ethernet 100baseTX doconnor> status: active doconnor> But I can't remove it, viz.. doconnor> [midget 22:11] ~ >sudo ifconfig fxp0 -alias 2002:792d:8527::1:1/64 doconnor> ifconfig: 2002:792d:8527::1:1/64: bad value doconnor> [midget 22:27] ~ >sudo ifconfig fxp0 delete 2002:792d:8527::1:1/64 doconnor> ifconfig: 2002:792d:8527::1:1/64: bad value doconnor> [midget 22:27] ~ >sudo ifconfig fxp0 delete 2002:792d:8527::1:1 doconnor> ifconfig: 2002:792d:8527::1:1: bad value doconnor> [midget 22:27] ~ >sudo ifconfig fxp0 delete 2002:792d:8527::1:1 doconnor> prefixlen 64 doconnor> ifconfig: 2002:792d:8527::1:1: bad value doconnor> [midget 22:27] ~ >sudo ifconfig fxp0 delete 2002:792d:8527::/64 doconnor> ifconfig: 2002:792d:8527::/64: bad value doconnor> Anyone know the right way to do this? :) sudo ifconfig fxp0 inet6 2002:792d:8527::1:1 -alias ^^^^^ Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/
On Thu, 14 Feb 2008, Daniel O'Connor wrote: Hi,> I am experimenting with IPv6 and I can't seem to remove an IPv6 address > from an interface, eg I have.. > > 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 > 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? :)yes, man ifocnfig says ifconfig [-L] [-k] [-m] interface [create] [address_family] [address [dest_address]] [parameters] The following parameters may be set with ifconfig: -alias Remove the network address specified. This would be used if you ... Conclusion: -alias is a "parameter" and belongs to the end after the address. The it works for IPv4 is "pure luck". /bz -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT Software is harder than hardware so better get it right the first time.
Daniel O'Connor wrote:> [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 inet6 2002:792s:8527:: delete