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