Understand:
There are several types of IPV6 unicast addresses, including global unicast addresses, link-local addresses, and site-local addresses.
1. The global unicast address is equivalent to the IPV4 public address and is provided to the network service provider.
This type of address allows the aggregation of route prefixes, thereby limiting the number of global routing table entries.
2. Link-local address for Neighbor Discovery protocol and stateless auto-configuration in link-local node
Communication between the. Data messages that use link-local addresses as source or destination addresses are not forwarded
to other links.
3. The site-local address is similar to the private address in IPv4. Use a site-local address as the source or target
Address will not be forwarded to a site other than the one on this site (the equivalent of a private network).
Address type format prefix (binary) IPv6 prefix identifies the unicast address unspecified address 00 ... 0
(BITS)::/128 loopback address 00 ... 1 (BITS):: 1/128
Link-Local address 1111111010FE80::/10
Site-Local address 1111111011FEC0::/10
Global unicast address other forms-multicast address 11111111FF00::/8
Anycast addresses are allocated from the unicast address space, using the format of the unicast address
Configure IPv6 Address: (Environment: ENSP)
First step: Start the IPv6 function (System mode): IPv6
Step two: Start the IPv6 function in interface mode: IPv6 enable
Manually configuring IPv6 link-local addresses
Interface mode: IPv6 address Fe80::1 link-local
Automatically configure IPv6 link-local addresses
Interface mode: IPv6 address Auto link-local
Manually configure IPv6 global unicast addresses
Interface mode: IPv6 address 2001::1/64
Automatic configuration of interface mode with the prefix (network number) specified
Interface mode: IPv6 address 2001::/64 eui-64 (meet EUI-64 Standard)
Configuration instance:
R1 configuration:
[Huawei]display current-configuration
#
sysname Huawei
#
IPv6
#
Aaa
Authentication-scheme Default
Authorization-scheme Default
Accounting-scheme Default
Domain default
Domain Default_admin
Local-user Admin Password cipher oocm4m ($F 4ajun1vmeibnuw#
Local-user Admin Service-type http
#
Firewall Zone Local
Priority 16
#
Interface ethernet0/0/0
IPv6 enable
IPv6 address Fe80::1 link-local
#
Interface ETHERNET0/0/1
IPv6 enable
IPv6 address 2001::1/64
#
Interface serial0/0/0
Link-protocol PPP
#
Interface SERIAL0/0/1
Link-protocol PPP
#
Interface SERIAL0/0/2
Link-protocol PPP
#
Interface SERIAL0/0/3
Link-protocol PPP
#
Interface gigabitethernet0/0/0
#
Interface GIGABITETHERNET0/0/1
#
Interface GIGABITETHERNET0/0/2
#
Interface GIGABITETHERNET0/0/3
#
Wlan
#
Interface NULL0
#
User-interface Con 0
User-interface vty 0 4
User-interface vty 16 20
#
Return
R2 configuration:
[Huawei]display CU
[Huawei]display current-configuration
#
sysname Huawei
#
IPv6
#
Aaa
Authentication-scheme Default
Authorization-scheme Default
Accounting-scheme Default
Domain default
Domain Default_admin
Local-user Admin Password cipher oocm4m ($F 4ajun1vmeibnuw#
Local-user Admin Service-type http
#
Firewall Zone Local
Priority 16
#
Interface ethernet0/0/0
IPv6 enable
IPv6 Address Auto Link-local
#
Interface ETHERNET0/0/1
#
Interface serial0/0/0
Link-protocol PPP
#
Interface SERIAL0/0/1
Link-protocol PPP
#
Interface SERIAL0/0/2
Link-protocol PPP
#
Interface SERIAL0/0/3
Link-protocol PPP
#
Interface gigabitethernet0/0/0
#
Interface GIGABITETHERNET0/0/1
#
Interface GIGABITETHERNET0/0/2
#
Interface GIGABITETHERNET0/0/3
#
Wlan
#
Interface NULL0
#
User-interface Con 0
User-interface vty 0 4
User-interface vty 16 20
#
Return
R3 configuration:
[Huawei]display current-configuration
#
sysname Huawei
#
IPv6
#
Aaa
Authentication-scheme Default
Authorization-scheme Default
Accounting-scheme Default
Domain default
Domain Default_admin
Local-user Admin Password cipher oocm4m ($F 4ajun1vmeibnuw#
Local-user Admin Service-type http
#
Firewall Zone Local
Priority 16
#
Interface ethernet0/0/0
IPv6 enable
IPv6 address 2001::/64 eui-64
#
Interface ETHERNET0/0/1
#
Interface serial0/0/0
Link-protocol PPP
#
Interface SERIAL0/0/1
Link-protocol PPP
#
Interface SERIAL0/0/2
Link-protocol PPP
#
Interface SERIAL0/0/3
Link-protocol PPP
#
Interface gigabitethernet0/0/0
#
Interface GIGABITETHERNET0/0/1
#
Interface GIGABITETHERNET0/0/2
#
Interface GIGABITETHERNET0/0/3
#
Wlan
#
Interface NULL0
#
User-interface Con 0
User-interface vty 0 4
User-interface vty 16 20
#
Return
[Huawei]
The results of the e0/0/0 clutch in R1:
In R1 E0/0/1 clutch results:
By comparing the results of the above packet capture with the MAC address of each interface, we can see that the IPv6 address (including link-local address, global unicast address) is in accordance with the EUI-64 standard for everything.
IPV6 Address Understanding and configuration