Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2003 10:28:40 +0530
From:      Shantanu Mahajan <shantanoo+fbsd@ieee.org>
To:        freebsd-questions@freebsd.org, freebsd-doc@freebsd.org
Subject:   error in ipv6.html of handbook(?)
Message-ID:  <20030122045840.GA561@dhumketu.homeunix.net>

next in thread | raw e-mail | index | archive | help
(Plz. let me know if this is wrong list to ask this ques.)

Following is the part from handbook/ipv6.html

------ BEGIN ----
19.14.2 Reading IPv6 Addresses


The canonical form is represented as: x:x:x:x:x:x:x:x, each
``x'' being a 16 Bit hex value. For example
FEBC:A574:382B:23C1:AA49:4592:4EFE:9982


Often an address will have long substrings of all zeros
therefore each such substring can be abbreviated by ``::''.
For example fe80::1 corresponds to the canonical form
fe80:0000:0000:0000:0000:0000:0000:0001


A third form is to write the last 32 Bit part in the well known (decimal) IPv4 style with dots ``.'' as separators.
For example 2002::10.0.0.1 corresponds to the (hexadecimal) canonical representation
	    ^^^^^^^^^^^^^^
2002:0000:0000:0000:0000:0000:000a:0001 which in turn is equivalent to writing
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 2002::a:1



By now the reader should be able to understand the
following:


    # ifconfig


    rl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 
	     inet 10.0.0.10 netmask 0xffffff00 broadcast 10.0.0.255
             inet6 fe80::200:21ff:fe03:8e1%rl0 prefixlen 64 scopeid 0x1
             ether 00:00:21:03:08:e1
             media: Ethernet autoselect (100baseTX )
             status: active


fe80::200:21ff:fe03:8e1%rl0 is an auto configured link-local
address. It includes the enscrambled Ethernet MAC as part of
the auto configuration.

For further information on the structure of IPv6 addresses
see RFC2373

----- END ----

As far as I can understand,
2002:10.0.0.1 should be 2002:0000:0000:0000:0000:0000:0a00:0001
i.e. 2002::a00:1 and not 2002::a:1
           ^^^                 ^
Regards,
Shantanu

-- 
Everyone is a genius.  It's just that
some people are too stupid to realize it. 

PGP keyID 137AFD9E
(C7DA 3350 1DEA F371 37DC  D92A F0D4 C2ED 137A FD9E)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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