Get the App
SLTechnology News&Howtos  ›  Network Security  › 

57. Introduction and basic configuration of IPv6

Shulou Source: shulou.com Published: 2022-06-01 03:43:03 10月06日 Update

1. Introduction to IPv6

IPv6 addresses are 128 bits long, with a total of 2 ^ 128 addresses.

IPv6 address format: x:x:x:x:x:x:x:x, where x is hexadecimal.

IPv6 simplification:

2001:0DB8:010F:0001:0000:0000:0000:0D0C removes leading 0

2001: DB8:10F: 1: 0: 0: 0: D0C multiple consecutive zeros can be replaced by::

2001: DB8:10F: 1:: D0C

2001:0DB8:0000:0000:FFFF:0000:0000:0D0C

Can be expressed as

2001:DB8::FFFF:0:0:0D0C or 2001:0DB8:0:00:FFFF::0D0C

But it cannot be expressed as

2001:0DB8::FFFF::0D0C

Because I don't know how many zeros are represented by the two:: respectively.

Example:

FF02:0:0:0:0:0:0:1 FF02::1

FF15:0:0:0:0:0:1:C001 FF15::1:C001

0:0:0:0:0:0:0:1:: 1

0:0:0:0:0:0:0:0::

IPv6 accesses web pages by address format: http://[2001:DF0:1003::F]:8080/index.html

IPv6 address classification

Unicast Unicast (one to one)

Aggregate Global Unicast Addresses (public network) 2000 VuGV 3

Link-local Addresses FE80::/10

Site-local Addresses (private network) FEC0::/10

Unspecified:: / 128

Loopback:: 1/128

IPv4 compatible directly converts decimal to hexadecimal

Multicast Multicast (one-to-many) FF00::/8

Anycast Anycast (nearest pair)

EUI-64 (assuming the MAC address is 00:90:27:17:FC:0F)

Step 1: split the MAC address in two and insert FFFE in the middle

00:90:27:FF:FE:17:FC:0F

Part II: interchange the seventh bit 0 and 1 of the first byte

00000000:90:27:FF:FE:17:FC:0F

00000010:90:27:FF:FE:17:FC:0F

02::90:27:FF:FE:17:FC:0F

The last 24 bits of the Solicited-Node Multicast Address FF02::1:xx:xxxx are the last 24 bits of the IPv6 unicast address

Each IPv6 unicast address corresponds to an Solicited-Node Multicast Address address

The next hop of the route is Link-local Addresses.

2. Experimental topology

3. IPv6 configure Link-local Addresses address (FE80::/10)

R1 configuration

Interface FastEthernet0/0

Ipv6 enable

R2 configuration

Interface FastEthernet0/0

Ipv6 enable

4. IPv6 is configured with Aggregate Global Unicast Addresses (2000 VRV)

R1 configuration

Interface FastEthernet0/0

Ipv6 address 2000::1/64

R2 configuration

Interface FastEthernet0/0

Ipv6 address 2000::2/64

Tags: Address configuration binary format introduction one divided into two one to one two examples preamble multiple byte topology web page routing length two public network classification experiment Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Huawei MariaDB NVidia Redmi