0% found this document useful (0 votes)
19 views38 pages

19 IPv6 Basics

Ipv6

Uploaded by

j02527382
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views38 pages

19 IPv6 Basics

Ipv6

Uploaded by

j02527382
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 38

IPv6 Basics

Page 1 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Foreword
⚫ In the 1980s, the Internet Engineering Task Force (IETF) released RFC 791 – Internet Protocol,
which marks the standardization of IPv4. In the following decades, IPv4 has become one of the
most popular protocols. Numerous people have developed various applications based on IPv4
and made various supplements and enhancements to IPv4, enabling the Internet to flourish.
⚫ However, with the expansion of the Internet and the development of new technologies such as
5G and Internet of Things (IoT), IPv4 faces more and more challenges. It is imperative to replace
IPv4 with IPv6.
⚫ This course describes the reasons for IPv4-to-IPv6 transition and basic IPv6 knowledge.

Page 2 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Objectives
⚫ On completion of this course, you will be able to:
▫ Summarize the advantages of IPv6 over IPv4.

▫ Describe the basic concepts of IPv6.

▫ Describe the formats and functions of IPv6 packet headers.

▫ Describe the IPv6 address format and address types.

▫ Describe the method and basic procedure for configuring IPv6 addresses.

▫ Configure IPv6 addresses and IPv6 static routes.

Page 3 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. IPv6 Overview

2. IPv6 Address Configuration

3. Typical IPv6 Configuration Examples

Page 4 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IPv4 Status
⚫ On February 3, 2011, the Internet Assigned Numbers Authority (IANA) announced even allocation of its last 4.68
million IPv4 addresses to five Regional Internet Registries (RIRs) around the world. The IANA thereafter had no
available IPv4 address.

APNIC: announced IPv4 address LACNIC: announced IPv4 address AFRINIC: announced IPv4 address
exhaustion exhaustion exhaustion

2011.4 2012.9 2014.6 2015.9 2019.11.25 Future

?
RIPE: announced IPv4 address ARIN: announced IPv4
IPv6
exhaustion address exhaustion

Page 5 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Why IPv6?
IPv4 IPv6

Exhausted public IP addresses Nearly infinite address space

Improper packet header design Hierarchical address allocation

Large routing table, leading to inefficient Plug-and-play


table query
vs. Simplified packet header
Dependency on ARP causes broadcast IPv6 security features
storms
Integrity of E2E communication
... Support for mobility

Enhanced QoS features

...

Page 6 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IPv6 Advantages
Nearly infinite address The 128-bit address length provides numerous addresses, meeting the requirements of emerging services such as the IoT and
space facilitating service evolution and expansion.

Hierarchical address IPv6 addresses are allocated more properly than IPv4 addresses, facilitating route aggregation (reducing the size of IPv6 routing
structure tables) and fast route query.

Plug-and-play IPv6 supports stateless address autoconfiguration (SLAAC), simplifying terminal access.

Simplified packet The simplified packet header improves forwarding efficiency. New applications can be supported using extension headers, which
header facilitate the forwarding processing of network devices and reduce investment costs.

IPsec, source address authentication, and other security features ensure E2E security, preventing NAT from damaging the
Security features integrity of E2E communication.

Mobility Greatly improves real-time communication and performance of mobile networks.

Enhanced QoS features A Flow Label field is additionally defined and can be used to allocate a specific resource for a special service and data flow.

Page 7 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Basic IPv6 Header
⚫ An IPv6 header consists of a mandatory basic IPv6 header and optional extension headers.
⚫ The basic header provides basic information for packet forwarding and is parsed by all devices on a forwarding path.

IPv4 packet header (20–60 bytes) Basic IPv6 header (40 bytes)

Version IHL ToS Total Length Traffic


Version Flow Label
Class
Fragment
Identification Flags Next
Offset Payload Length Hop Limit
Header
TTL Protocol Head Checksum
Source Address Source Address

Destination Address
Destination Address
Options Padding

Name/Location
Deleted Reserved New
changed

Page 9 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IPv6 Extension Header
Traffic • Extension Header Length: 8 bits long. This field
Version Flow Label
Class indicates the extension header length excluding the
length of the Next Header field.
Next 40 • Extension Header Data: variable length. This field
Payload Length Hop Limit
Header bytes indicates the payload of the extension headers and is
a combination of a series of options and padding
Source Address (128 bits) fields.
Destination Address (128 bits)
Basic IPv6 Header
Next Header Extension Header Length Next Header=0 (Hop-by-Hop Options Header)
Variable
length IPv6 Hop-by-Hop Options Header
Extension Header Data Next Header=51 (Authentication Header)
IPv6 Authentication Header
Next Header Extension Header Length Variable Next Header=6 (TCP)
Extension Header Data length
TCP Data Segment
... IPv6 packet example
Data

Page 10 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IPv6 Packet Processing Mechanism
Basic IPv6 Header Basic IPv6 Header Basic IPv6 Header
Next Header=0 (Hop-by-Hop Options Next Header=0 (Hop-by-Hop Options Next Header=0 (Hop-by-Hop Options
Header) Header) Header)
IPv6 Hop-by-Hop Options Header IPv6 Hop-by-Hop Options Header IPv6 Hop-by-Hop Options Header
Next Header=51 (Authentication Header) Next Header=51 (Authentication Header) Next Header=51 (Authentication Header)
IPv6 Authentication Header IPv6 Authentication Header IPv6 Authentication Header
Next Header=6 (TCP) Next Header=6 (TCP) Next Header=6 (TCP)
TCP Data Segment TCP Data Segment TCP Data Segment

Process the basic header and Hop-by-


Constructs an IPv6 Hop Options header.
Processes all packet
packet as required. headers.

Source router Intermediate router Intermediate router Destination router

• The length of the basic packet header is fixed, improving the


forwarding efficiency.
• The extension headers meet special requirements.

Page 12 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IPv6 Address
⚫ The length of an IPv6 address is 128 bits. Colons are generally used to divide the IPv6 address into eight segments.
Each segment contains 16 bits and is expressed in hexadecimal notation.

16 bits 16 bits 16 bits 16 bits 16 bits 16 bits 16 bits 16 bits

2001 : 0DB8 : 0000 : 0000 : 0008 : 0800 : 200C : 417A

The letters in an IPv6 address are case insensitive. For example, A is equivalent to a.

• Similar to an IPv4 address, an IPv6 address is expressed in the format of IPv6 address/mask length.
▫ Example: 2001:0DB8:2345:CD30:1230:4567:89AB:CDEF/64

IPv6 address: 2001:0DB8:2345:CD30:1230:4567:89AB:CDEF

Subnet number: 2001:0DB8:2345:CD30::/64

Page 13 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IPv6 Address Abbreviation Specifications
⚫ For convenience, IPv6 can be abbreviated according to the following rules.
Abbreviation Specifications Abbreviation Examples

2001 : 0DB8 : 0000 : 0000 : 0008 : 0800 : 200C : 417A Before 0000:0000:0000:0000:0000:0000:0000:0001 After

The leading 0s in each 16-bit segment can be omitted. However, if all bits in a ::1
16-bit segment are 0s, at least one 0 must be reserved. The tailing 0s cannot be
omitted.
Before 2001:0DB8:0000:0000:FB00:1400:5000:45FF After
2001:DB8::FB00:1400:5000:45FF
2001 : DB8 : 0 : 0 : 8 : 800 : 200C : 417A
If one or more consecutive 16-bit segments contain only 0s, a double colon (::) Before 2001:0DB8:0000:0000:0000:2A2A:0000:0001 After
can be used to represent them, but only one :: is allowed in an entire IPv6 2001:DB8::2A2A:0:1
address.
Before 2001:0DB8:0000:1234:FB00:0000:5000:45FF After
2001 : DB8 :: 8 : 800 : 200C : 417A
2001:DB8::1234:FB00:0:5000:45FF
If an abbreviated IPv6 address contains two double colons (::), the IPv6 address
cannot be restored to the original one. or 2001:DB8:0:1234:FB00::5000:45FF

Page 14 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IPv6 Address Classification
⚫ IPv6 addresses are classified into unicast, multicast, and anycast addresses according to the
IPv6 address prefix. No broadcast addresses
are defined in IPv6.
IPv6 addresses

Multicast Unicast Anycast


addresses addresses addresses

Global unicast Unique local Link-local Special IPv6 Other unicast


address (GUA) address (ULA) address (LLA) address addresses...
2000::/3 FD00::/8 FE80::/10

Page 15 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IPv6 Unicast IPv6 Multicast IPv6 Anycast
Address Address Address

IPv6 Unicast Address Format


⚫ An IPv6 unicast address is composed of two parts:
▫ Network prefix: consists of n bits and is parallel to the network ID of an IPv4 address.

▫ Interface ID: consists of (128 – n) bits and is parallel to the host ID of an IPv4 address.

⚫ Common IPv6 unicast addresses, such as GUAs and LLAs, require that the network prefix and
interface ID be 64 bits.

n bits 128 – n bits

Network prefix Interface ID

Page 16 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IPv6 Unicast IPv6 Multicast IPv6 Anycast
Address Address Address

Interface ID of an IPv6 Unicast Address


⚫ 3 methods to generate an interface ID:
▫ Manual configuration

▫ Automatic generation by the system

▫ Using the IEEE 64-bit extended unique identifier (EUI-64) standard

⚫ EUI-64 is most commonly used. It converts the MAC address of an interface into an IPv6 interface ID.

MAC address (hexadecimal) 3C-52-82-49-7E-9D

MAC address (binary) 00111100-10010010-10000010 - 01001001-01111110-10011101

1 Bit 7 inversion 2 Insert FFFE

EUI-64 ID
(binary) 00111110-10010010-10000010-11111111-11111110-01001001-01111110-10011101

EUI-64 ID (hexadecimal) 3E-52-82-FF-FE-49-7E-9D

Page 17 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IPv6 Unicast IPv6 Multicast IPv6 Anycast
Address Address Address

Common IPv6 Unicast Address - GUA


⚫ A GUA is also called an aggregatable GUA. This type of address is globally unique and is used by hosts that need to
access the Internet. It is equivalent to a public IPv4 address.

3 bits 45 bits 16 bits 64 bits


IPv6
Global routing Subnet
001
prefix ID
Interface ID Internet
Network address Host address

• The network address and interface ID of a GUA are each


generally 64 bits long.
• Global routing prefix: is assigned by a provider to an
organization and is generally at least 45 bits.
• Subnet ID: An organization can divide subnets based on
network requirements.
• Interface ID: identifies a device's interface. 2001:1::1/64 2001:2::1/64

Page 18 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IPv6 Unicast IPv6 Multicast IPv6 Anycast
Address Address Address

Common IPv6 Unicast Address - ULA


⚫ A ULA is a private IPv6 address that can be used only on an intranet. This type of address cannot be routed on an
IPv6 public network and therefore cannot be used to directly access a public network.

8 bits 40 bits 16 bits 64 bits IPv6


1111 1101 Global ID
Subnet
Interface ID Internet
ID

Generated using a
pseudo-random algorithm
• ULAs use the FC00::/7 address segment, among which, only
the FD00::/8 address segment is currently used. FC00::/8 is
reserved for future expansion.
• Although a ULA is valid only in a limited range, it also has a
globally unique prefix (generated using a pseudo-random
algorithm, low conflict probability).
FD00:1AC0:872E::1/64 FD00:1AC0:872E::2/64 FD00:2BE1:2320::1/64

Page 19 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IPv6 Unicast IPv6 Multicast IPv6 Anycast
Address Address Address

Common IPv6 Unicast Address - LLA


⚫ An LLA is another type of IPv6 address with limited application scope. The valid range of the LLA is the local link, with
the prefix of FE80::/10.

IPv6
10 bit 54 bit 64 bit
Internet
1111 1110 10 0 Interface ID

Fixed at 0

• An LLA is used for communication on a single link, such as during IPv6


SLAAC and IPv6 neighbor discovery.

• Data packets with the source or destination IPv6 address being an LLA
are not forwarded out of the originating link. In other words, the valid
scope of an LLA is the local link.

• Each IPv6 interface must have an LLA. Huawei devices support


automatic generation and manual configuration of LLAs. FE80::1 FE80::2 FE80::3 FE80::4

Page 20 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IPv6 Unicast IPv6 Multicast IPv6 Anycast
Address Address Address

IPv6 Multicast Address


⚫ An IPv6 multicast address identifies multiple interfaces and is generally used in one-to-many communication scenarios.

⚫ An IPv6 multicast address can be used only as the destination address of IPv6 packets.

Multicast
source
8 bits 4 bits 4 bits 80 bits 32 bits Multicast
11111111 Flags Scope Reserved (must be 0) Group ID Network

• Flags: indicates a permanent or transient multicast group.


• Scope: indicates the multicast group scope.
• Group ID: indicates a multicast group ID.

Non-receiver Non-receiver Non-receiver Receiver Receiver

Page 21 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IPv6 Unicast IPv6 Multicast IPv6 Anycast
Address Address Address

Solicited-Node Multicast Address


⚫ If a node has an IPv6 unicast or anycast address, a solicited-node multicast address is generated for the address, and
the node joins the corresponding multicast group. This address is used for neighbor discovery and duplicate address
detection (DAD). A solicited-node multicast address is valid only on the local link.

64 bits 64 bits
IPv6 unicast or
anycast address IPv6 Address Prefix Interface ID

24 bits
copied
Corresponding
FF02 0000 0000 0000 0000 0001 FF
solicited-node
multicast address 104 bits (fixed prefix) 24 bits

Page 22 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IPv6 Unicast IPv6 Multicast IPv6 Anycast
Address Address Address

IPv6 Anycast Address


⚫ An anycast address identifies a group of network interfaces, which usually belong to different nodes. An anycast
address can be used as the source or destination address of IPv6 packets.

Shortest path for PC1 to access the web server

PC1 Web server 1

PC1 and PC2 need to


access Use the same IPv6
web services Internet address
provided by 2001:0DB8::84C2.
2001:0DB8::84C2.

PC2 Web server 2

Shortest path for PC2 to access the web server

Page 23 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. IPv6 Overview

2. IPv6 Address Configuration

3. Typical IPv6 Configuration Examples

Page 24 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IPv6 Addresses of Hosts and Routers
⚫ The unicast IPv6 addresses and multicast addresses of hosts and routers are typically as follows:

Network

LLA of the network adapter FE80::2E0:FCFF:FE35:7287 LLA of the network adapter FE80::2E0:FCFF:FE99:1285

GUA assigned by an administrator 2001::2


GUA assigned by an administrator 2001::1
Loopback address ::1
Loopback address ::1
Multicast addresses of all nodes FF01::1 and FF02::1
Multicast addresses of all nodes FF01::1 and FF02::1 Multicast addresses of all routers FF01::2 and FF02::2

Solicited-node multicast address Solicited-node multicast address


FF02::1:FF35:7287 FF02::1:FF99:1285
corresponding to each unicast corresponding to each unicast
FF02::1:FF00:1 FF02::1:FF00:2
address of the network adapter address of the network adapter

Page 25 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Service Process of IPv6 Unicast Addresses
⚫ Before sending IPv6 packets, an interface undergoes address configuration, DAD, and address resolution. During this
process, the Neighbor Discovery Protocol (NDP) plays an important role.
Similar to ARP requests in IPv4, ICMPv6
GUAs and LLAs are the most common IPv6 messages are used to generate the
unicast addresses on an interface. Multiple DAD is similar to gratuitous ARP in IPv4 and is used to
detect address conflicts. mappings between IPv6 addresses and data
IPv6 addresses can be configured on one link layer addresses (usually MAC
interface. addresses).

Address IPv6
DAD Address resolution data forwarding
configuration

GUA LLA

Manual Manual
configuration configuration

SLAAC (NDP) Generated by the system

Stateful address autoconfiguration Dynamically generated using EUI-


(DHCPv6) 64

Page 26 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
NDP
⚫ NDP is defined in RFC 2461, which was replaced by RFC 4861.
⚫ NDP uses ICMPv6 messages to implement its functions.
ICMPv6 messages used by NDP

SLAAC Prefix ICMPv6 Type Message Name


advertisement 133 Router Solicitation (RS)
NDP DAD 134 Router Advertisement (RA)

Address resolution 135 Neighbor Solicitation (NS)


136 Neighbor Advertisement (NA)

Mechanism RS 133 RA 134 NS 135 NA 136


Address resolution √ √
Prefix advertisement √ √
DAD √ √

Page 27 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Dynamic Address Address
DAD
Configuration Resolution

Dynamic IPv6 Address Configuration


PC (DHCPv6 client) Stateful address DHCPv6 server
configuration

DHCPv6 interaction
• Through DHCPv6 message exchange, the DHCPv6 server automatically configures IPv6 addresses/prefixes and other network
configuration parameters (such as DNS, NIS, and SNTP server addresses).

PC Stateless address Router


configuration
2000::2E0:FCFF:FE35:7287/64 2000::1/64

ICMPv6 RA
(My interface address prefix is 2000::/64.)
• The PC generates a unicast address based on the address prefix in the RA and the locally generated 64-bit interface ID (for example,
using EUI-64).
• Only IPv6 addresses can be obtained. Parameters such as NIS and SNTP server parameters cannot be obtained. DHCPv6 or manual
configuration is required to obtain other configuration information.

Page 28 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Dynamic Address Address
DAD
Configuration Resolution

DAD
⚫ Regardless of how an IPv6 unicast address is configured, a host or router:
▫ Performs DAD through ICMPv6 messages.

▫ Uses a unicast address only after passing the DAD procedure.


2001::FFFF/64 2001::FFFF/64
5489-98C8-1111 5489-9850-2222

ICMPv6 NS ICMPv6 NA
PC R1
1 2
New online Source 5489-98C8-1111 Source 5489-9850-2222 Already online
device Destination 3333-FF00-FFFF Destination 3333-0000-0001 device
Source :: Source 2001::FFFF
Destination FF02::1:FF00:FFFF Destination FF02::1

ICMPv6 (Type135) NS ICMPv6 (Type136) NA

Target: 2001::FFFF
Target: 2001::FFFF
MAC 5489-9850-2222

3 [DUPLICATE]

Page 30 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Dynamic Address Address
DAD
Configuration Resolution

Address Resolution
⚫ IPv6 uses ICMPv6 NS and NA messages to replace the address resolution function of ARP in IPv4.
2001::1/64 2001::2/64
5489-98C8-1111 5489-9850-2222
Requests the MAC address
corresponding to 2001::2/64.
PC 1 2 R1
Responds

Source 5489-98C8-1111 Source 5489-9850-2222


Destination 3333-FF00-0002 Destination 5489-98C8-1111

Source 2001::1 Source 2001::2


Destination FF02::1:FF00:2 Destination 2001::1
The destination address
is the solicited-node ICMPv6 (Type135) NS ICMPv6 (Type136) NA
multicast address
corresponding to ICMPv6 DATA ICMPv6 DATA
2001::2. Source MAC Target MAC
5489-98C8-1111 5489-9850-2222

Bidirectionally generates MAC address entries of


IPv6 neighbors.

Page 31 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. IPv6 Overview

2. IPv6 Address Configuration

3. Typical IPv6 Configuration Examples

Page 32 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Basic IPv6 Configurations (1)
1. Enable IPv6.

[Huawei] ipv6
Enable the device to send and receive IPv6 unicast packets, including local IPv6 packets.
[Huawei-GigabitEthernet0/0/0] ipv6 enable
Enable IPv6 on the interface in the interface view.
2. Configure an LLA for the interface.
[Huawei-GigabitEthernet0/0/0] ipv6 address ipv6-address link-local
[Huawei-GigabitEthernet0/0/0] ipv6 address auto link-local
Configure an LLA for the interface manually or automatically in the interface view.
3. Configure a GUA for the interface.
[Huawei-GigabitEthernet0/0/0] ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }
[Huawei-GigabitEthernet0/0/0] ipv6 address auto { global | dhcp }
Configure a GUA for the interface manually or automatically (stateful or stateless) in the interface view.

Page 33 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Basic IPv6 Configurations (2)
4. Configure an IPv6 static route.

[Huawei] ipv6 route-static dest-ipv6-address prefix-length { interface-type interface-number [ nexthop-ipv6-address ] |


nexthop-ipv6-address } [ preference preference ]

5. Display IPv6 information on an interface.

[Huawei] display ipv6 interface [ interface-type interface-number | brief ]

6. Display neighbor entry information.

[Huawei] display ipv6 neighbors

7. Enable an interface to send RA messages.

[Huawei-GigabitEthernet0/0/0] undo ipv6 nd ra halt

By default, a Huawei router's interfaces do not send ICMPv6 RA messages. In this situation, other devices on the links
connected to the interfaces cannot perform SLAAC.
To perform SLAAC, you need to manually enable the function of sending RA messages.
Page 34 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Example: Configuring a Small IPv6 Network (1)
R3
GE 0/0/0 1. Enable IPv6 globally and on related interfaces of R1, R2, R3, and
Using DHCPv6 R4, and enable the interfaces to automatically generate LLAs. The
2002::1/64
GE 0/0/0 following uses R1 configurations as an example.

GE 1/0/0
R2 2001::2/64 [R1]ipv6
GE 0/0/0
[R1]interface GigabitEthernet 0/0/0
GE 0/0/1 2001::1/64
R1 [R1-GigabitEthernet0/0/0]ipv6 enable
2003::1/64
[R1-GigabitEthernet0/0/0]ipv6 address auto link-local
GE 0/0/0
SLAAC
R4 2. Configure static IPv6 GUAs on the related interfaces of R1 and
IPv6 network
• Configuration Requirements
R2.
[R1]interface GigabitEthernet 0/0/0
▫ Connect R1 and R2 through interfaces with static IPv6
[R1-GigabitEthernet0/0/0]ipv6 address 2001::1 64
addresses.
▫ Configure R2 as a DHCPv6 server to assign a GUA to GE 0/0/0
of R3. [R2]interface GigabitEthernet 1/0/0
[R2-GigabitEthernet1/0/0]ipv6 address 2001::2 64
▫ Enable R2 to send RA messages, and configure GE 0/0/0 of R4 [R2-GigabitEthernet1/0/0]interface GigabitEthernet 0/0/0
to automatically perform SLAAC based on the RA messages [R2-GigabitEthernet0/0/0]ipv6 address 2002::1 64
sent by R2. [R2-GigabitEthernet0/0/0]interface GigabitEthernet 0/0/1
▫ Configure static routes to implement mutual access between [R2-GigabitEthernet0/0/1]ipv6 address 2003::1 64
the devices.

Page 35 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Example: Configuring a Small IPv6 Network (2)
R3
GE 0/0/0 3. Configure R2 as a DHCPv6 server. Configure the related
Using DHCPv6
2002::1/64 interface of R3 to obtain a GUA using DHCPv6.
GE 0/0/0

GE 1/0/0 [R2]dhcp enable


R2 2001::2/64 GE 0/0/0
[R2]dhcpv6 pool pool1
GE 0/0/1 2001::1/64
R1
2003::1/64 [R2-dhcpv6-pool-pool1]address prefix 2002::/64
GE 0/0/0 [R2]interface GigabitEthernet 0/0/0
SLAAC
R4 [R2-GigabitEthernet0/0/0]dhcpv6 server pool1
IPv6 network
• Configuration Requirements
▫ Connect R1 and R2 through interfaces with static IPv6 [R3]dhcp enable
addresses. [R3]interface GigabitEthernet 0/0/0
▫ Configure R2 as a DHCPv6 server to assign a GUA to GE 0/0/0
[R3-GigabitEthernet0/0/0]ipv6 address auto dhcp
of R3.
▫ Enable R2 to send RA messages, and configure GE 0/0/0 of R4
to automatically perform SLAAC based on the RA messages
sent by R2.
▫ Configure static routes to implement mutual access between
the devices.

Page 36 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Example: Configuring a Small IPv6 Network (3)
R3
GE 0/0/0
Using DHCPv6
4. Enable R2 to advertise RA messages. Enable R4 to obtain an
2002::1/64 address through SLAAC based on the RA messages sent by R2.
GE 0/0/0

GE 1/0/0
R2 [R2]interface GigabitEthernet 0/0/1
2001::2/64 GE 0/0/0
GE 0/0/1 2001::1/64 [R2-GigabitEthernet0/0/1]undo ipv6 nd ra halt
R1
2003::1/64
GE 0/0/0
SLAAC [R4]interface GigabitEthernet 0/0/0
R4
IPv6 network [R4-GigabitEthernet0/0/0]ipv6 address auto global
• Configuration Requirements
▫ Connect R1 and R2 through interfaces with static IPv6
addresses.
▫ Configure R2 as a DHCPv6 server to assign a GUA to GE 0/0/0
of R3.
▫ Enable R2 to send RA messages, and configure GE 0/0/0 of R4
to automatically perform SLAAC based on the RA messages
sent by R2.
▫ Configure static routes to implement mutual access between
the devices.

Page 37 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Example: Configuring a Small IPv6 Network (4)
R3
GE 0/0/0 5. Configure static routes on R4.
Using DHCPv6
2002::1/64
GE 0/0/0 [R4]ipv6 route-static 2001:: 64 2003::1
[R4]ipv6 route-static 2002:: 64 2003::1
GE 1/0/0
R2 2001::2/64 GE 0/0/0
GE 0/0/1 2001::1/64 6. Configure an aggregated static route on R1.
R1
2003::1/64
GE 0/0/0 [R1]ipv6 route-static 2002:: 15 2001::2
SLAAC
R4
IPv6 network
• Configuration Requirements 7. Configure a default route on R3.
▫ Connect R1 and R2 through interfaces with static IPv6
addresses. [R3]ipv6 route-static :: 0 2002::1
▫ Configure R2 as a DHCPv6 server to assign a GUA to GE 0/0/0
of R3.
▫ Enable R2 to send RA messages, and configure GE 0/0/0 of R4
to automatically perform SLAAC based on the RA messages
sent by R2.
▫ Configure static routes to implement mutual access between
the devices.

Page 38 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Quiz
1. What is the most abbreviated form of the IPv6 address 2001:0DB8:0000:0000:032A:0000:0000:2D70?

2. What is the process of SLAAC for IPv6 hosts?

Page 39 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Summary

Comparison IPv6 IPv4

Address length 128 bits 32 bits

A fixed 40-byte basic packet header+variable- A basic header containing the Options field to
Packet format
length extension headers support extended features

Address type Unicast, multicast, and anycast Unicast, multicast, and broadcast

Address
Static, DHCP, and SLAAC Static and DHCP
configuration

DAD ICMPv6 Gratuitous ARP

Address resolution ICMPv6 ARP

Page 40 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Thank You
www.huawei.com

Page 41 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.

You might also like