Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Apr 2011 23:16:44 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-hackers@freebsd.org
Subject:   Re: ifconfig output: ipv4 netmask format
Message-ID:  <4D9F894C.1030700@infracaninophile.co.uk>
In-Reply-To: <BANLkTimtKiTTc49Aee6a-nfzKyHUoJAGNQ@mail.gmail.com>
References:  <4D9EFAC6.4020906@lazybytes.org>	<7EA5889E-77EF-4BAE-9655-C33692A75602@bsdimp.com>	<4D9F2C88.4010205@lazybytes.org> <BANLkTimtKiTTc49Aee6a-nfzKyHUoJAGNQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigD925B34CA594A9E6ABB5A5FA
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 08/04/2011 16:53, Garrett Cooper wrote:
> One thing I've been curious about for a while that I haven't had an
> opportunity to look into is: what does IPV6 look like? I understand
> that the /netmask bit is added to the end of addresses, but what does
> the netmask actually look like?

Like this:

lucid-nonsense:~:% ifconfig re0 inet6
re0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
	options=3D389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCA=
ST,WOL_MCAST,WOL_MAGIC>
	inet6 fe80::e2cb:4eff:fe26:6481%re0 prefixlen 64 scopeid 0x1
	inet6 2001:8b0:151:1:e2cb:4eff:fe26:6481 prefixlen 64
	inet6 2001:8b0:151:1:: prefixlen 64 anycast
	inet6 2001:8b0:151:1:3950:9ee6:9c6b:8a8b prefixlen 64
	inet6 2001:8b0:151:1:3fd3:cd67:fafa:3d78 prefixlen 64
	inet6 2001:8b0:151:1:78ea:429a:bbd9:f62f prefixlen 64
	inet6 2001:8b0:151:1:d2f:23d1:314c:5e2e prefixlen 64
	inet6 2001:8b0:151:1:57f9:9484:e8b0:12d1 prefixlen 128

IPv6 doesn't deal in netmasks per-se: just in the length of the network
prefix. (64 is typical.  48 also fairly common.)

	Cheers

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew@infracaninophile.co.uk               Kent, CT11 9PW


--------------enigD925B34CA594A9E6ABB5A5FA
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2fiVIACgkQ8Mjk52CukIxKtQCfS1tuNEb9hyo6VYTmPrEPvomJ
iMoAni65SzTagY/miUiNKwTQGgVPbfN8
=w6Fh
-----END PGP SIGNATURE-----

--------------enigD925B34CA594A9E6ABB5A5FA--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D9F894C.1030700>