How to View ipv6 address ranges

Source: Internet
Author: User
What is the ipv6 address range? I don't know the ipv6 address range. for example, the following two address ranges refer to which address? 2406: 6200: | 32240e: 100: | 24. why are the ip address libraries separated? is there any problem in the same table? ------ Solution -------------------- these are all in hexadecimal notation, two bytes one :. : It indicates that the next step is "0. mysql". how can I check the ipv6 address range?
I will not look at the ipv6 address range. for example, the following two address ranges refer to from which address to which address?
2406: 6200: | 32
240e: 100: | 24
Why are the ip address libraries separated in normal times? is there any problem in the same table?

------ Solution --------------------
These are all in hexadecimal notation, two bytes one :.

: Indicates that the following values are all 0.

Mysql can still be operated. unhex, substring, and replace, depending on your needs.
------ Solution --------------------
IP addresses can be compared by strings. to calculate each IP address in the range, gmp/bc can be used as a large number Operation. I am talking about PHP, can you write an example as needed?
------ Solution --------------------
PHP code
[User: root Time: 09: 54: 16 Path:/home/liangdong/php] $ php ip. php 2406: 6200: 0000: 0000: 0000: 0000: 0000: 0000 [User: root Time: 09: 54: 17 Path:/home/liangdong/php] $ cat ip. php
  
------ Solution --------------------
Discussion

PHP code
[User: root Time: 09: 54: 16 Path:/home/liangdong/php] $ php ip. php
2406: 6200: 0000: 0000: 0000: 0000: 0000: 0000 [User: root Time: 09: 54: 17 Path:/home/liangdong/php] $ cat ip. php
$ Ipv6_start = "2 ......

------ Solution --------------------
2400: ff00: | 32
It should be from
2400: ff00: 0000: 0000: 0000: 0000: 0000: 0000
-
2400: ff00: 0000: 0000: 0000: 0000: ffff
The CIDR behind is the number of digits, and the 32-bit is the ffff: ffff


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.