03 IPv6 Routing
03 IPv6 Routing
03 IPv6 Routing
Page 1 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Foreword
⚫ With the advent of the Internet of Everything (IoE), IPv4 address space is running
out. It is imperative that we replace IPv4 with IPv6. How to enable reachability
between nodes on an IPv6 network? Similar to an IPv4 network, an IPv6 network
also supports static routes and dynamic routing protocols.
⚫ IPv6 static routes and IPv4 static routes are configured in a similar way. To support
IPv6 networks, the Internet Engineering Task Force (IETF) defines Open Shortest
Path First OSPF version 3 (OSPFv3) and extends Intermediate System to
Intermediate System (IS-IS) and Border Gateway Protocol (BGP).
⚫ This course describes the concepts and configurations of IPv6 static routes and
common IPv6 dynamic routing protocols, including OSPFv3, IS-IS (IPv6), and BGP4+.
Page 2 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Objectives
⚫ On completion of this course, you will be able to:
Configure IPv6 static routes.
Analyze the differences between OSPFv3 and OSPFv2.
Configure basic OSPFv3 functions.
Describe the extension of IS-IS to IPv6.
Configure basic IS-IS (IPv6) functions.
Describe the extension of BGP to IPv6.
Configure basic BGP4+ functions.
Page 3 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. IPv6 Static Routes
Page 4 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IPv6 Static Routes
⚫ Similar to IPv4 static routes, IPv6 static routes are configured by the administrator and are
applicable to IPv6 networks with simple structures.
⚫ When creating an IPv6 static route, you can specify both the outbound interface and next
hop, or specify only the outbound interface or next hop.
Point-to-point (P2P) interface: specify the outbound interface.
Broadcast interface: specify the next hop.
Page 5 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• IPv6 static routes and IPv4 static routes differ mainly in destination and next-hop IP
addresses. IPv6 static routes use IPv6 addresses, whereas IPv4 static routes use IPv4
addresses.
Basic Commands for Configuring IPv6
Static Routes
1. Configure an IPv6 static route on the public network:
⚫ Precautions:
If no preference is set for a static route, the static route uses the default preference 60.
If both the destination address and prefix length are set to all zeros (:: 0), the default route (::/0) is configured.
If permanent is specified in a command of the undo form, permanent advertisement is disabled for the IPv6 static route, but
this route is not deleted.
Page 6 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ preference preference: specifies a preference value for the route. The value is an
integer ranging from 1 to 255. The default value is 60.
▫ inherit-cost: enables the static route to inherit the cost of the recursive route.
▫ description text: specifies a description for the static route. The value is a string
of 1 to 80 characters and can contain spaces.
Page 7 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. IPv6 Static Routes
Page 8 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Overview Implementation Packets LSAs
OSPFv3 Overview
⚫ OSPF is a link-state Interior Gateway Protocol (IGP) defined by the IETF. Currently, OSPF
version 2 (OSPFv2) is intended for IPv4, and OSPF version 3 (OSPFv3) is intended for IPv6.
⚫ OSPFv3 is mainly developed as a routing protocol independent of any specific network layer.
The internal routing information of OSPFv3 has been redesigned to serve this purpose.
OSPFv2 OSPFv3
IPv4 IPv6
Page 9 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Overview Implementation Packets LSAs
Page 10 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• Similarities also include support for special areas, support for virtual links, and multi-
process support.
BGP
Import of
external routes Autonomous system
boundary router
Area 0 ASBR (ASBR)
BR
Metro network core Area border router
District-county District-county District-county (ABR)
aggregation ABR aggregation ABR aggregation ABR
BR BR BR Backbone router
Area 1 Area 2 Area 3
(BR)
IR IR IR IR IR IR IR IR IR
Internal router (IR)
Page 11 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Overview Implementation Packets LSAs
R3 1 2 R3 LSDB
1 2
Path Routing
computation R3 3 R3 table
Page 12 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Overview Implementation Packets LSAs
Page 13 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Overview Implementation Packets LSAs
Page 14 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• On broadcast, NBMA, P2P, and P2MP networks, OSPFv2 uses IPv4 interface addresses
to identify neighbors. On virtual-link networks, however, OSPFv2 uses router IDs to
identify neighbors.
Overview Implementation Packets LSAs
OSPFv2 OSPFv3
R1 R2 R1 R2
• OSPFv2 runs between R1 and R2. • OSPFv3 runs between R1 and R2.
• The OSPFv2 neighbor relationship can be • GE0/0/1 of R1 and that of R2 reside on different
established between R1 and R2 only when the IP network segments, but R1 and R2 can still establish
addresses of GE0/0/1 on R1 and that on R2 belong an OSPFv3 neighbor relationship.
to the same network segment. • When OSPFv3 is running, two neighbors only need
• When OSPFv2 is running, two neighbors must be on to be on the same direct link.
the same network segment.
Page 15 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• IPv6 emphasizes the link concept. Multiple IPv6 prefixes that indicate different IP
subnets can be allocated to the same link. Different from IPv4, IPv6 allows two nodes
on the same link to communicate even if they do not have the same IPv6 prefix. This
greatly changes the OSPF behavior.
• In OSPFv3, the concepts "link" and "prefix" are frequently used, which however are
independent of each other. The terms "network" and "subnet" used in OSPFv2 should
be replaced with the term "link" when OSPFv3 is discussed.
Overview Implementation Packets LSAs
GE0/0/1 GE0/0/1
R6 R10
GE0/0/1 GE0/0/1 R8
R7
R3 R4
By using instance IDs, R2 and R3 can establish an Two OSPFv3 instances (for example, 1 and 2) can be
OSPFv3 neighbor relationship, and R1 and R4 can created on each of R7 and R8, and the two instances
also establish an OSPFv3 neighbor relationship. on the same link can be activated. In this way, Instance 1
neighbor relationships can be established between R7
and R8 in instance 1 as well as in instance 2. Instance 2
Page 16 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Page 17 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• OSPFv3 is a routing protocol running on IPv6 and uses link-local addresses to send
OSPFv3 packets.
▫ OSPFv3 assumes that each router has been assigned a link-local address on each
link. All OSPFv3 interfaces except virtual-link interfaces use the associated link-
local addresses as the source addresses to send OSPFv3 packets.
▫ A router learns the link-local addresses of all the other routers attached to the
same link and uses these addresses as the next-hop addresses to forward
packets.
OSPFv3 Packets
⚫ OSPFv3 and OSPFv2 have the same types of packets:
Hello, DD, LSR, LSU, and LSAck packets
⚫ Similar to OSPFv2, OSPFv3 uses a multicast address as the destination address of OSPF
packets.
OSPFv2 uses IPv4 multicast addresses:
◼ OSPF IGP routers use 224.0.0.5, whereas the OSPF IGP DR uses 224.0.0.6.
▫ Hello packet: Hello packets are sent periodically to discover, establish, and
maintain OSPFv3 neighbor relationships.
▫ DD packet: A DD packet describes the summary of a local LSDB and is used for
LSDB synchronization between two devices.
▫ LSR packet: An LSR packet is used to request the required LSAs from a neighbor.
An OSPFv3 device sends LSR packets to its neighbor only after DD packets have
been successfully exchanged between them.
• Version: indicates the OSPF version, and occupies 1 byte. For OSPFv3, the value is 3.
• Type: indicates the type of an OSPFv3 packet and occupies 1 byte. The following types
are available:
▫ 1: Hello packet
▫ 2: DD packet
▫ 3: LSR packet
▫ 4: LSU packet
▫ 5: LSAck packet
• Packet length: indicates the total length of an OSPFv3 packet, including the packet
header. The field occupies 2 bytes.
• Router ID: indicates the router ID of the router that originates the packet, and occupies
4 bytes.
• Area ID: indicates the area in which the packet is sent, and occupies 4 bytes.
• Checksum: uses the standard 16-bit IPv6 checksum and occupies 2 bytes.
Hello Packet
• Compared with OSPFv2 Hello packets, OSPFv3 Hello
⚫ OSPFv2 Hello packet format packets do not contain the Network Mask field but
Network Mask newly contain the Interface ID field, which identifies
the interface that sends the Hello packets.
HelloInterval Options Rtr Pri
RouterDeadInterval
• Changes:
▫ Interface ID: uniquely identifies the interface that sends
Designated Router
Hello packets to establish a connection, and occupies 4
Backup Designated Router bytes.
Neighbor ▫ Options: indicates the optional capabilities supported by a
device. This field is extended to 3 bytes. Compared with
OSPFv2, OSPFv3 adds the R bit and the V6 bit.
⚫ OSPFv3 Hello packet format ▪ R: indicates whether the originating router has the forwarding
capability. If the R bit is set to 0, the routing information
Interface ID
advertised by the originating router is not used for route
Rtr Pri Options calculation.
▪ V6: If the V6 bit is set to 0, the router or link does not
HelloInterval RouterDeadInterval
participate in IPv6 route calculation.
Designated Router ID
Backup Designated Router ID 0 13 18 24
Neighbor ID 0 AT / / / / DC R NP MC E V6
Page 20 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• Rot Pri: indicates the router's router priority, which is used for DR election. This field
occupies 1 byte, and the default value is 1. If it is set to 0, the router cannot participate
in DR or BDR election.
• Options: indicates the optional capabilities supported by the router and occupies 3
bytes.
▫ AT: indicates whether OSPFv3 authentication is supported. This option occupies 1
bit. If the AT bit is 1, an authentication tail field containing authentication
information is added to the OSPFv3 packet.
▫ DC: indicates whether the capability of processing demand circuits is supported.
This option occupies 1 bit.
▫ R: indicates whether the originator is a valid router. This option occupies 1 bit.
▫ NP: indicates whether the area to which the originating router interface belongs
is a not-so-stubby area (NSSA). This option occupies 1 bit.
▫ MC: indicates whether multicast data packets can be forwarded. This option
occupies 1 bit.
▫ E: indicates whether external routes are supported. This option occupies 1 bit.
▫ V6: indicates whether the router or link can participate in route calculation. This
option occupies 1 bit. If it is set to 0, the router or link does not participate in IPv6
route calculation.
• HelloInterval: indicates the interval at which Hello packets are sent. This field occupies
2 bytes.
Overview Implementation Packets LSAs
Page 22 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• LS Age: indicates the time elapsed since the LSA was generated, in seconds. This field
occupies 2 bytes. The value of this field continually increases regardless of whether the
LSA is transmitted over a link or saved in an LSDB.
• LS Type: indicates the LSA type. This field occupies 2 bytes. The high-order three bits of
this field identify generic properties of the LSA, whereas the remaining bits identify the
LSA's specific function.
▫ The U-bit indicates how to process an unknown LSA, that is, how a router that
does not recognize an LSA's function code should process this LSA.
▪ 0: The LSA is treated as if it had the link-local flooding scope.
▪ 1: The LSA is stored and flooded as if its type had been understood.
▫ The S2 and S1 bits indicate the flooding scope of the LSA.
▪ S2 S1 = 0 0: link-local flooding scope. The LSA is flooded only on the
originating link.
▪ S2 S1 = 0 1: area flooding scope. The LSA is flooded to all routers in the
originating area.
▪ S2 S1 = 1 0: AS flooding scope. The LSA is flooded to all routers in the local
AS.
▪ S2 S1 = 1 1: reserved.
• Link State ID: indicates a local 32-bit identifier, which is irrelevant to an IPv6 address,
and occupies 4 bytes. This field, together with the LS Type and Advertising Router
fields, describes an LSA in the OSPFv3 domain. Compared with OSPFv2, OSPFv3 does
not contain address information in the Link State ID field.
Overview Implementation Packets LSAs
Page 24 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• As shown in the figure, the U-bit in the LS Type field of the OSPFv3 LSA header is 0 by
default. Except the Type 5 and Type 8 LSAs, the other types of LSAs all have the area
flooding scope (S2 S1 = 0 1).
▫ Link-local flooding scope: LSAs, including link-LSAs, are flooded only on the local
link.
▫ Area flooding scope: The following types of LSAs are flooded in a single OSPF
area: router-LSA, network-LSA, inter-area-prefix-LSA, inter-area-router-LSA,
NSSA-LSA, and intra-area-prefix-LSA.
Page 25 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ W: wildcard receiver. The value 1 indicates that the router supports multicast
routes.
▫ V: virtual link. The value 1 indicates that the router that generates the LSA is at
one end of the virtual link.
▫ E: external. The value 1 indicates that the router that generates the LSA is an
ASBR.
▫ B: border. The value 1 indicates that the router that generates the LSA is an ABR.
▫ Options: indicates the optional capabilities supported by the router and occupies
3 bytes.
▪ NP: indicates whether the area to which the originating router interface
belongs is a not-so-stubby area (NSSA). This option occupies 1 bit.
Type 2: Network-LSA
⚫ OSPFv2 • Compared with OSPFv2, OSPFv3 network-LSAs
Network Mask do not contain the Network Mask field. Instead,
Attached Router OSPFv3 network-LSAs describe the link state of
Attached Router
the local network segment only by using the
...
router IDs of the attached routers. Network-LSAs
are generated by the DR and flooded in the area
to which the DR belongs.
⚫ OSPFv3 • Description of key fields:
0 Options ▫ Attached Router: indicates the router ID of each
Attached Router router connected to the same network segment,
Attached Router including the router ID of the DR, and occupies 4
...
bytes.
Page 27 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Page 28 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ Metric: indicates the cost of the route to the destination address and occupies 3
bytes.
▫ PrefixOptions: Each prefix advertised by an LSA has its own PrefixOptions field.
▪ P-bit: propagate bit. This bit needs to be set to 1 if the prefix of an NSSA
needs to be advertised by an ABR.
▪ MC-bit: multicast bit. If this bit is set to 1, the prefix is used for multicast
route calculation. Otherwise, the prefix is not used for multicast route
calculation.
▪ LA-bit: local address capability bit. If this bit is set to 1, the prefix is an
interface address of the router.
▪ NU-bit: no unicast capability bit. If this bit is set to 1, the prefix is not used
for IPv6 unicast route calculation.
• Note: The prefix length of the default route is 0. An ABR can also originate an inter-
area Type 3 LSA to advertise a default route to a stub area.
Type 4: Inter-Area-Router-LSA
⚫ OSPFv2: ASBR-summary-LSA • Similar to a Type 4 LSA in OSPFv2, a Type 4 LSA
Network Mask
in OSPFv3 is generated by an ABR, describes the
0 Metric route to an ASBR, and is advertised to areas
... excluding that to which the ASBR belongs. An
ABR sends a Type 4 LSA to describe each ASBR.
Page 29 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ Options: This field describes the optional capabilities supported by the destination
router instead of those supported by the source router. Therefore, the value of
this field should equal that of the Options field in the router-LSA generated by
the destination router.
▫ Metric: indicates the cost of the route to the destination address and occupies 3
bytes.
Type 5: AS-External-LSA
⚫ OSPFv2 • Similar to a Type 5 LSA in OSPFv2, a Type 5 LSA
Network Mask in OSPFv3 is generated by an ASBR, describes the
E 0 Metric route with a prefix outside the local AS, and is
Forwarding Address
advertised to all areas except the stub area and
External Route Tag
NSSA.
...
Page 30 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ Bit E: indicates the cost type of an AS external route and occupies 1 bit.
▫ The value 1 indicates the cost of a Type 2 external route. This cost does not
increase during route transmission.
▫ The value 0 indicates the cost of a Type 1 external route. This cost increases
during route transmission.
▫ Bit F: occupies 1 bit. The value 1 indicates that the Forwarding Address field
(optional) is included.
▫ Bit T: occupies 1 bit. The value 1 indicates that the External Route Tag field
(optional) is included.
▫ Metric: indicates the cost of the route to the destination address and occupies 3
bytes.
▫ PrefixLength, PrefixOptions, and Address Prefix are triplets that describe a prefix
and have the same meanings as those in an inter-area-prefix-LSA.
Page 32 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ Rtr Pri: indicates the router priority of the interface attaching the originating
router to the link and occupies 1 byte.
▫ Options: indicates a collection of Options bits that the router sets in the network-
LSA and occupies 3 bytes.
▫ Number of Prefixes: indicates the number of IPv6 address prefixes carried in the
LSA, and occupies 4 bytes.
▫ PrefixLength, PrefixOptions, and Address Prefix are triplets that describe a prefix
and have the same meanings as those in an inter-area-prefix-LSA.
Type 9: Intra-Area-Prefix-LSA
(Added in OSPFv3)
• In OSPFv2, Type 1 and Type 2 LSAs can be used
Intra-area-prefix-LSA format
to describe topology and network segment
Number of Prefixes Referenced LS Type information. In OSPFv3, however, these two
Referenced Link State ID types of LSAs contain only topology information.
Referenced Advertising Router How does OSPFv3 describe network segment
PrefixLength PrefixOptions Metric information?
Address Prefix • Type 9 LSAs describe network segment
...
information and are flooded only in the area to
...
which the originating router belongs. OSPFv3
depends on both Type 9 LSAs and topology
information to calculate OSPFv3 routes. Type 9
LSAs have the following two functions:
▫ Type 9 LSAs generated by each device describe the
IPv6 address prefixes associated with router-LSAs.
▫ Type 9 LSAs generated by a DR describe the IPv6
address prefixes associated with network-LSAs.
Page 33 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ Number of Prefixes: indicates the number of IPv6 address prefixes carried in the
LSA, and occupies 4 bytes. If necessary, prefixes can be carried in multiple intra-
area-prefix-LSAs to limit the size of each Type 9 LSA.
▫ 1: A router-LSA is referenced.
▫ 2: A network-LSA is referenced.
▫ If the LSA references a router-LSA, this field is set to the router ID of the
associated router.
▫ If the LSA references a network-LSA, this field is set to the router ID of the
DR on the attached link.
Examples of OSPFv3 LSAs
[R2]display ospfv3 lsdb
* indicates STALE LSA
R3
GE0/0/1 OSPFv3 Router with ID (10.1.2.2) (Process 1)
R1 R2 Type 8 LSA
Link-LSA (Interface GigabitEthernet0/0/0)
GE0/0/1 GE0/0/0 Link State ID Origin Router Age Seq# CkSum Prefix
GE0/0/1 0.0.0.3 10.1.2.2 0080 0x80000002 0x1c52 1
R4 0.0.0.4 10.1.3.3 0075 0x80000002 0x2a59 1
0.0.0.5 10.1.4.4 0089 0x80000002 0xe2a3 1
GE0/0/2
Link-LSA (Interface GigabitEthernet0/0/1)
Link State ID Origin Router Age Seq# CkSum Prefix
0.0.0.4 10.1.1.1 0070 0x80000002 0xe971 1
0.0.0.4 10.1.2.2 0069 0x80000002 0x9fdd 1
Device Router ID Interface IP Address
Router-LSA (Area 0.0.0.0)
R1 10.1.1.1 GE0/0/1 2001:DB8:2345:12::1/64 ...
Network-LSA (Area 0.0.0.0)
GE0/0/1 2001:DB8:2345:12::2/64 Link State ID Origin Router Age Seq# CkSum
R2 10.1.2.2 0.0.0.4 10.1.2.2 0030 0x80000001 0x9564
GE0/0/0 2001:DB8:2345:23::2/64 0.0.0.5 10.1.4.4 0036 0x80000002 0xc810
Type 9 LSA
R3 10.1.3.3 GE0/0/1 2001:DB8:2345:23::3/64 Intra-Area-Prefix-LSA (Area 0.0.0.0)
Link State ID Origin Router Age Seq# CkSum Prefix Reference
R4 10.1.4.4 GE0/0/2 2001:DB8:2345:23::4/64 0.0.0.1 10.1.2.2 0028 0x80000006 0x1527 1 Network-LSA
0.0.0.1 10.1.4.4 0034 0x80000003 0xfc28 1 Network-LSA
Page 35 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• As shown in the figure, R1, R2, R3, and R4 run OSPFv3 and are all deployed in the
backbone area.
• After the network becomes stable, check the LSDB of R2. The command output shows
information about the following types of LSAs: router-LSA (Type 1), network-LSA (Type
2), Link-LSA (Type 8), and intra-area-prefix-LSA (Type 9).
Link-LSA Example
R3
Check the link-LSA with the Link State ID of 0.0.0.5
GE0/0/1 on R2. The command output is as follows:
R1 R2
GE0/0/1 GE0/0/0 [R2]display ospfv3 lsdb link 0.0.0.5
GE0/0/1
R4 OSPFv3 Router with ID (10.1.2.2) (Process 1)
Page 36 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ LS Seq Number: sequence number of the LSA. This field is carried in the LSA
header.
Page 37 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. IPv6 Static Routes
Page 38 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Basic OSPFv3 Configuration Commands (1)
1. Start OSPFv3.
An OSPFv3 process is created and runs, and (optional) the process is bound to a VPN instance.
The interface is enabled in the specified OSPFv3 process, and the area to which the interface belongs is
specified. You can also specify the ID of the instance to which the interface belongs.
Note: Before running this command, you must create an OSPFv3 process and enable the IPv6 function.
Page 39 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• The configuration commands and methods of OSPFv3 are similar to those of OSPFv2.
For details, see the "HCIP-Datacom-Core Technology" course.
Basic OSPFv3 Configuration Commands (2)
3. (Optional) Configure an OSPFv3 network type for the interface.
By default, the OSPFv3 network type of a physical interface depends on the data link layer encapsulation of the
interface. The default network type of an Ethernet interface is broadcast, whereas that of a serial interface
(encapsulated with PPP or HDLC) is P2P.
The specified area ID can be a decimal integer or in the IPv4 address format. Regardless of the specified format,
the area ID is displayed as an IPv4 address.
Page 40 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Verifying the Configuration of Basic OSPFv3
Functions
1. Check the OSPFv3 interface information.
[Huawei] display ospfv3 [ process-id ] [ area area-id ] peer [ interface-type interface-number | neighbor-id ]
[ verbose ]
neighbor-id: specifies the router ID of a neighbor.
[Huawei] display ospfv3 [ process-id ] lsdb [ area area-id ] [ originate-router advertising-router-id | self-
originate ] [ { router | network | inter-router [ asbr-router asbr-router-id ] | { inter-prefix | nssa } [ ipv6-
address prefix-length ] | link | intra-prefix } [ link-state-id ] ]
Page 41 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ area area-id: specifies the ID of an area. The area ID can be a decimal integer or
in the IPv4 address format. For a decimal integer, the value ranges from 0 to
4294967295. For the IPv4 address format, the value is in dotted decimal notation.
▫ link-state-id: specifies a link state ID. The value is in dotted decimal notation.
Example for Configuring OSPF IPv4/IPv6
Dual Stack
Area 1 Area 0
R3 R5 Scenario description:
GE0/0/1 GE0/0/2
Page 43 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Deploying the IPv4 Network (1)
R3 R5 1. Assign an IPv4 address to each router interface.
Area 1 Area 0
GE0/0/1 GE0/0/2 (The configuration details are not provided here.)
R1 R2
2. Configure basic OSPF functions.
GE0/0/1 GE0/0/0 Area 2
GE0/0/1
R4 [R1] ospf 1 router-id 10.1.1.1
[R1-ospf-1] area 1
GE0/0/2 [R1-ospf-1-area-0.0.0.0] network 10.1.12.1 0.0.0.0
Page 44 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Deploying the IPv4 Network (2)
R3 R5 [R4] ospf 1 router-id 10.1.4.4
Area 1 Area 0
GE0/0/1 GE0/0/2 [R4-ospf-1] area 0
R1 R2 [R4-ospf-1-area-0.0.0.0] network 10.1.23.4 0.0.0.0
GE0/0/1 GE0/0/0 Area 2
GE0/0/1
R4
[R5] ospf 1 router-id 10.1.5.5
GE0/0/2 [R5-ospf-1] area 2
[R5-ospf-1-area-0.0.0.2] network 10.1.35.5 0.0.0.0
Page 45 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Deploying the IPv6 Network (1)
R3 R5 1. Enable IPv6 globally and on interfaces, and
Area 1 Area 0 assign IPv6 addresses to interfaces on each router.
GE0/0/1 GE0/0/2
(The configuration details are not provided here.)
R1 R2
GE0/0/1 GE0/0/0 Area 2 2. Enable OSPFv3.
GE0/0/1
R4 [R1] ospfv3 1
[R1-ospfv3-1] router-id 10.1.1.1
GE0/0/2
[R2] ospfv3 1
[R2-ospfv3-1] router-id 10.1.2.2
Device Router ID Interface IPv4 Address IPv6 Address
R1 10.1.1.1 GE0/0/1 10.1.12.1/24 2001:DB8:2345:12::1/64 [R3] ospfv3 1
GE0/0/1 10.1.12.2/24 2001:DB8:2345:12::2/64 [R3-ospfv3-1] router-id 10.1.3.3
R2 10.1.2.2
GE0/0/0 10.1.23.2/24 2001:DB8:2345:23::2/64
GE0/0/1 10.1.23.3/24 2001:DB8:2345:23::3/64 [R4] ospfv3 1
R3 10.1.3.3 [R4-ospfv3-1] router-id 10.1.4.4
GE0/0/2 10.1.35.3/24 2001:DB8:2345:35::3/64
R4 10.1.4.4 GE0/0/2 10.1.23.4/24 2001:DB8:2345:23::4/64
[R5] ospfv3 1
R5 10.1.5.5 GE0/0/2 10.1.35.5/24 2001:DB8:2345:35::5/64 [R5-ospfv3-1] router-id 10.1.5.5
Page 46 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Deploying the IPv6 Network (2)
Area 1 Area 0
R3 R5 3. Enable OSPFv3 on interfaces.
GE0/0/1 GE0/0/2
[R1] interface gigabitethernet 0/0/1
R1 R2 [R1-GigabitEthernet0/0/1] ospfv3 1 area 1
GE0/0/1 GE0/0/0 Area 2
GE0/0/1 [R2] interface gigabitethernet 0/0/1
R4
[R2-GigabitEthernet0/0/1] ospfv3 1 area 1
GE0/0/2
[R2-GigabitEthernet0/0/1] quit
[R2] interface gigabitethernet 0/0/0
[R2-GigabitEthernet0/0/0] ospfv3 1 area 0
Device Router ID Interface IPv4 Address IPv6 Address [R3] interface gigabitethernet 0/0/1
R1 10.1.1.1 GE0/0/1 10.1.12.1/24 2001:DB8:2345:12::1/64 [R3-GigabitEthernet0/0/1] ospfv3 1 area 0
[R3-GigabitEthernet0/0/1] quit
GE0/0/1 10.1.12.2/24 2001:DB8:2345:12::2/64 [R3] interface gigabitethernet 0/0/2
R2 10.1.2.2
GE0/0/0 10.1.23.2/24 2001:DB8:2345:23::2/64 [R3-GigabitEthernet0/0/2] ospfv3 1 area 2
GE0/0/1 10.1.23.3/24 2001:DB8:2345:23::3/64
R3 10.1.3.3 [R4] interface gigabitethernet 0/0/2
GE0/0/2 10.1.35.3/24 2001:DB8:2345:35::3/64 [R4-GigabitEthernet0/0/2] ospfv3 1 area 0
R4 10.1.4.4 GE0/0/2 10.1.23.4/24 2001:DB8:2345:23::4/64
[R5] interface gigabitethernet 0/0/2
R5 10.1.5.5 GE0/0/2 10.1.35.5/24 2001:DB8:2345:35::5/64
[R5-GigabitEthernet0/0/2] ospfv3 1 area 2
Page 47 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Checking Neighbor Information on the
OSPFv3 Network
R3 R5
Area 1 Area 0
GE0/0/1 GE0/0/2
R1 R2
GE0/0/1 GE0/0/0 Area 2
GE0/0/1
R4
GE0/0/2
Page 48 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• You can run the display ospf peer command to check OSPFv2 neighbor information.
GE0/0/2
Area 1 Area 0
Page 49 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• You can run the display ospf routing command to check the routing information on
the OSPFv2 network.
• By comparing OSPFv2 routing information and OSPFv3 routing information, you will
find that the paths to the same network segment are the same, indicating that the
route calculation methods between OSPFv2 and OSPFv3 are the same.
Checking the LSDB on the OSPFv3 Network
[R2]display ospfv3 lsdb Router-LSA (Area 0.0.0.1)
* indicates STALE LSA Link State ID Origin Router Age Seq# CkSum Link
OSPFv3 Router with ID (10.1.2.2) (Process 1) 0.0.0.0 10.1.1.1 0819 0x80000007 0x9460 1
Link-LSA (Interface GigabitEthernet0/0/0) 0.0.0.0 10.1.2.2 0827 0x80000007 0x8a67 1
Link State ID Origin Router Age Seq# CkSum Prefix Network-LSA (Area 0.0.0.1)
0.0.0.3 10.1.2.2 0862 0x80000003 0x486d 1 Link State ID Origin Router Age Seq# CkSum
0.0.0.4 10.1.3.3 0854 0x80000003 0xc512 1 0.0.0.4 10.1.2.2 0828 0x80000003 0x9166
0.0.0.5 10.1.4.4 0840 0x80000003 0x4e3c 1 Inter-Area-Prefix-LSA (Area 0.0.0.1)
Link-LSA (Interface GigabitEthernet0/0/1) Link State ID Origin Router Age Seq# CkSum
Link State ID Origin Router Age Seq# CkSum Prefix 0.0.0.1 10.1.2.2 0570 0x80000001 0x510f
0.0.0.4 10.1.1.1 0878 0x80000003 0x9d8f 1 0.0.0.2 10.1.2.2 0596 0x80000001 0xfb76
0.0.0.4 10.1.2.2 0868 0x80000003 0xcbf8 1 Intra-Area-Prefix-LSA (Area 0.0.0.1)
Router-LSA (Area 0.0.0.0) Link State ID Origin Router Age Seq# CkSum Prefix Reference
Link State ID Origin Router Age Seq# CkSum Link 0.0.0.1 10.1.2.2 0826 0x80000004 0x1925 1 Network-LSA
0.0.0.0 10.1.2.2 0567 0x8000000f 0xd411 1
0.0.0.0 10.1.3.3 0576 0x8000000e 0xd70c 1
0.0.0.0 10.1.4.4 0577 0x8000000a 0xdd08 1
Network-LSA (Area 0.0.0.0) The LSDB on R2 contains the Type 1, Type 2, Type 3,
Link State ID Origin Router Age Seq# CkSum
0.0.0.5 10.1.4.4 0577 0x80000006 0xc014 Type 8, and Type 9 LSAs.
Inter-Area-Prefix-LSA (Area 0.0.0.0)
Link State ID Origin Router Age Seq# CkSum
0.0.0.1 10.1.2.2 0862 0x80000003 0xceb3
0.0.0.1 10.1.3.3 0782 0x80000004 0x3824
Intra-Area-Prefix-LSA (Area 0.0.0.0)
Link State ID Origin Router Age Seq# CkSum Prefix Reference
0.0.0.1 10.1.4.4 0576 0x8000000a 0xee2f 1 Network-LSA
Page 50 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• You can run the display ospf lsdb command to check the OSPFv2 LSDB. You will find
that the LSDB contains the Type 1, Type 2, and Type 3 LSAs.
Contents
1. IPv6 Static Routes
Page 51 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IS-IS (IPv6) Overview
⚫ IS-IS is a link-state dynamic routing protocol, which was initially designed for the OSI
network. Later, to support IPv4 routing, extensions were made to apply IS-IS to IPv4
networks. This is called integrated IS-IS.
⚫ IS-IS packets are classified into Hello protocol data units (PDUs), link state PDUs (LSPs), and
sequence number PDUs (SNPs).
Packet format
Type
PDU Common Header Length
PDU Specific Header Value
Variable Length Fields (TLV)
The Variable Length Fields (TLV) part consists of multiple TLV triplets. Using the TLV structure to
construct packets improves the flexibility and scalability of IS-IS. To support new features, only new
TLVs need to be added.
⚫ To support the processing and calculation of IPv6 routes, IS-IS adds two TLVs and one
network layer protocol identifier (NLPID).
Page 52 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
New TLVs
TLV 232 (IPv6 Interface Address) TLV 236 (IPv6 Reachability)
It is equivalent to TLV 132 (used to describe IPv4 interface It is equivalent to TLVs 128 and 130, and uses the X-bit to
addresses). The only difference is that TLV 232 describes 128- identify internal or external reachability information.
bit IPv6 addresses instead of 32-bit IPv4 addresses.
The content of the Interface Address field varies according to different The IPv6 Reachability TLV may appear any number of times (including 0)
PDUs: within an LSP. Link-local prefixes are not advertised using this TLV.
▫ For Hello PDUs, the Interface Address TLVs can contain only the link-
local IPv6 addresses assigned to the interfaces that send the Hello
PDUs.
▫ For LSPs, the Interface Address TLVs can contain only the non-link-
local IPv6 addresses assigned to the device interfaces.
Page 53 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Field description:
▫ Type: indicates the TLV type and occupies 8 bits. The value is 129 (0x81), indicating the Protocol Supported TLV.
▫ Length: indicates the length of the Value field in the TLV and occupies 8 bits.
▫ NLPID: indicates the network layer protocol identifier and occupies 8 bits. If IPv4 is supported, the value is 204 (0xCC). If
IPv6 is supported, the value is 142 (0x8E).
• If IS-IS supports IPv6, the IPv6 routing information that it advertises must carry the IPv6
NLPID.
Page 54 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
IS-IS Multi-Topology Background
By default, on an IS-IS network, a mix of IPv4 and IPv6 topologies is considered as an
integrated topology, and IS-IS calculates the same SPT for IPv4 and IPv6.
IS-IS
R1 (IPv4/IPv6) 1 IS-IS single-topology has the following
2 3 problems:
Page 55 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ To maintain the same topology, each interface must run both IS-IS (IPv4) and IS-
IS (IPv6), which is not flexible.
▫ IPv4 areas cannot be used to connect different IPv6 areas. That is, IPv4 networks
cannot be used to address IPv6 network isolation.
IS-IS Multi-Topology Overview
⚫ The IS-IS multi-topology (MT) feature indicates that multiple independent IP topologies run
in an IS-IS domain. For example, IPv4 and IPv6 topologies are not considered as a single
integrated topology. This ensures that IS-IS routes are calculated for both IPv4 and IPv6
networks. Based on the IP versions supported by links, separate SPF calculation is performed
in each topology to shield networks from each other.
⚫ IS-IS MT implementation
Topology establishment: Neighbor relationships are established through packet exchange to set up
multiple topologies.
SPF calculation: SPF calculation is performed in each topology.
Page 56 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• The IS-IS MT feature can overcome the disadvantages of IS-IS single topology.
IS-IS MT Implementation
⚫ IS-IS defines new TLVs, which contain MT information, that is, information about the
topologies to which interfaces belong. The advertisement of MT information enables the
network to perform separate SPF calculations for different topologies, implementing
topology separation.
⚫ Multi-Topology TLV 229 1
2 3
Type=229 Length O A R MT ID
... 4 5
IPv4 logical
• Key fields are described as follows: topology
▫ Type: indicates the TLV type and occupies 8 bits. The
value is 229 (0xE5), indicating support for MT. 1
▫ O: Overload bit, which occupies 1 bit. 2
R3 does not support
▫ A: Attach bit, which occupies 1 bit. 4 5 IPv6 and therefore
does not exist in the
▫ MT ID: indicates the topology to which the interface IPv6 logical IPv6 SPT.
belongs, and occupies 12 bits. topology
IS-IS calculates a separate topology for each of the IPv4 and IPv6 networks.
Page 57 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• To support MT, IS-IS defines multiple types of TLVs, including Multi-Topology TLV, MT
Intermediate Systems TLV, Multi-Topology Reachable IPv4 Prefixes TLV, and Multi-
Topology Reachable IPv6 Prefixes TLV. This course focuses on the Multi-Topology TLV
and does not elaborate on the other ones.
• Multi-Topology TLV:
▫ This TLV is contained only in IIH PDUs and fragment zero LSPs.
▫ Reserved MT IDs:
IS-IS IPv6 is enabled on the interface, and the ID of the IS-IS process to be associated with the interface is
specified.
Note: Before running this command, you must enable the IPv6 function on the interface.
Page 58 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• The basic configuration commands and methods of IS-IS (IPv6) are the same as those
of IS-IS (IPv4). For details, see the "HCIP-Datacom-Core Technology" course.
▫ ipv6: sets the topology type to IPv6. That is, the IPv6 capability for the IS-IS
process is enabled in an IPv6 topology. Links on the network can be configured as
IPv4 or IPv6 links. SPF calculation is performed separately in IPv4 and IPv6
topologies.
▫ standard: sets the topology type to standard. That is, the IPv6 capability for the
IS-IS process is enabled in an integrated topology. A network administrator must
ensure that all links on the network support the same topology type. By default,
the standard type is used when the IPv6 capability is enabled for an IS-IS process.
▫ cost: specifies the link cost of an IPv6 interface. The value is an integer that varies
according to the following cost styles:
[Huawei] display isis route [ process-id | vpn-instance vpn-instance-name ] ipv6 [ verbose | [ level-1 | level-2
] | ipv6-address [ prefix-length ] ]
Page 60 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Example for Configuring IS-IS IPv4/IPv6
Dual Stack
R1 R2 Scenario description:
IS-IS GE0/0/1
Area 49.0001 ▫ A company has IS-IS deployed over an IPv4
network to implement IPv4 network
interconnection. To ensure future service
GE0/0/2
GE0/0/2
development, the company has an IPv6 network
deployed for service testing. In this case, the IPv6
function needs to be enabled in the IS-IS process
GE0/0/1 on the network.
R3 R4 ▫ As device performance varies, link cost
modification is required to ensure that IPv4 and
Device Interface IPv4 Address IPv6 Address
IPv6 services are routed through different paths,
GE0/0/1 10.1.12.1/24 2001:DB8:2345:12::1/64 and IS-IS MT is required to ensure that a separate
R1
GE0/0/2 10.1.13.1/24 2001:DB8:2345:13::1/64 topology is calculated for the IPv6 network.
GE0/0/1 10.1.12.2/24 2001:DB8:2345:12::2/64
R2 ▫ All routers run IS-IS and are all Level-2 routers. The
GE0/0/2 10.1.24.2/24 2001:DB8:2345:24::2/64 entire network is in area 49.0001. After the
GE0/0/1 10.1.34.3/24 2001:DB8:2345:34::3/64 configuration is complete, each router should learn
R3
GE0/0/2 10.1.13.3/24 2001:DB8:2345:13::3/64 the IPv4 and IPv6 routes to all network segments in
GE0/0/1 10.1.34.4/24 2001:DB8:2345:34::4/64 the AS.
R4
GE0/0/2 10.1.24.4/24 2001:DB8:2345:24::4/64
Page 61 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Deploying the IPv4 Network
R1 R2
IS-IS (IPv4) GE0/0/1
1. Assign an IPv4 address to each router interface.
Area 49.0001 Cost = 10 (The configuration details are not provided here.)
2. Configure basic IS-IS functions.
Cost = 40
Cost = 10
GE0/0/2
GE0/0/2
[R1] isis 1
[R1-isis-1] is-level level-2
Cost = 10 [R1-isis-1] network-entity 49.0001.0000.0000.0001.00
GE0/0/1 #
R3 R4 [R1] interface gigabitethernet 0/0/1
[R1-GigabitEthernet0/0/1] isis enable 1
Device Interface IPv4 Address IPv6 Address [R1-GigabitEthernet0/0/1] quit
[R1] interface gigabitethernet 0/0/2
GE0/0/1 10.1.12.1/24 2001:DB8:2345:12::1/64
R1 [R1-GigabitEthernet0/0/2] isis enable 1
GE0/0/2 10.1.13.1/24 2001:DB8:2345:13::1/64 [R1-GigabitEthernet0/0/2] isis cost 40 level-2
GE0/0/1 10.1.12.2/24 2001:DB8:2345:12::2/64
R2 The configurations of R2, R3, and R4 are similar to the
GE0/0/2 10.1.24.2/24 2001:DB8:2345:24::2/64
GE0/0/1 10.1.34.3/24 2001:DB8:2345:34::3/64 configuration of R1, and are not provided here.
R3
GE0/0/2 10.1.13.3/24 2001:DB8:2345:13::3/64 The network entity titles (NETs) are as follows:
GE0/0/1 10.1.34.4/24 2001:DB8:2345:34::4/64 R2: 49.0001.0000.0000.0002.00
R4
GE0/0/2 10.1.24.4/24 2001:DB8:2345:24::4/64 R3: 49.0001.0000.0000.0003.00
R4: 49.0001.0000.0000.0004.00
Page 62 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Deploying the IPv6 Network
R1 R2
IS-IS (IPv6) GE0/0/1 1. Assign an IPv6 address to each router interface.
Area 49.0001 Cost = 40 (The configuration details are not provided here.)
Cost = 10
Cost = 10
2. Enable IS-IS (IPv6).
GE0/0/2
GE0/0/2
[R1] isis 1
[R1-isis-1] ipv6 enable topology ipv6
Cost = 10
#
GE0/0/1 [R1] interface gigabitethernet 0/0/1
R3 R4 [R1-GigabitEthernet0/0/1] isis ipv6 enable 1
[R1-GigabitEthernet0/0/1] isis ipv6 cost 40 level-2
Device Interface IPv4 Address IPv6 Address [R1-GigabitEthernet0/0/1] quit
GE0/0/1 10.1.12.1/24 2001:DB8:2345:12::1/64 [R1] interface gigabitethernet 0/0/2
R1 [R1-GigabitEthernet0/0/2] isis ipv6 enable 1
GE0/0/2 10.1.13.1/24 2001:DB8:2345:13::1/64
GE0/0/1 10.1.12.2/24 2001:DB8:2345:12::2/64
R2 The configurations of R2, R3, and R4 are similar to the
GE0/0/2 10.1.24.2/24 2001:DB8:2345:24::2/64
configuration of R1, and are not provided here.
GE0/0/1 10.1.34.3/24 2001:DB8:2345:34::3/64
R3
GE0/0/2 10.1.13.3/24 2001:DB8:2345:13::3/64
GE0/0/1 10.1.34.4/24 2001:DB8:2345:34::4/64
R4
GE0/0/2 10.1.24.4/24 2001:DB8:2345:24::4/64
Page 63 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Check the Routing Information on the IS-IS
(IPv4) Network
The following example uses R1 as the root to calculate the SPT.
The IS-IS (IPv4) logical topology is shown in the right figure. IS-IS (IPv4) logical topology
GE0/0/2
GE0/0/2
Destinations : 2 Routes : 2
10.1.13.0/24
10.1.24.0/24
Cost: 40
Cost: 10
ISIS routing table status : <Active>
Destinations : 2 Routes : 2
GE0/0/2
GE0/0/2
Destination/Mask Proto Pre Cost Flags NextHop Interface
Page 64 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Check the Routing Information on the IS-IS
(IPv6) Network
The following example uses R1 as the root to calculate the SPT.
The IS-IS (IPv6) logical topology is shown in the right figure. IS-IS (IPv6) logical topology
2001:DB8:2345:24::/64
2001:DB8:2345:13::/64
ISIS Routing Table's Status : < Active >
GE0/0/2
Summary Count : 2
Cost: 10
Cost: 10
Destination : 2001:DB8:2345:24:: PrefixLength : 64
NextHop : FE80::2E0:FCFF:FE90:3D3A Preference : 15
Cost : 30 Protocol : ISIS-L2
GE0/0/2
GE0/0/2
RelayNextHop : :: TunnelID : 0x0
Interface : GigabitEthernet0/0/2 Flags :D
Page 65 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. IPv6 Static Routes
Page 66 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
BGP4+ Overview
⚫ Traditional BGP-4 can manage only IPv4 unicast routing information. Multiprotocol
Extensions for BGP (MP-BGP) can carry routing information for multiple network layer
protocols. Currently, MP-BGP uses extended attributes and address families to support IPv6,
multicast, and VPN, without changing the messaging and routing mechanisms of BGP-4.
⚫ MP-BGP for IPv6 unicast networks is called BGP4+. BGP4+ establishes an independent
topology for an IPv6 unicast network and stores routing information in an independent
routing table. This ensures that routing information on an IPv4 unicast network is isolated
from that on an IPv6 unicast network.
Page 67 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• To support IPv6, BGP needs to map IPv6 routing information to the NLRI attributes.
Address Families That MP-BGP Supports
⚫ MP-BGP uses address families to differentiate network layer protocols. To enable BGP peers
to exchange different types of routing information, activating the peers and advertising BGP
routes need to be performed in the correct address families.
⚫ MP-BGP supports the following address families:
IPv4 unicast address family IPv4 IPv4
R1 R5
IPv4 multicast address family IPv4 unicast
address family
IPv6 unicast address family EBGP IBGP EBGP
R3 IPv6 unicast R4
VPNv4 address family address family
R2 R6
Page 69 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• Update message:
▫ An Update message can be used to advertise multiple routes with the same path
attribute. These routes are stored in the NLRI attribute. An Update message can
also carry multiple unreachable routes, which are stored in the Withdrawn Routes
field, to instruct peers to withdraw these routes.
NLRI Attributes
⚫ MP_REACH_NLRI format • To advertise IPv6 routes:
▫ AFI = 2, SAFI = 1 (unicast), SAFI = 2 (multicast)
Address Family Identifier
▫ The Length of Next Hop Network Address field
Subsequent Address Family Identifier
determines the number of next-hop addresses:
Length of Next Hop Network Address
▪ If the field value is 16, the next-hop address is the global
Network Address of Next Hop unicast address of the next hop router.
Reserved ▪ If the field value is 32, the next-hop address is the global
Network Layer Reachability Information unicast address and link-local address of the next-hop router.
▫ Reserved: The field value is fixed at 0.
▫ Network Layer Reachability Information: length-variable
field, which indicates the route prefix and mask
information.
• MP_UNREACH_NLRI format • To withdraw IPv6 routes:
Address Family Identifier ▫ AFI = 2, SAFI = 1 (unicast), SAFI = 2 (multicast)
Subsequent Address Family Identifier ▫ The Withdrawn Routes field indicates the prefix and mask
Withdrawn Routes information of the routes to be withdrawn.
Page 70 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ Length of Next Hop Network Address: indicates the length of the next-hop
address and occupies 1 byte. Generally, the value is 16.
▫ Network Address of Next Hop: The length is variable and depends on the
preceding field. Generally, the value is a global unicast address.
2. Enable the local device to exchange routing information with a specified peer in a BGP-IPv6 address family.
The local device is enabled to exchange routing information with the specified peer in the BGP-IPv6 address
family view.
3. Configure BGP to import routes.
BGP is configured to import specified routes in the IPv6 routing table to the BGP routing table.
Page 71 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• The basic configuration commands and methods of BGP4+ are the same as those of
BGP. For details, see the "HCIP-Datacom-Core Technology" course.
▫ prefix-length: specifies the prefix length of the IPv6 address advertised by BGP.
The value is an integer ranging from 0 to 128.
Page 72 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Example for Configuring BGP IPv4/IPv6
Dual Stack
Scenario description:
AS 65001 AS 65002 ▫ Two branches of a company communicate with each
R1 R2 other through BGP. To ensure future service
GE0/0/1 GE0/0/1
EBGP development, an IPv6 network is deployed in each
Router ID: 10.1.1.1 Router ID: 10.1.2.2 branch for service testing. In this case, BGP4+ needs
to be deployed to implement IPv6 network
interworking.
Page 73 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Deploying the IPv4 Network
1. Assign an IPv4 address to each router interface.
(The configuration details are not provided here.)
AS 65001 AS 65002
2. Configure basic BGP functions: establish an
R1 R2
GE0/0/1 GE0/0/1 EBGP peer relationship.
EBGP
[R1] bgp 65001
Router ID: 10.1.1.1 Router ID: 10.1.2.2
[R1-bgp] router-id 10.1.1.1
[R1-bgp] peer 10.1.12.2 as-number 65002
Page 74 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Deploying the IPv6 Network
1. Assign an IPv6 address to each router interface.
AS 65001 AS 65002 (The configuration details are not provided here.)
R1 R2
2. Configure basic BGP4+ functions: establish an EBGP
GE0/0/1 GE0/0/1
peer relationship and enable the local device to exchange
EBGP
routing information with the EBGP peer.
Router ID: 10.1.1.1 Router ID: 10.1.2.2
[R1] bgp 65001
[R1-bgp] peer 2001:DB8:2345:12::2 as-number 65002
[R1-bgp] iPv6-family unicast
[R1-bgp-af-ipv6] peer 2001:DB8:2345:12::2 enable
Device Interface IPv4 Address IPv6 Address [R2] bgp 65002
GE0/0/1 10.1.12.1/24 2001:DB8:2345:12::1/64 [R2-bgp] peer 2001:DB8:2345:12::1 as-number 65001
R1 [R2-bgp] iPv6-family unicast
Loopback0 10.1.1.1/32 2001:DB8:2345:1::1/128
[R2-bgp-af-ipv6] peer 2001:DB8:2345:12::1 enable
GE0/0/1 10.1.12.2/24 2001:DB8:2345:12::2/64
R2
Loopback0 10.1.2.2/32 2001:DB8:2345:2::2/128 3. Configure BGP4+ to advertise IPv6 routes.
[R1-bgp-af-ipv6] network 2001:DB8:2345:1::1 128
Page 75 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Checking the BGP Peer Information
⚫ Run the display bgp [ipv6] peer command to check information about the peers on the
IPv4 and IPv6 networks.
⚫ By comparing the command outputs, you will find that the peer information is basically the
same except for the addresses used to establish the peer relationships.
[R1]display bgp peer BGP
Page 76 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Checking the BGP4+ Routing Information
Page 77 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Checking the NLRI Attributes of BGP4+
UPDATE Message-Border Gateway Protocol
AS 65001 AS 65002 UPDATE Message
Marker: 16 bytes
R1 2001:DB8:2345:12::/64 R2 Length: 85 bytes
::1 ::2 Type: UPDATE Message (2)
Loopback0: GE0/0/1 EBGP GE0/0/1 Unfeasible routes length: 0 bytes
Total path attribute length: 62 bytes
2001:DB8:2345:1::1/128 Path attributes
ORIGIN: IGP (4 bytes)
AS_PATH: 65001 (9 bytes)
MULTI_EXIT_DISC: 0 (7 bytes)
By analyzing the Update message sent by MP_REACH_NLRI (42 bytes)
Flags: 0x90 (Optional, Non-transitive, Complete, Extended Length)
R1, you can check information about the Type code: MP_REACH_NLRI (14)
MP_REACH_NLRI attribute. In the attribute: Length: 38 bytes
Address family: IPv6 (2)
Next-hop address of the reachable route: Subsequent address family identifier: Unicast (1)
Next hop network address (16 bytes)
2001:db8:2345:12::1 Next hop: 2001:db8:2345:12::1 (16)
Subnetwork points of attachment: 0
Prefix and prefix length of the reachable route: Network layer reachability information (17 bytes)
2001:db8:2345:1::1/128 2001:db8:2345:1::1/128
MP Reach NLRI prefix length: 128
MP Reach NLRI prefix: 2001:db8:2345:1::1
Page 78 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Quiz
1. (Multiple) Which of the following types of LSAs belong to OSPFv3? ( )
A. Router-LSA
B. Network-LSA
C. Network-summary-LSA
D. Link-LSA
2. (TorF) IS-IS can calculate the SPTs for IPv4 and IPv6 networks separately. ( )
A. True
B. False
Page 79 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
1. ABD
2. A
Summary
⚫ IPv6 static routes can meet network interconnection requirements. However, as the
network scale expands, dynamic routing protocols need to be leveraged. Dynamic
routing protocols are required to support IPv6 and carry IPv6 addresses for route
advertisement.
⚫ To support IPv6 networks, the IETF enhanced and improved OSPFv2 and finally
developed the new protocol, OSPFv3.
⚫ IS-IS features high scalability and supports IPv6 through new TLVs.
⚫ Similarly, BGP supports IPv6 by using its own extended path attributes and multi-
protocol address families.
Page 80 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Thank You
www.huawei.com
Page 81 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.