ifconfig output: ipv4 netmask format
Matthew Seaman
m.seaman at infracaninophile.co.uk
Fri Apr 8 22:16:54 UTC 2011
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=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,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
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matthew at infracaninophile.co.uk Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20110408/7f2a5444/signature.pgp
More information about the freebsd-hackers
mailing list