
Chris Morrow <morrowc@ops-netman.net> writes:
code to decode addr pls.
i ask because:
morrowc@tweezer:~$ ifconfig wlan0 | grep 2002 inet6 addr: 2002:4bc4:cf11:b:58bd:5bee:d59b:c8c6/64 Scope:Global inet6 addr: 2002:4bc4:cf11:b:21d:e0ff:fe90:1acb/64 Scope:Global inet6 addr: 2002:4bc4:cf11:b:74b9:a96e:55af:6abd/64 Scope:Global inet6 addr: 2002:4bc4:cf11:b:dd31:7550:87c2:747b/64 Scope:Global inet6 addr: 2002:4bc4:cf11:b:91d2:ac70:e21c:157f/64 Scope:Global inet6 addr: 2002:4bc4:cf11:b:a425:3a98:1398:2dbd/64 Scope:Global
it'd be nice to hammer down on the others there :) (other 6 from what I can tell)
the way 6to4 works is basically it's a way to make yourself a /48 out of an ipv4 address. 2002:: is the first 16 bits; the next 32 bits is your ip address, thus 192.148.252.11 would be c094ffc0b in hex and your /48 prefix is 2002:c094:fc0b::/48. the rest of the address would be a random subnet chosen and an eui64 style host address most likely. -r