DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th May 2013
comet--berkeley comet--berkeley is offline
Real Name: Richard
Package Pilot
 
Join Date: Apr 2009
Location: California
Posts: 163
Default IPV6 addresses how are they written?

Multiple choice quiz:

A) IPV6 addresses are 4 groups of 4 hexadecimal characters separated by colons.
B) IPV6 addresses are 6 groups of 4 hexadecimal characters separated by colons.
C) IPV6 addresses are 7 groups of 4 hexadecimal characters separated by colons.
D) IPV6 addresses are 8 groups of 4 hexadecimal characters separated by colons.

If you look at the current version of "Absolute OpenBSD" 2nd Edition (PDF), then
page 193 under "IPV6 Basics" says that B) is the correct answer.

If you go to the OpenBSD FAQ section 6.1, it suggests reading the
"Understanding IP Addressing" by 3COM.

http://openbsd.org/faq/faq6.html#Intro

http://www.scribd.com/doc/52483921/3...-IP-Addressing

And if you look on page 43 of the 3COM document you find
"Figure 36: Hexadecimal to Binary Conversion"
which clearly shows that C) is the correct answer.

However if one looks at either the FreeBSD FAQ or the NetBSD FAQ
or Wikipedia then D) is the correct answer.

http://www.freebsd.org/doc/en_US.ISO...work-ipv6.html

http://www.netbsd.org/docs/guide/en/...tml#ipv6-intro

http://en.wikipedia.org/wiki/IPv6
Attached Images
File Type: png hex7-page43.png (25.7 KB, 75 views)

Last edited by comet--berkeley; 6th May 2013 at 11:00 PM. Reason: grammar
Reply With Quote
  #2   (View Single Post)  
Old 6th May 2013
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by comet--berkeley View Post
Multiple choice quiz:

A) IPV6 addresses are 4 groups of 4 hexadecimal characters separated by colons.
B) IPV6 addresses are 6 groups of 4 hexadecimal characters separated by colons.
C) IPV6 addresses are 7 groups of 4 hexadecimal characters separated by colons.
D) IPV6 addresses are 8 groups of 4 hexadecimal characters separated by colons.
According to Wikipedia:

http://en.wikipedia.org/wiki/IPv6_address

The IPV6 address 0:0:0:0:0:0:0:0 can be legitimately abbreviated as ::, so can I guess E) none of the above?

Reply With Quote
  #3   (View Single Post)  
Old 7th May 2013
LeFrettchen's Avatar
LeFrettchen LeFrettchen is offline
Marveled user
 
Join Date: Aug 2012
Location: France
Posts: 405
Default

IPv6 addresses have a size of 128 bits.
So the maximum is 8 groups of 4 hexa, but that's just the limit.


Quote:
Originally Posted by ocicat View Post
The IPV6 address 0:0:0:0:0:0:0:0 can be legitimately abbreviated as ::, so can I guess E) none of the above?
+ 1
Reply With Quote
  #4   (View Single Post)  
Old 7th May 2013
comet--berkeley comet--berkeley is offline
Real Name: Richard
Package Pilot
 
Join Date: Apr 2009
Location: California
Posts: 163
Default

Quote:
Originally Posted by ocicat View Post
According to Wikipedia:

http://en.wikipedia.org/wiki/IPv6_address

The IPV6 address 0:0:0:0:0:0:0:0 can be legitimately abbreviated as ::, so can I guess E) none of the above?

Yes and the IPV6 address 0000:0000:0000:0000:0000:0000:0000:0000 can be legitimately abbreviated as 0:0:0:0:0:0:0:0

so case D) still holds.


Last edited by comet--berkeley; 7th May 2013 at 06:09 AM. Reason: color
Reply With Quote
  #5   (View Single Post)  
Old 7th May 2013
CyberJet's Avatar
CyberJet CyberJet is offline
Real Name: Ramon
BSD Student
 
Join Date: Feb 2009
Location: Miami FL
Posts: 98
Default

Greetings to All,

And the RFCs have it! RFC 2373 states:

RFC 2373 IPv6 Addressing Architecture July 1998


FEDC:BA98:7654:3210:FEDC:BA98:7654:3210

1080:0:0:0:8:800:200C:417A

So the answer is D and the Absolute BSD is wrong!
__________________
Speak softly and carry BSD!
Reply With Quote
  #6   (View Single Post)  
Old 7th May 2013
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

C'mon guys, do the math. 4 hexidecimal = 16 bits. We all agree that ipv6 addresses are 128 bits in length, so 128/16 = 8.

I don't know if these are typos, but I suspect so, as the hex7-page43 image linked by the OP shows 112 bits, not 128.

Seems more an editing fail than an RFC fail.
__________________
Linux/Network-Security Engineer by Profession. OpenBSD user by choice.
Reply With Quote
Reply

Tags
ipv6

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
With World IPv6 Launch, IPv6 on by default will be the new normal J65nko News 0 29th March 2012 07:59 PM
75% of Linux code now written by paid developers J65nko News 4 22nd January 2010 03:42 AM
How to find available IP addresses? bigb89 Programming 16 20th August 2008 07:32 PM
Managing IP Addresses bigb89 FreeBSD General 8 28th May 2008 12:09 AM
abbreviating email addresses? ocicat Feedback and Suggestions 9 22nd May 2008 12:21 AM


All times are GMT. The time now is 07:41 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick