HCIP-Datacom-WAN Planning and Deployment V1.0 Lab Guide
HCIP-Datacom-WAN Planning and Deployment V1.0 Lab Guide
HCIP-Datacom-WAN
Lab Guide
ISSUE: 1.0
and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of
their respective holders.
Notice
The purchased products, services and features are stipulated by the contract made
between Huawei and the customer. All or part of the products, services and features
described in this document may not be within the purchase scope or the usage scope.
Unless otherwise specified in the contract, all statements, information, and
recommendations in this document are provided "AS IS" without warranties,
guarantees or representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has
been made in the preparation of this document to ensure accuracy of the contents, but
all statements, information, and recommendations in this document do not constitute
a warranty of any kind, express or implied.
Overview
This textbook accompanies the training courses for HCIP-Datacom-WAN Network
Planning and Deployment certification. It is applicable to candidates for the
corresponding exam and people who want to understand the bearer WAN and related
solutions, bearer WAN architecture and typical technology applications, WAN VPN
technology, MPLS TE technology, SR technology, SRv6 technology, WAN controller-based
network management and analysis, WAN controller-based network traffic control, bearer
WAN O&M and troubleshooting, and bearer WAN design.
Description
This experiment guide introduces three experiments. The first two are traditional CLI-
based experiments, whereas the last is performed using both the CLI and controller UI.
The experiments are as follows:
1. SR-MPLS experiment
2. SRv6 experiment
3. iMaster NCE-IP experiment
Symbol Conventions
Lab Environment
Networking Introduction
This experiment environment is intended for datacom engineers who are preparing for
the HCIP-Datacom-WAN exam. This lab environment includes six routers and several
servers.
Device Introduction
The following table lists devices recommended for HCIP-Datacom-WAN experiments and
the mappings between the device name, model, and software version.
Contents
1 SR-MPLS Experiment
Loopback0 IP
Device Number
Address
PE2 1.0.0.2
P2 1.0.0.6
PE4 1.0.0.4
<PE2>system-view immediately
<P2>system-view immediately
<PE4>system-view immediately
[PE2]interface GigabitEthernet0/3/1
[PE2-GigabitEthernet0/3/1] ip address 10.0.0.22 255.255.255.252
[P2]interface GigabitEthernet0/3/0
[P2-GigabitEthernet0/3/0] ip address 10.0.0.21 255.255.255.252
[P2-GigabitEthernet0/3/0] quit
[P2]interface GigabitEthernet0/3/2
[P2-GigabitEthernet0/3/2] ip address 10.0.0.18 255.255.255.252
[PE4]interface GigabitEthernet0/3/1
[PE4-GigabitEthernet0/3/1] ip address 10.0.0.17 255.255.255.252
[P2]ping -c 1 10.0.0.22
PING 10.0.0.22: 56 data bytes, press CTRL_C to break
Reply from 10.0.0.22: bytes=56 Sequence=1 ttl=255 time=1 ms
[P2]ping -c 1 10.0.0.17
PING 10.0.0.17: 56 data bytes, press CTRL_C to break
Reply from 10.0.0.17: bytes=56 Sequence=1 ttl=255 time=1 ms
Ensure that the IS-IS area ID is 49.0001, the IS-IS process ID is 1, all devices are Level-2
devices, and the NET is converted from the Loopback0 IP address (for example, PE2's NET
is 49.0001.0010.0000.0002.00). Then enable IS-IS on Loopback0 and interconnection
interfaces.
In this case, you need to set cost-style to wide to support IS-IS extensions.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 10
# Configure PE2.
[PE2]isis 1
[PE2-isis-1] is-level level-2
[PE2-isis-1] cost-style wide
[PE2-isis-1] network-entity 49.0001.0010.0000.0002.00
[PE2-isis-1] is-name PE2
# Configure P2.
[P2]isis 1
[P2-isis-1] is-level level-2
[P2-isis-1] cost-style wide
[P2-isis-1] network-entity 49.0001.0010.0000.0006.00
[P2-isis-1] is-name P2
# Configure PE4.
[PE4]isis 1
[PE4-isis-1] is-level level-2
[PE4-isis-1] cost-style wide
[PE4-isis-1] network-entity 49.0001.0010.0000.0004.00
[PE4-isis-1] is-name PE4
[PE2]interface LoopBack0
[PE2-LoopBack0] isis enable 1
[PE2-LoopBack0] quit
[PE2]interface GigabitEthernet0/3/1
[PE2-GigabitEthernet0/3/1] isis enable 1
[PE2-GigabitEthernet0/3/1] isis circuit-type p2p
[P2]interface LoopBack0
[P2-LoopBack0] isis enable 1
[P2-LoopBack0] quit
[P2]interface GigabitEthernet0/3/0
[P2-GigabitEthernet0/3/0] isis enable 1
[P2-GigabitEthernet0/3/0] isis circuit-type p2p
[P2-GigabitEthernet0/3/0] quit
[P2]interface GigabitEthernet0/3/2
[P2-GigabitEthernet0/3/2] isis enable 1
[P2-GigabitEthernet0/3/2] isis circuit-type p2p
[PE4]interface LoopBack0
[PE4-LoopBack0] isis enable 1
[PE4-LoopBack0] quit
[PE4]interface GigabitEthernet0/3/1
[PE4-GigabitEthernet0/3/1] isis enable 1
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 11
IS-IS neighbor relationships with PE2 and PE4 have been established.
# Check IS-IS routes on P2.
P2 has learned the IS-IS routes generated by Loopback0 on PE2 and PE4.
Enable MPLS on the three devices and configure MPLS LSR IDs. MPLS does not need to
be enabled on interfaces.
Enable SR-MPLS globally, enable IS-IS extensions for SR capabilities, configure an SRGB
for IS-IS, and set the SRGB range to 16000 to 17000 on all devices.
Configure a SID for Loopback0 and use an index as the relative label value. The relative
label value must be consistent with the planned loopback address. For example, if the IP
address of Loopback0 is 1.0.0.2, set the index to 2.
# Enable SR-MPLS globally.
[PE2]segment-routing
[P2]segment-routing
[PE4]segment-routing
# Enable IS-IS extensions for SR capabilities and configure an SRGB for IS-IS.
[PE2]isis 1
[PE2-isis-1]segment-routing mpls
[PE2-isis-1]segment-routing global-block 16000 17000
[P2]isis 1
[P2-isis-1]segment-routing mpls
[P2-isis-1]segment-routing global-block 16000 17000
[PE4]isis 1
[PE4-isis-1]segment-routing mpls
[PE4-isis-1]segment-routing global-block 16000 17000
[PE2]interface LoopBack 0
[PE2-LoopBack0]isis prefix-sid index 2
[P2]interface LoopBack 0
[P2-LoopBack0]isis prefix-sid index 6
[PE4]interface LoopBack 0
[PE4-LoopBack0]isis prefix-sid index 4
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 13
# Run the display tunnel-info all command on PE2 to check SR LSP establishment.
Total information(s): 3
The out label of the route from PE2 to P2 (1.0.0.6) is 3 (Note: Run the label advertise
implicit-null command to enable the PHP feature), and the out label of the route from
PE2 to PE4 (1.0.0.4) is 16004.
# Check the connectivity of the CR-LSP from PE2 to PE4.
--- FEC: SEGMENT ROUTING IPV4 PREFIX 1.0.0.4/32 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 2/5/12 ms
Create a VPN instance named vpna on PE2 and PE4, add Loopback1 to the VPN instance,
and establish an MP-BGP VPNv4 peer relationship between PE2 and P2 and between PE4
and P2 (the AS number is 65001). P2 functions as the RR, and PE2 and PE4 function as
the RR clients and advertise VPNv4 routes through P2.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 14
# Create Loopback1, associate it with the VPN instance, and configure an IP address for
the interface.
[PE2]interface LoopBack 1
[PE2-LoopBack1]ip binding vpn-instance vpna
Info: All IPv4 and IPv6 related configurations on this interface are removed.
[PE2-LoopBack1]ip address 10.2.2.2 32
[PE4]interface LoopBack 1
[PE4-LoopBack1]ip binding vpn-instance vpna
Info: All IPv4 and IPv6 related configurations on this interface are removed.
[PE4-LoopBack1]ip address 10.4.4.4 32
Note that you need to associate the interface with the VPN instance before configuring
an IP address for the interface.
# Use Loopback0 to configure the MP-BGP VPNv4 peer relationship and use the
Loopback0 address as the router ID.
[PE2]bgp 65001
[PE2-bgp] router-id 1.0.0.2
[PE2-bgp] peer 1.0.0.6 as-number 65001
[PE2-bgp] peer 1.0.0.6 connect-interface LoopBack0
[PE2-bgp]ipv4-family vpnv4
[PE2-bgp-af-vpnv4] peer 1.0.0.6 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
[PE4]bgp 65001
[PE4-bgp] router-id 1.0.0.4
[PE4-bgp] peer 1.0.0.6 as-number 65001
[PE4-bgp] peer 1.0.0.6 connect-interface LoopBack0
[PE4-bgp]ipv4-family vpnv4
[PE4-bgp-af-vpnv4] peer 1.0.0.6 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 15
[P2-bgp]bgp 65001
[P2-bgp] router-id 1.0.0.6
[P2-bgp] peer 1.0.0.2 as-number 65001
[P2-bgp] peer 1.0.0.2 connect-interface LoopBack0
[P2-bgp] peer 1.0.0.4 as-number 65001
[P2-bgp] peer 1.0.0.4 connect-interface LoopBack0
[P2-bgp] ipv4-family vpnv4
[P2-bgp-af-vpnv4] undo policy vpn-target
[P2-bgp-af-vpnv4] peer 1.0.0.2 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
[P2-bgp-af-vpnv4] peer 1.0.0.2 reflect-client
[P2-bgp-af-vpnv4] peer 1.0.0.4 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
[P2-bgp-af-vpnv4] peer 1.0.0.4 reflect-client
P2 has established MP-BGP VBNv4 peer relationships with PE2 and PE4.
# Import the direct routes of Loopback1 to BGP.
[PE2]bgp 65001
[PE2-bgp]ipv4-family vpn-instance vpna
[PE2-bgp-vpna] import-route direct
[PE4]bgp 65001
[PE4-bgp]ipv4-family vpn-instance vpna
[PE4-bgp-vpna] import-route direct
PE2 has learned the VPNv4 route from PE4 through MP-BGP.
The route to the network segment of the remote CE has been loaded to the VPN instance
routing table on PE2.
Destination: 10.4.4.4/32
Protocol: IBGP Process ID : 0
Preference: 255 Cost : 0
NextHop: 1.0.0.4 Neighbour : 1.0.0.6
State: Active Adv Relied Age : 00h03m54s
Tag: 0 Priority : low
Label: 48155 QoSInfo : 0x0
IndirectID: 0x1000349 Instance :
RelayNextHop: 10.0.0.21 Interface : GigabitEthernet0/3/1
TunnelID: 0x000000002900000005 Flags : RD
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 17
The tunnel ID can be found. We can determine based on previous information that the
tunnel is an SR-MPLS BE tunnel.
# Check the connectivity between Loopback1 interfaces on PE2 and PE4.
Capture the headers of incoming packets on GE0/3/0 of P2 and check the labels
encapsulated into these packets during communication between 10.2.2.2 and 10.4.4.4.
#On PE4, check the label allocated by PE4 to route 10.4.4.4.
On PE4, MP-BGP assigns label 48155 to the VPNv4 route 10.4.4.4. This label is the inner
label (VPN label) of packets destined for 10.4.4.4.
In SR-MPLS BE mode, the outer label is identical with the node SID. The node SID of PE4
is 16004, which is the outer label (public network label) of VPN packets from PE2 to
10.4.4.4.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 18
Use ACL rules to match packets with the outer label being 16004 and inner label being
48155.
# Run the capture-packet command on P2 to capture packet headers on GE0/3/0.
Information about the captured packet headers is saved in the /logfile directory of the
device. You can download the file through FTP or SFTP. For details about how to enable
FTP or SFTP on the device, see the related product documentation (for example:
https://support.huawei.com/hedex/hdx.do?docid=EDOC1100168795&lang=en).
# Check captured packet headers.
Frame 1: 106 bytes on wire (848 bits), 64 bytes captured (512 bits)
Ethernet II, Src: HuaweiTe_7a:c2:8a (dc:99:14:7a:c2:8a), Dst: HuaweiTe_7a:c3:f1 (dc:99:14:7a:c3:f1)
MultiProtocol Label Switching Header, Label: 16004, Exp: 0, S: 0, TTL: 255
MultiProtocol Label Switching Header, Label: 48155, Exp: 0, S: 1, TTL: 255
Internet Protocol Version 4, Src: 10.2.2.2, Dst: 10.4.4.4
Internet Control Message Protocol
The outer label (public network label) of these packets is 16004, which is identical with
the node SID of PE4. The inner label is the label allocated by MP-BGP to VPNv4 routes on
PE4.
1.1.3 Quiz
In an L3VPNv4 over SR-MPLS BE scenario, will the outer label change during packet
forwarding?
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 19
Loopback0 IP
Device Number
Address
PE2 1.0.0.2
P2 1.0.0.6
PE4 1.0.0.4
<PE2>system-view immediately
<P2>system-view immediately
<PE4>system-view immediately
[PE2]interface GigabitEthernet0/3/1
[PE2-GigabitEthernet0/3/1] ip address 10.0.0.22 255.255.255.252
[P2]interface GigabitEthernet0/3/0
[P2-GigabitEthernet0/3/0] ip address 10.0.0.21 255.255.255.252
[P2-GigabitEthernet0/3/0] quit
[P2]interface GigabitEthernet0/3/2
[P2-GigabitEthernet0/3/2] ip address 10.0.0.18 255.255.255.252
[PE4]interface GigabitEthernet0/3/1
[PE4-GigabitEthernet0/3/1] ip address 10.0.0.17 255.255.255.252
[P2]ping -c 1 10.0.0.22
PING 10.0.0.22: 56 data bytes, press CTRL_C to break
Reply from 10.0.0.22: bytes=56 Sequence=1 ttl=255 time=1 ms
[P2]ping -c 1 10.0.0.17
PING 10.0.0.17: 56 data bytes, press CTRL_C to break
Reply from 10.0.0.17: bytes=56 Sequence=1 ttl=255 time=1 ms
Ensure that the IS-IS area ID is 49.0001, the IS-IS process ID is 1, all devices are Level-2
devices, and the NET is converted from the Loopback0 IP address (for example, PE2's NET
is 49.0001.0010.0000.0002.00). Then enable IS-IS on Loopback0 and interconnection
interfaces.
In this case, you need to set cost-style to wide to support IS-IS extensions.
# Configure PE2.
[PE2]isis 1
[PE2-isis-1] is-level level-2
[PE2-isis-1] cost-style wide
[PE2-isis-1] network-entity 49.0001.0010.0000.0002.00
[PE2-isis-1] is-name PE2
# Configure P2.
[P2]isis 1
[P2-isis-1] is-level level-2
[P2-isis-1] cost-style wide
[P2-isis-1] network-entity 49.0001.0010.0000.0006.00
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 22
[P2-isis-1] is-name P2
# Configure PE4.
[PE4]isis 1
[PE4-isis-1] is-level level-2
[PE4-isis-1] cost-style wide
[PE4-isis-1] network-entity 49.0001.0010.0000.0004.00
[PE4-isis-1] is-name PE4
[PE2]interface LoopBack0
[PE2-LoopBack0] isis enable 1
[PE2-LoopBack0] quit
[PE2]interface GigabitEthernet0/3/1
[PE2-GigabitEthernet0/3/1] isis enable 1
[PE2-GigabitEthernet0/3/1] isis circuit-type p2p
[P2]interface LoopBack0
[P2-LoopBack0] isis enable 1
[P2-LoopBack0] quit
[P2]interface GigabitEthernet0/3/0
[P2-GigabitEthernet0/3/0] isis enable 1
[P2-GigabitEthernet0/3/0] isis circuit-type p2p
[P2-GigabitEthernet0/3/0] quit
[P2]interface GigabitEthernet0/3/2
[P2-GigabitEthernet0/3/2] isis enable 1
[P2-GigabitEthernet0/3/2] isis circuit-type p2p
[PE4]interface LoopBack0
[PE4-LoopBack0] isis enable 1
[PE4-LoopBack0] quit
[PE4]interface GigabitEthernet0/3/1
[PE4-GigabitEthernet0/3/1] isis enable 1
[PE4-GigabitEthernet0/3/1] isis circuit-type p2p
IS-IS neighbor relationships with PE2 and PE4 have been established.
# Check IS-IS routes on P2.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 23
P2 has learned the IS-IS routes generated by Loopback0 on PE2 and PE4.
Enable MPLS on the three devices and configure MPLS LSR IDs. MPLS does not need to
be enabled on interfaces.
Enable SR-MPLS globally, enable IS-IS extensions for SR capabilities, configure an SRGB
for IS-IS, and set the SRGB range to 16000 to 17000 on all devices.
Configure a SID for Loopback0 and use an index as the relative label value. The relative
label value must be the same as the planned loopback address. For example, if the IP
address of Loopback0 is 1.0.0.2, set the index to 2.
# Enable SR-MPLS globally.
[PE2]segment-routing
[P2]segment-routing
[PE4]segment-routing
# Enable IS-IS extensions for SR capabilities and configure an SRGB for IS-IS.
[PE2]isis 1
[PE2-isis-1]segment-routing mpls
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 24
[P2]isis 1
[P2-isis-1]segment-routing mpls
[P2-isis-1]segment-routing global-block 16000 17000
[PE4]isis 1
[PE4-isis-1]segment-routing mpls
[PE4-isis-1]segment-routing global-block 16000 17000
[PE2]interface LoopBack 0
[PE2-LoopBack0]isis prefix-sid index 2
[P2]interface LoopBack 0
[P2-LoopBack0]isis prefix-sid index 6
[PE4]interface LoopBack 0
[PE4-LoopBack0]isis prefix-sid index 4
[P2]segment-routing
[P2-segment-routing] ipv4 adjacency local-ip-addr 10.0.0.21 remote-ip-addr 10.0.0.22 sid 145536
[P2-segment-routing] ipv4 adjacency local-ip-addr 10.0.0.18 remote-ip-addr 10.0.0.17 sid 145537
To ensure that the adjacency SIDs specified during explicit path configuration remain
unchanged, you are advised to configure static adjacency SIDs. Then, the SIDs remain
unchanged after the device restarts.
Configure explicit paths on PE2 and PE4, specify the nodes that the paths must pass
through by specifying node SIDs, create TE tunnel interfaces on PE2 and PE4, and
associate the interfaces with configured explicit paths.
This experiment is implemented through the CLI and does not involve the controller. In
normal scenarios where the controller is used, the paths are computed by the controller.
# Create explicit paths.
[PE2]explicit-path PE2_PE4_Manual
[PE2-explicit-path-PE2_PE4_Manual] next sid label 16006 type prefix
[PE2-explicit-path-PE2_PE4_Manual] next sid label 145537 type adjacency
Configure an explicit path named PE2_PE4_Manual on PE2 and forcibly specify the path
to pass through P2 and GE0/3/2 on P2.
[PE4]explicit-path PE4_PE2_Manual
[PE4-explicit-path-PE4_PE2_Manual] next sid label 16006 type prefix
[PE4-explicit-path-PE4_PE2_Manual] next sid label 145536 type adjacency
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 25
Configure an explicit path named PE4_PE2_Manual on PE4 and forcibly specify the path
to pass through GE0/3/0 on P2.
# Create TE tunnel interfaces.
[PE2]interface Tunnel10
[PE2-Tunnel10] ip address unnumbered interface LoopBack0
[PE2-Tunnel10] tunnel-protocol mpls te
[PE2-Tunnel10] destination 1.0.0.4
[PE2-Tunnel10] mpls te signal-protocol segment-routing
[PE2-Tunnel10] mpls te tunnel-id 10
[PE2-Tunnel10] mpls te path explicit-path PE2_PE4_Manual
Create tunnel interface 10 on PE2, configure PE2 to borrow the Loopback0 IP address, set
the destination address to 1.0.0.4 (Loopback0 address of PE4), and associate tunnel
interface 10 with the explicit path PE2_PE4_Manual.
[PE4]interface Tunnel10
[PE4-Tunnel10] ip address unnumbered interface LoopBack0
[PE4-Tunnel10] tunnel-protocol mpls te
[PE4-Tunnel10] destination 1.0.0.2
[PE4-Tunnel10] mpls te signal-protocol segment-routing
[PE4-Tunnel10] mpls te tunnel-id 10
[PE4-Tunnel10] mpls te path explicit-path PE4_PE2_Manual
Create tunnel interface 10 on PE4, configure PE4 to borrow the Loopback0 IP address, set
the destination address to 1.0.0.2 (Loopback0 IP address of PE2), and associate tunnel
interface 10 with the explicit path PE4_PE2_Manual.
# Check the SR-MPLS TE tunnel status.
--- FEC: SEGMENT ROUTING TE TUNNEL IPV4 SESSION QUERY Tunnel10 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 3/4/11 ms
--- FEC: SEGMENT ROUTING TE TUNNEL IPV4 SESSION QUERY Tunnel10 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 2/4/12 ms
Create a VPN instance named vpna on PE2 and PE4, add Loopback1 to the VPN instance,
and establish an MP-BGP EVPN peer relationship between PE2 and P2 and between PE4
and P2 (the AS number is 65001). P2 functions as the RR, and PE2 and PE4 function as
the RR clients and advertise EVPN routes through P2.
# Create a VPN instance named vpna.
You only need to configure EVPN RTs. Meanwhile, enable EVPN to generate and
advertise IP prefix routes and IRB routes.
# Create Loopback1, associate it with the VPN instance, and configure an IP address for
the interface.
[PE2]interface LoopBack 1
[PE2-LoopBack1]ip binding vpn-instance vpna
Info: All IPv4 and IPv6 related configurations on this interface are removed.
[PE2-LoopBack1]ip address 10.2.2.2 32
[PE4]interface LoopBack 1
[PE4-LoopBack1]ip binding vpn-instance vpna
Info: All IPv4 and IPv6 related configurations on this interface are removed.
[PE4-LoopBack1]ip address 10.4.4.4 32
Note that you need to associate the interface with the VPN instance before configuring
an IP address for the interface.
# Configure EVPN peer relationships. Use Loopback0 to set up peer relationships and
Loopback0 addresses as router IDs.
[PE2]bgp 65001
[PE2-bgp] router-id 1.0.0.2
[PE2-bgp] peer 1.0.0.6 as-number 65001
[PE2-bgp] peer 1.0.0.6 connect-interface LoopBack0
[PE2-bgp] l2vpn-family evpn
[PE2-bgp-af-vpnv4] peer 1.0.0.6 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
[PE4]bgp 65001
[PE4-bgp] router-id 1.0.0.4
[PE4-bgp] peer 1.0.0.6 as-number 65001
[PE4-bgp] peer 1.0.0.6 connect-interface LoopBack0
[PE4-bgp]l2vpn-family evpn
[PE4-bgp-af-vpnv4] peer 1.0.0.6 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
[P2-bgp]bgp 65001
[P2-bgp] router-id 1.0.0.6
[P2-bgp] peer 1.0.0.2 as-number 65001
[P2-bgp] peer 1.0.0.2 connect-interface LoopBack0
[P2-bgp] peer 1.0.0.4 as-number 65001
[P2-bgp] peer 1.0.0.4 connect-interface LoopBack0
[P2-bgp]l2vpn-family evpn
[P2-bgp-af-vpnv4] undo policy vpn-target
[P2-bgp-af-vpnv4] peer 1.0.0.2 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 28
P2 has established MP-BGP EVPN peer relationships with PE2 and PE4.
# Import the direct routes of Loopback1 to BGP.
[PE2]bgp 65001
[PE2-bgp]ipv4-family vpn-instance vpna
[PE2-bgp-vpna] import-route direct
[PE2-bgp-vpna] advertise l2vpn evpn
[PE4]bgp 65001
[PE4-bgp]ipv4-family vpn-instance vpna
[PE4-bgp-vpna] import-route direct
[PE4-bgp-vpna] advertise l2vpn evpn
Note that you need to enable the VPN instance to advertise IP routes to the EVPN
instance.
# Check EVPN routes on PE2 and PE4.
The Loopback1 EVPN route from the peer end has been learned.
# Check the VPN instance routing table on PE2 and PE4.
[PE2]tunnel-policy p1
Info: New tunnel-policy is configured.
[PE2-tunnel-policy-p1]tunnel select-seq sr-te load-balance-number 1
[PE2-tunnel-policy-p1]quit
# Configure PE4.
[PE4] tunnel-policy p1
Info: New tunnel-policy is configured.
[PE4-tunnel-policy-p1]tunnel select-seq sr-te load-balance-number 1
[PE4-tunnel-policy-p1]quit
Note that the evpn parameter needs to be added during the association, so that the
routes learned through EVPN can recurse to SR-MPLS TE tunnels.
# Check the VPN instance routing table on PE2 and PE4.
The routes from PE2 and PE4 to the network segment of the remote CE have recursed to
SR-MPLS TE tunnels.
Verify connectivity between the Loopback1 interfaces used by PE2 and PE4 to simulate
CEs, and capture packet headers to check SR-MPLS labels.
# On PE2, check the connectivity between Loopback1 on PE2 and Loopback1 on PE4.
PE4 allocates label 48156 to route 10.4.4.4. This label is the inner label (VPN label)
carried in packets destined for 10.4.4.4.
The outer labels are used to strictly specify an explicit path. The labels of the outermost
and second outermost layers are 16006 and 145537, respectively. In other words, when
PE2 sends a packet to Loopback1 on PE4, the labels encapsulated into the packet are
48156, 145537, and 16006 from the innermost layer to the outermost layer.
# Create ACL 10000 on P2 to match packets from 10.2.2.2 to 10.4.4.4.
Note that the label sequence configured in the ACL is from the outermost layer to the
innermost layer. In this case, when the packet reaches P2, the outermost label 16006 is
already removed.
# Run the capture-packet command on P2 to capture packet headers on GE0/3/0.
Information about the captured packet headers is saved in the /logfile directory of the
device. You can download the file through FTP or SFTP.
# Check captured packet headers.
1.2.3 Quiz
In an SR-MPLS TE scenario, how can we forcibly forward packets through a specific
interface on a specific device?
6. Configure a VPN instance, add Loopback1 on PE2 and PE4 to the instance, and
establish VPNv4 peer relationships between PE2 and P2 and between PE4 and P2.
7. Configure a tunnel selection policy to recurse L3VPN traffic to an SR-MPLS Policy.
Loopback0 IP
Device Number
Address
PE2 1.0.0.2
P2 1.0.0.6
PE4 1.0.0.4
<PE2>system-view immediately
<P2>system-view immediately
<PE4>system-view immediately
[PE2]interface GigabitEthernet0/3/1
[PE2-GigabitEthernet0/3/1] ip address 10.0.0.22 255.255.255.252
[P2]interface GigabitEthernet0/3/0
[P2-GigabitEthernet0/3/0] ip address 10.0.0.21 255.255.255.252
[P2-GigabitEthernet0/3/0] quit
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 35
[P2]interface GigabitEthernet0/3/2
[P2-GigabitEthernet0/3/2] ip address 10.0.0.18 255.255.255.252
[PE4]interface GigabitEthernet0/3/1
[PE4-GigabitEthernet0/3/1] ip address 10.0.0.17 255.255.255.252
[P2]ping -c 1 10.0.0.22
PING 10.0.0.22: 56 data bytes, press CTRL_C to break
Reply from 10.0.0.22: bytes=56 Sequence=1 ttl=255 time=1 ms
[P2]ping -c 1 10.0.0.17
PING 10.0.0.17: 56 data bytes, press CTRL_C to break
Reply from 10.0.0.17: bytes=56 Sequence=1 ttl=255 time=1 ms
Ensure that the IS-IS area ID is 49.0001, the IS-IS process ID is 1, all devices are Level-2
devices, and the NET is converted from the Loopback0 IP address (for example, PE2's NET
is 49.0001.0010.0000.0002.00). Then enable IS-IS on Loopback0 and interconnection
interfaces.
In this case, you need to set cost-style to wide to support IS-IS extensions.
# Configure PE2.
[PE2]isis 1
[PE2-isis-1] is-level level-2
[PE2-isis-1] cost-style wide
[PE2-isis-1] network-entity 49.0001.0010.0000.0002.00
[PE2-isis-1] is-name PE2
# Configure P2.
[P2]isis 1
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 36
# Configure PE4.
[PE4]isis 1
[PE4-isis-1] is-level level-2
[PE4-isis-1] cost-style wide
[PE4-isis-1] network-entity 49.0001.0010.0000.0004.00
[PE4-isis-1] is-name PE4
[PE2]interface LoopBack0
[PE2-LoopBack0] isis enable 1
[PE2-LoopBack0] quit
[PE2]interface GigabitEthernet0/3/1
[PE2-GigabitEthernet0/3/1] isis enable 1
[PE2-GigabitEthernet0/3/1] isis circuit-type p2p
[P2]interface LoopBack0
[P2-LoopBack0] isis enable 1
[P2-LoopBack0] quit
[P2]interface GigabitEthernet0/3/0
[P2-GigabitEthernet0/3/0] isis enable 1
[P2-GigabitEthernet0/3/0] isis circuit-type p2p
[P2-GigabitEthernet0/3/0] quit
[P2]interface GigabitEthernet0/3/2
[P2-GigabitEthernet0/3/2] isis enable 1
[P2-GigabitEthernet0/3/2] isis circuit-type p2p
[PE4]interface LoopBack0
[PE4-LoopBack0] isis enable 1
[PE4-LoopBack0] quit
[PE4]interface GigabitEthernet0/3/1
[PE4-GigabitEthernet0/3/1] isis enable 1
[PE4-GigabitEthernet0/3/1] isis circuit-type p2p
IS-IS neighbor relationships with PE2 and PE4 have been established.
# Check IS-IS routes on P2.
P2 has learned the IS-IS routes generated by Loopback0 on PE2 and PE4.
Enable MPLS on the three devices and configure MPLS LSR IDs. MPLS does not need to
be enabled on interfaces.
Enable SR-MPLS globally, enable IS-IS extensions for SR capabilities, configure an SRGB
for IS-IS, and set the SRGB range to 16000 to 17000 on all devices.
Configure a SID for Loopback0 and use an index as the relative label value. The relative
label value must be the same as the planned loopback address. For example, if the IP
address of Loopback0 is 1.0.0.2, set the index to 2.
# Enable SR-MPLS globally.
[PE2]segment-routing
[P2]segment-routing
[PE4]segment-routing
# Enable IS-IS extensions for SR capabilities and configure an SRGB for IS-IS.
[PE2]isis 1
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 38
[PE2-isis-1]segment-routing mpls
[PE2-isis-1]segment-routing global-block 16000 17000
[P2]isis 1
[P2-isis-1]segment-routing mpls
[P2-isis-1]segment-routing global-block 16000 17000
[PE4]isis 1
[PE4-isis-1]segment-routing mpls
[PE4-isis-1]segment-routing global-block 16000 17000
[PE2]interface LoopBack 0
[PE2-LoopBack0]isis prefix-sid index 2
[P2]interface LoopBack 0
[P2-LoopBack0]isis prefix-sid index 6
[PE4]interface LoopBack 0
[PE4-LoopBack0]isis prefix-sid index 4
[P2]segment-routing
[P2-segment-routing] ipv4 adjacency local-ip-addr 10.0.0.21 remote-ip-addr 10.0.0.22 sid 145536
[P2-segment-routing] ipv4 adjacency local-ip-addr 10.0.0.18 remote-ip-addr 10.0.0.17 sid 145537
To ensure that the adjacency SIDs specified during explicit path configuration remain
unchanged, you are advised to configure static adjacency SIDs. Then, the SIDs remain
unchanged after the device restarts.
Configure candidate paths and associate these candidate paths with the SR-MPLS Policy.
Then configure an SR-MPLS Policy group and associate colors with DSCP values in the
SR-MPLS policy group.
# Configure candidate paths and associate them with an SR-MPLS Policy.
[PE2]segment-routing
[PE2-segment-routing] segment-list PE2_PE4
[PE2-segment-routing-segment-list-PE2_PE4] index 10 sid label 16006
[PE2-segment-routing-segment-list-PE2_PE4] index 20 sid label 145537
[PE2-segment-routing-segment-list-PE2_PE4] sr-te policy p1 endpoint 1.0.0.4 color 100
[PE2-segment-routing-te-policy-p1] candidate-path preference 100
[PE2-segment-routing-te-policy-p1-path] segment-list PE2_PE4
[PE4]segment-routing
[PE4-segment-routing] segment-list PE4_PE2
[PE4-segment-routing-segment-list-PE4_PE2] index 10 sid label 16006
[PE4-segment-routing-segment-list-PE4_PE2] index 20 sid label 145536
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 39
[PE2] segment-routing
[PE2-segment-routing] sr-te-policy group 1
[PE2-segment-routing-te-policy-group-1] endpoint 1.0.0.4
[PE2-segment-routing-te-policy-group-1] color 100 match dscp ipv4 41
[PE4] segment-routing
[PE4-segment-routing] sr-te-policy group 1
[PE4-segment-routing-te-policy-group-1] endpoint 1.0.0.2
[PE4-segment-routing-te-policy-group-1] color 100 match dscp ipv4 41
Create a VPN instance named vpnb on PE2 and PE4, add Loopback1 to the VPN instance,
and establish an MP-BGP VPNv4 peer relationship between PE2 and P2 and between PE4
and P2 (the AS number is 65001). P2 functions as the RR, and PE2 and PE4 function as
the RR clients and advertise VPNv4 routes through P2.
# Create a VPN instance named vpnb.
# Create Loopback1, associate it with the VPN instance, and configure an IP address for
the interface.
[PE2]interface LoopBack 1
[PE2-LoopBack1]ip binding vpn-instance vpnb
Info: All IPv4 and IPv6 related configurations on this interface are removed.
[PE2-LoopBack1]ip address 10.2.2.2 32
[PE4]interface LoopBack 1
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 41
Note that you need to associate the interface with the VPN instance before configuring
an IP address for the interface.
# Use Loopback0 to configure the MP-BGP VPNv4 peer relationship and use the
Loopback0 address as the router ID.
[PE2]bgp 65001
[PE2-bgp] router-id 1.0.0.2
[PE2-bgp] peer 1.0.0.6 as-number 65001
[PE2-bgp] peer 1.0.0.6 connect-interface LoopBack0
[PE2-bgp]ipv4-family vpnv4
[PE2-bgp-af-vpnv4] peer 1.0.0.6 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
[PE4]bgp 65001
[PE4-bgp] router-id 1.0.0.4
[PE4-bgp] peer 1.0.0.6 as-number 65001
[PE4-bgp] peer 1.0.0.6 connect-interface LoopBack0
[PE4-bgp]ipv4-family vpnv4
[PE4-bgp-af-vpnv4] peer 1.0.0.6 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
[P2-bgp]bgp 65001
[P2-bgp] router-id 1.0.0.6
[P2-bgp] peer 1.0.0.2 as-number 65001
[P2-bgp] peer 1.0.0.2 connect-interface LoopBack0
[P2-bgp] peer 1.0.0.4 as-number 65001
[P2-bgp] peer 1.0.0.4 connect-interface LoopBack0
[P2-bgp] ipv4-family vpnv4
[P2-bgp-af-vpnv4] undo policy vpn-target
[P2-bgp-af-vpnv4] peer 1.0.0.2 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
[P2-bgp-af-vpnv4] peer 1.0.0.2 reflect-client
[P2-bgp-af-vpnv4] peer 1.0.0.4 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
[P2-bgp-af-vpnv4] peer 1.0.0.4 reflect-client
P2 has established MP-BGP VBNv4 peer relationships with PE2 and PE4.
# Import the direct routes of Loopback1 to BGP.
[PE2]bgp 65001
[PE2-bgp]ipv4-family vpn-instance vpnb
[PE2-bgp-vpnb]import-route direct
[PE4]bgp 65001
[PE4-bgp]ipv4-family vpn-instance vpnb
[PE4-bgp-vpnb]import-route direct
PE2 has learned the VPNv4 route from PE4 through MP-BGP.
# Check the IP routing table on PE2.
The route to the remote CE has been loaded to the VPN instance routing table on PE2.
# Check route details.
Destination: 10.4.4.4/32
Protocol: IBGP Process ID : 0
Preference: 255 Cost : 0
NextHop: 1.0.0.4 Neighbour : 1.0.0.6
State : Active Adv Relied Age : 00h03m17s
Tag: 0 Priority : low
Label: 48157 QoSInfo : 0x0
IndirectID: 0x1000347 Instance :
RelayNextHop: 10.0.0.21 Interface : GigabitEthernet0/3/1
TunnelID : 0x000000002900000005 Flags : RD
Judging from the tunnel ID information, the route from PE2 to Loopback1 on PE4 still
recurses to the SR-MPLS BE tunnel.
Configure a tunnel binding policy to preferentially select the SR-MPLS Policy group and
associate the tunnel policy with the VPN instance.
# Configure a tunnel binding policy.
[PE2]tunnel-policy p1
[PE2-tunnel-policy-p1]tunnel binding destination 1.0.0.4 sr-te-policy group 1
[PE4]tunnel-policy p1
[PE4-tunnel-policy-p1] tunnel binding destination 1.0.0.2 sr-te-policy group 1
The next hop of the VPNv4 route has changed to the SR-TE Policy group, and the route
has recursed to an SR-MPLS Policy.
# Test the connectivity between CEs.
1.3.3 Quiz
What is the 3-tuple used to uniquely identify an SR-MPLS Policy?
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 46
2 SRv6 Experiment
5. Configure SRv6. Specifically, enable SRv6 globally, enable IS-IS extensions for SR
capabilities, configure the source address for SRv6 encapsulation and locator, and
enable the function to assign SIDs to VPN instance routes as well as the function to
add SIDs to routes to be advertised to BGP peers.
PE2 FC01::2
P2 FC01::6
PE4 FC01::4
<PE2>system-view immediately
<P2>system-view immediately
<PE4>system-view immediately
[PE2]interface LoopBack0
[PE2-LoopBack0] ipv6 enable
[PE2-LoopBack0] ipv6 address FC01::2/128
[PE2-LoopBack0] quit
[PE2]interface GigabitEthernet0/3/1
[PE2-GigabitEthernet0/3/1] ipv6 enable
[PE2-GigabitEthernet0/3/1] ipv6 address 2003::1/64
[P2]interface LoopBack0
[P2-LoopBack0] ipv6 enable
[P2-LoopBack0] ipv6 address FC01::6/128
[P2-LoopBack0] quit
[P2]interface GigabitEthernet0/3/0
[P2-GigabitEthernet0/3/0] ipv6 enable
[P2-GigabitEthernet0/3/0] ipv6 address 2003::2/64
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 48
[P2-GigabitEthernet0/3/0] quit
[P2]interface GigabitEthernet0/3/2
[P2-GigabitEthernet0/3/2] ipv6 enable
[P2-GigabitEthernet0/3/2] ipv6 address 2006::1/64
[PE4]interface GigabitEthernet0/3/1
[PE4-GigabitEthernet0/3/1] ipv6 enable
[PE4-GigabitEthernet0/3/1] ipv6 address 2006::2/64
Ensure that the IS-IS area ID is 49.0001, the IS-IS process ID is 1, all devices are Level-2
devices, and the NET is converted from the Loopback0 IP address. For example, the NET
of PE2 is 49.0001.0010.0000.0002.00. Enable IPv6 for the IS-IS process and enable IS-IS
IPv6 on Loopback0 and interconnection interfaces.
In this case, you need to set cost-style to wide to support IS-IS extensions.
# Configure PE2.
[PE2]isis 1
[PE2-isis-1] is-level level-2
[PE2-isis-1] cost-style wide
[PE2-isis-1] network-entity 49.0001.0010.0000.0002.00
[PE2-isis-1] is-name PE2
[PE2-isis-1] ipv6 enable topology ipv6
# Configure P2.
[P2]isis 1
[P2-isis-1] is-level level-2
[P2-isis-1] cost-style wide
[P2-isis-1] network-entity 49.0001.0010.0000.0006.00
[P2-isis-1] is-name P2
[P2-isis-1] ipv6 enable topology ipv6
# Configure PE4.
[PE4]isis 1
[PE4-isis-1] is-level level-2
[PE4-isis-1] cost-style wide
[PE4-isis-1] network-entity 49.0001.0010.0000.0004.00
[PE4-isis-1] is-name PE4
[PE4-isis-1] ipv6 enable topology ipv6
[PE2]interface LoopBack0
[PE2-LoopBack0] isis ipv6 enable 1
[PE2-LoopBack0] quit
[PE2]interface GigabitEthernet0/3/1
[PE2-GigabitEthernet0/3/1] isis ipv6 enable 1
[PE2-GigabitEthernet0/3/1] isis circuit-type p2p
[P2]interface LoopBack0
[P2-LoopBack0] isis ipv6 enable 1
[P2-LoopBack0] quit
[P2]interface GigabitEthernet0/3/0
[P2-GigabitEthernet0/3/0] isis ipv6 enable 1
[P2-GigabitEthernet0/3/0] isis circuit-type p2p
[P2-GigabitEthernet0/3/0] quit
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 50
[P2]interface GigabitEthernet0/3/2
[P2-GigabitEthernet0/3/2] isis ipv6 enable 1
[P2-GigabitEthernet0/3/2] isis circuit-type p2p
[P2-GigabitEthernet0/3/2] quit
[PE4]interface LoopBack0
[PE4-LoopBack0] isis ipv6 enable 1
[PE4-LoopBack0] quit
[PE4]interface GigabitEthernet0/3/1
[PE4-GigabitEthernet0/3/1] isis ipv6 enable 1
[PE4-GigabitEthernet0/3/1] isis circuit-type p2p
[PE4-GigabitEthernet0/3/1] quit
IS-IS neighbor relationships with PE2 and PE4 have been established.
# Check IS-IS IPv6 routes on P2.
P2 has learned the IS-IS IPv6 routes generated by Loopback0 on PE2 and PE4.
Create a VPN instance named vpna on PE2 and PE4, add Loopback1 to the VPN instance,
and establish an MP-BGP VPNv4 peer relationship between PE2 and P2 and between PE4
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 51
and P2 (the AS number is 65001). P2 functions as the RR, and PE2 and PE4 function as
the RR clients and advertise VPNv4 routes through P2.
# Create a VPN instance named vpna.
# Create Loopback1, associate it with the VPN instance, and configure an IP address for
the interface.
[PE2]interface LoopBack 1
[PE2-LoopBack1] ip binding vpn-instance vpna
Info: All IPv4 and IPv6 related configurations on this interface are removed.
[PE2-LoopBack1] ip address 10.2.2.2 32
[PE4]interface LoopBack 1
[PE4-LoopBack1] ip binding vpn-instance vpna
Info: All IPv4 and IPv6 related configurations on this interface are removed.
[PE4-LoopBack1] ip address 10.4.4.4 32
Note that you need to associate the interface with the VPN instance before configuring
an IP address for the interface.
# Use Loopback0 to establish MP-BGP VPNv4 peer relationships. Configure router IDs as
planned in the following table.
PE2 1.0.0.2
P2 1.0.0.6
PE4 1.0.0.4
[PE2]bgp 65001
[PE2-bgp] router-id 1.0.0.2
[PE2-bgp] peer FC01::6 as-number 65001
[PE2-bgp] peer FC01::6 connect-interface LoopBack0
[PE2-bgp]ipv4-family vpnv4
[PE2-bgp-af-vpnv4] peer FC01::6 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 52
[P2]bgp 65001
[P2-bgp] router-id 1.0.0.6
[P2-bgp] peer FC01::2 as-number 65001
[P2-bgp] peer FC01::2 connect-interface LoopBack0
[P2-bgp] peer FC01::4 as-number 65001
[P2-bgp] peer FC01::4 connect-interface LoopBack0
[P2-bgp] ipv4-family vpnv4
[P2-bgp-af-vpnv4] undo policy vpn-target
[P2-bgp-af-vpnv4] peer FC01::2 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
[P2-bgp-af-vpnv4] peer FC01::2 reflect-client
[P2-bgp-af-vpnv4] peer FC01::4 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
[P2-bgp-af-vpnv4] peer FC01::4 reflect-client
[PE4]bgp 65001
[PE4-bgp] router-id 1.0.0.4
[PE4-bgp] peer FC01::6 as-number 65001
[PE4-bgp] peer FC01::6 connect-interface LoopBack0
[PE4-bgp]ipv4-family vpnv4
[PE4-bgp-af-vpnv4] peer FC01::6 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
[PE2]bgp 65001
[PE2-bgp]ipv4-family vpn-instance vpna
[PE2-bgp-vpna]import-route direct
[PE4]bgp 65001
[PE4-bgp]ipv4-family vpn-instance vpna
[PE4-bgp-vpna]import-route direct
PE2 has learned the VPNv4 route from PE4 through MP-BGP.
On PE2 and PE4, enable SRv6 globally, configure the Loopback0 IPv6 addresses as the
source addresses for SRv6 encapsulation, configure locators, enable automatic SRv6 SID
allocation for VPN routes in the BGP VPN instance, enable the function to add SRv6 SIDs
to VPN routes to be advertised in the BGP VPNv4 view, and enable the function to
advertise SRv6 locators through IS-IS.
Configure SRv6 locators as planned in the following table.
PE2 FC00:2:: 96 16
PE4 FC00:4:: 96 16
# Enable SR globally and configure the source address for SR encapsulation and locator.
[PE2]segment-routing ipv6
[PE2-segment-routing-ipv6] encapsulation source-address FC01::2
[PE2-segment-routing-ipv6] locator SRv6 ipv6-prefix FC00:2:: 96 static 16
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 54
[PE4]segment-routing ipv6
[PE4-segment-routing-ipv6] encapsulation source-address FC01::4
[PE4-segment-routing-ipv6] locator SRv6 ipv6-prefix FC00:4:: 96 static 16
# Enable the function to add SIDs to VPN routes to be advertised to BGP peers.
[PE2]bgp 65001
[PE2-bgp] ipv4-family vpnv4
[PE2-bgp-af-vpnv4] peer FC01::6 prefix-sid
[P2]bgp 65001
[P2-bgp] ipv4-family vpnv4
[P2-bgp-af-vpnv4] peer FC01::4 prefix-sid
[P2-bgp-af-vpnv4] peer FC01::2 prefix-sid
[PE4-bgp] 65001
[PE4-bgp] ipv4-family vpnv4
[PE4-bgp-af-vpnv4] peer FC01::6 prefix-sid
# Enable the function to add SIDs to VPN routes in the BGP VPN instance and specify the
previously created SRv6 locator as the locator for allocated SIDs.
[PE2]bgp 65001
[PE2-bgp] ipv4-family vpn-instance vpna
[PE2-bgp-vpna] segment-routing ipv6 best-effort
[PE2-bgp-vpna] segment-routing ipv6 locator SRv6
[PE4]bgp 65001
[PE4-bgp] ipv4-family vpn-instance vpna
[PE4-bgp-vpna] segment-routing ipv6 best-effort
[PE4-bgp-vpna] segment-routing ipv6 locator SRv6
[PE2]isis 1
[PE2-isis-1]segment-routing ipv6 locator SRv6
[PE4]isis 1
[PE4-isis-1] segment-routing ipv6 locator SRv6
In the IS-IS IPv6 routing table, we can find routes generated based on locators on PE2
and PE4. Reachability to SIDs generated based on these locators is implemented through
these routes.
# Check the SIDs (VPN labels) generated by SRv6 for VPN routes.
Total SID(s): 1
PE2 generates the SID FC00:2::1:9D for VPN routes in vpna and sends the SID to PE4
through a BGP Update message.
# On PE4, check detailed information about the VPNv4 route (10.2.2.2) from PE2.
The next hop of the route from PE4 to 10.2.2.2 is FC00:2::1:9D, that is, the SID assigned
by PE2 to VPN routes in the VPN instance.
When the CE attached to PE4 accesses the CE attached to PE2, the destination IPv6
address carried in the outer packet header is this address. After receiving the packet, PE2
can determine to which CE the inner packet should be sent according to the destination
IPv6 address.
Capture the headers of outgoing packets on GE0/3/0 of P2 and check the packet
encapsulation during communication between 10.4.4.4 and 10.2.2.2.
# On P2, create IPv6 ACL 3000 to match the outer headers of packets from 10.4.4.4 to
10.2.2.2.
Use the ACL rule to match packets with the destination IPv6 address of FC00:2::1:9D and
source IPv6 address of FC01::4.
# Run the capture-packet command on P2 to capture packet headers on GE0/3/0.
[P2]capture-packet forwarding interface GigabitEthernet 0/3/0 outbound ipv6 acl 3000 packet-num 5
packet-len 64 overwrite file SRv6BE.cap
Info: Capture-packet data will be saved to cfcard:/logfile/SRv6BE.cap.
Information about the captured packet headers is saved in the /logfile directory of the
device. We can download the file through FTP or SFTP. For details about how to enable
FTP or SFTP on the device, see the related product documentation (for example:
https://support.huawei.com/hedex/hdx.do?docid=EDOC1100168795&lang=en).
# Check captured packet headers.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 58
Frame 2: 138 bytes on wire (1104 bits), 64 bytes captured (512 bits)
Ethernet II, Src: HuaweiTe_7a:c3:f1 (dc:99:14:7a:c3:f1), Dst: HuaweiTe_7a:c2:8a (dc:99:14:7a:c2:8a)
Internet Protocol Version 6, Src: fc01::4, Dst: fc00:2::1:9D
Internet Protocol Version 4
The destination IPv6 address in the outer IPv6 packet header is fc00:2::19D. The IPv6
packet header is directly followed by the inner IPv4 header. In SRv6 BE, only one SID
layer needs to be used for forwarding over public network routes and differentiation of
VPN instances to which inner packets belong.
2.1.3 Quiz
In an L3VPNv6 over SRv6 BE scenario, which type of SID does BGP routes in a VPN
instance carry?
PE2 FC01::2
P2 FC01::6
PE4 FC01::4
<PE2>system-view immediately
<P2>system-view immediately
<PE4>system-view immediately
[PE2]interface LoopBack0
[PE2-LoopBack0] ipv6 enable
[PE2-LoopBack0] ipv6 address FC01::2/128
[PE2-LoopBack0] quit
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 60
[PE2]interface GigabitEthernet0/3/1
[PE2-GigabitEthernet0/3/1] ipv6 enable
[PE2-GigabitEthernet0/3/1] ipv6 address 2003::1/64
[P2]interface LoopBack0
[P2-LoopBack0] ipv6 enable
[P2-LoopBack0] ipv6 address FC01::6/128
[P2-LoopBack0] quit
[P2]interface GigabitEthernet0/3/0
[P2-GigabitEthernet0/3/0] ipv6 enable
[P2-GigabitEthernet0/3/0] ipv6 address 2003::2/64
[P2-GigabitEthernet0/3/0] quit
[P2]interface GigabitEthernet0/3/2
[P2-GigabitEthernet0/3/2] ipv6 enable
[P2-GigabitEthernet0/3/2] ipv6 address 2006::1/64
Ensure that the IS-IS area ID is 49.0001, the IS-IS process ID is 1, all devices are Level-2
devices, and the NET is converted from the Loopback0 IP address. For example, the NET
of PE2 is 49.0001.0010.0000.0002.00. Enable IPv6 for the IS-IS process and enable IS-IS
IPv6 on Loopback0 and interconnection interfaces.
In this case, you need to set cost-style to wide to support IS-IS extensions.
# Configure PE2.
[PE2]isis 1
[PE2-isis-1] is-level level-2
[PE2-isis-1] cost-style wide
[PE2-isis-1] network-entity 49.0001.0010.0000.0002.00
[PE2-isis-1] is-name PE2
[PE2-isis-1] ipv6 enable topology ipv6
# Configure P2.
[P2]isis 1
[P2-isis-1] is-level level-2
[P2-isis-1] cost-style wide
[P2-isis-1] network-entity 49.0001.0010.0000.0006.00
[P2-isis-1] is-name P2
[P2-isis-1] ipv6 enable topology ipv6
# Configure PE4.
[PE4]isis 1
[PE4-isis-1] is-level level-2
[PE4-isis-1] cost-style wide
[PE4-isis-1] network-entity 49.0001.0010.0000.0004.00
[PE4-isis-1] is-name PE4
[PE4-isis-1] ipv6 enable topology ipv6
[PE2]interface LoopBack0
[PE2-LoopBack0] isis ipv6 enable 1
[PE2-LoopBack0] quit
[PE2]interface GigabitEthernet0/3/1
[PE2-GigabitEthernet0/3/1] isis ipv6 enable 1
[PE2-GigabitEthernet0/3/1] isis circuit-type p2p
[P2]interface LoopBack0
[P2-LoopBack0] isis ipv6 enable 1
[P2-LoopBack0] quit
[P2]interface GigabitEthernet0/3/0
[P2-GigabitEthernet0/3/0] isis ipv6 enable 1
[P2-GigabitEthernet0/3/0] isis circuit-type p2p
[P2-GigabitEthernet0/3/0] quit
[P2]interface GigabitEthernet0/3/2
[P2-GigabitEthernet0/3/2] isis ipv6 enable 1
[P2-GigabitEthernet0/3/2] isis circuit-type p2p
[P2-GigabitEthernet0/3/2] quit
[PE4]interface LoopBack0
[PE4-LoopBack0] isis ipv6 enable 1
[PE4-LoopBack0] quit
[PE4]interface GigabitEthernet0/3/1
[PE4-GigabitEthernet0/3/1] isis ipv6 enable 1
[PE4-GigabitEthernet0/3/1] isis circuit-type p2p
[PE4-GigabitEthernet0/3/1] quit
IS-IS neighbor relationships with PE2 and PE4 have been established.
# Check IS-IS IPv6 routes on P2.
P2 has learned the IS-IS IPv6 routes generated by Loopback0 on PE2 and PE4.
Create a VPN instance named vpna on PE2 and PE4, add Loopback1 to the VPN instance,
and establish an MP-BGP VPNv4 peer relationship between PE2 and P2 and between PE4
and P2 (the AS number is 65001). P2 functions as the RR, and PE2 and PE4 function as
the RR clients and advertise VPNv4 routes through P2.
# Create a VPN instance named vpna.
# Create Loopback1, associate it with the VPN instance, and configure an IP address for
the interface.
[PE2]interface LoopBack 1
[PE2-LoopBack1] ip binding vpn-instance vpna
Info: All IPv4 and IPv6 related configurations on this interface are removed.
[PE2-LoopBack1] ip address 10.2.2.2 32
[PE4]interface LoopBack 1
[PE4-LoopBack1] ip binding vpn-instance vpna
Info: All IPv4 and IPv6 related configurations on this interface are removed.
[PE4-LoopBack1] ip address 10.4.4.4 32
Note that you need to associate the interface with the VPN instance before configuring
an IP address for the interface.
# Use Loopback0 to establish MP-BGP VPNv4 peer relationships. Configure router IDs as
planned in the following table.
PE2 1.0.0.2
P2 1.0.0.6
PE4 1.0.0.4
[PE2]bgp 65001
[PE2-bgp] router-id 1.0.0.2
[PE2-bgp] peer FC01::6 as-number 65001
[PE2-bgp] peer FC01::6 connect-interface LoopBack0
[PE2-bgp]ipv4-family vpnv4
[PE2-bgp-af-vpnv4] peer FC01::6 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
[P2]bgp 65001
[P2-bgp] router-id 1.0.0.6
[P2-bgp] peer FC01::2 as-number 65001
[P2-bgp] peer FC01::2 connect-interface LoopBack0
[P2-bgp] peer FC01::4 as-number 65001
[P2-bgp] peer FC01::4 connect-interface LoopBack0
[P2-bgp] ipv4-family vpnv4
[P2-bgp-af-vpnv4] undo policy vpn-target
[P2-bgp-af-vpnv4] peer FC01::2 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
[P2-bgp-af-vpnv4] peer FC01::2 reflect-client
[P2-bgp-af-vpnv4] peer FC01::4 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
[P2-bgp-af-vpnv4] peer FC01::4 reflect-client
[PE4]bgp 65001
[PE4-bgp] router-id 1.0.0.4
[PE4-bgp] peer FC01::6 as-number 65001
[PE4-bgp] peer FC01::6 connect-interface LoopBack0
[PE4-bgp]ipv4-family vpnv4
[PE4-bgp-af-vpnv4] peer FC01::6 enable
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
[PE2]bgp 65001
[PE2-bgp]ipv4-family vpn-instance vpna
[PE2-bgp-vpna]import-route direct
[PE4]bgp 65001
[PE4-bgp]ipv4-family vpn-instance vpna
[PE4-bgp-vpna]import-route direct
PE2 has learned the VPNv4 route from PE4 through MP-BGP.
# Create a route-policy on PE2 and PE4.
[PE2]bgp 65001
[PE2-bgp] ipv4-family vpnv4
[PE2-bgp-af-vpnv4] peer FC01::6 route-policy Color export
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 66
[PE4]bgp 65001
[PE4-bgp] ipv4-family vpnv4
[PE4-bgp-af-vpnv4] peer FC01::6 route-policy Color export
Enable SRv6 globally on PE2 and PE4, configure Loopback0 IPv6 addresses as source
addresses for SRv6 encapsulation, configure locators, manually assign SIDs to PE2, P2,
and PE4 as node IDs for these devices, and manually assign SIDs to VPN routes in the
VPN instance. Enable the function to add SRv6 SIDs to VPN routes to be advertised in the
BGP VPNv4 view and the function to advertise SRv6 locators through IS-IS.
Configure SRv6 locators as planned in the following table.
PE2 FC00:2:: 96 16
P2 FC00:6:: 96 16
PE4 FC00:4:: 96 16
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 67
# Enable SR globally and configure the source address for SR encapsulation and locator.
[PE2]segment-routing ipv6
[PE2-segment-routing-ipv6] encapsulation source-address FC01::2
[PE2-segment-routing-ipv6] locator SRv6 ipv6-prefix FC00:2:: 96 static 16
[PE2-segment-routing-ipv6-locator] opcode ::1 end
[PE2-segment-routing-ipv6-locator] opcode ::22 end-dt4 vpn-instance vpna
[P2]segment-routing ipv6
[P2-segment-routing-ipv6] encapsulation source-address FC01::6
[P2-segment-routing-ipv6] locator SRv6 ipv6-prefix FC00:6:: 96 static 16
[P2-segment-routing-ipv6-locator] opcode ::1 end
[PE4]segment-routing ipv6
[PE4-segment-routing-ipv6] encapsulation source-address FC01::4
[PE4-segment-routing-ipv6] locator SRv6 ipv6-prefix FC00:4:: 96 static 16
[PE4-segment-routing-ipv6-locator] opcode ::1 end
[PE4-segment-routing-ipv6-locator] opcode ::44 end-dt4 vpn-instance vpna
Configure node SIDs for PE2, P2, and PE4, and manually assign SIDs to the VPN instance
on PE2 and PE4.
# Enable the function to add SIDs to VPN routes to be advertised to BGP peers.
[PE2]bgp 65001
[PE2-bgp] ipv4-family vpnv4
[PE2-bgp-af-vpnv4] peer FC01::6 prefix-sid
[P2]bgp 65001
[P2-bgp] ipv4-family vpnv4
[P2-bgp-af-vpnv4] peer FC01::4 prefix-sid
[P2-bgp-af-vpnv4] peer FC01::2 prefix-sid
[PE4]bgp 65001
[PE4-bgp] ipv4-family vpnv4
[PE4-bgp-af-vpnv4] peer FC01::6 prefix-sid
# In the BGP VPN instance, enable the function to recurse the service to an SRv6 Policy.
[PE2]bgp 65001
[PE2-bgp] ipv4-family vpn-instance vpna
[PE2-bgp-vpna] segment-routing ipv6 traffic-engineer best-effort
[PE2-bgp-vpna] segment-routing ipv6 locator SRv6 auto-sid-disable
[PE4]bgp 65001
[PE4-bgp] ipv4-family vpn-instance vpna
[PE4-bgp-vpna] segment-routing ipv6 traffic-engineer best-effort
[PE4-bgp-vpna] segment-routing ipv6 locator SRv6 auto-sid-disable
Because END.DT4 SIDs are manually assigned to VPN instance routes, you do not need to
enable the function to automatically assign SIDs to routes. To disable this function, run
the auto-sid-disable command.
# Enable IS-IS to advertise SRv6 locators.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 68
[PE2]isis 1
[PE2-isis-1] segment-routing ipv6 locator SRv6 auto-sid-disable
[PE4]isis 1
[PE4-isis-1] segment-routing ipv6 locator SRv6 auto-sid-disable
Because END SIDs are manually allocated in this example, disable automatic SID
allocation here.
# Check the END SID on PE2, P2, and PE4.
Total SID(s): 1
Total SID(s): 1
Total SID(s): 1
These END SIDs will be used to configure forwarding paths for SRv6 Policies.
# Check the END.DT4 SID on PE2 and PE4.
Total SID(s): 1
Total SID(s): 1
Configure candidate paths on PE2 and PE4 and use these candidate paths for SRv6
Policies.
# Configure candidate paths on PE2.
[PE2]segment-routing ipv6
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 70
[PE4]segment-routing ipv6
[PE4-segment-routing-ipv6] segment-list PE4_PE2
[PE4-segment-routing-ipv6-segment-list-PE4_PE2] index 5 sid ipv6 FC00:6::1
[PE4-segment-routing-ipv6-segment-list-PE4_PE2] index 10 sid ipv6 FC00:2::1
[PE4-segment-routing-ipv6-segment-list-PE4_PE2] quit
[PE4-segment-routing-ipv6] srv6-te policy p1 endpoint fc01::2 color 100
[PE4-segment-routing-ipv6-policy-p1] candidate-path preference 100
[PE4-segment-routing-ipv6-policy-p1-path] segment-list PE4_PE2
[PE2]tunnel-policy p1
[PE2-tunnel-policy-p1] tunnel select-seq ipv6 srv6-te-policy load-balance-number 1
[PE4]tunnel-policy p1
[PE4-tunnel-policy-p1] tunnel select-seq ipv6 srv6-te-policy load-balance-number 1
The route has recursed to a logical interface (based on the tunnel policy).
# Check detailed information about route 10.4.4.4.
Destination: 10.4.4.4/32
Protocol : IBGP Process ID : 0
Preference : 255 Cost: 0
NextHop: FC01::4 Neighbour : FC01::6
State : Active Adv Relied Age : 00h04m19s
Tag: 0 Priority : low
Label : 3 QoSInfo : 0x0
IndirectID : 0x1000306 Instance :
RelayNextHop: :: Interface : p1
TunnelID : 0x000000003400002f41 Flags : RD
Capture the headers of incoming packets on GE0/3/0 of P2 and check the packet
encapsulation during communication between 10.2.2.2 and 10.4.4.4.
# On P2, create IPv6 ACL 3000 to match the outer headers of packets from 10.2.2.2 to
10.4.4.4.
When these packets arrive at P2, the source IPv6 address is FC01::2 (source address for
encapsulation on PE2) and the destination IPv6 address is FC00:6::1 (END SID of P2).
# Run the capture-packet command on P2 to capture packet headers on GE0/3/0.
[P2]capture-packet forwarding interface GigabitEthernet 0/3/0 inbound ipv6 acl 3000 packet-num 5
packet-len 64 overwrite file SRv6TE.cap
Info: Capture-packet data will be saved to cfcard:/logfile/SRv6TE.cap.
# On PE2, check the connectivity between Loopback1 on PE2 and Loopback1 on PE4.
Frame 1: 194 bytes on wire (1552 bits), 64 bytes captured (512 bits)
Ethernet II, Src: HuaweiTe_7a:c2:8a (dc:99:14:7a:c2:8a), Dst: HuaweiTe_7a:c3:f1 (dc:99:14:7a:c3:f1)
Internet Protocol Version 6, Src: fc01::2, Dst: fc00:6::1
0110 .... = Version: 6
.... 0000 0000 .... .... .... .... .... = Traffic Class: 0x00 (DSCP: CS0, ECN: Not-ECT)
.... .... .... 0000 0000 0000 0000 0000 = Flow Label: 0x00000
Payload Length: 140
Next Header: Routing Header for IPv6 (43)
Hop Limit: 255
Source Address: fc01::2
Destination Address: fc00:6::1
Routing Header for IPv6 (Segment Routing)
Next Header: IPIP (4)
Length: 6
[Length: 56 bytes]
Type: Segment Routing (4)
Segments Left: 2
Last Entry: 2
Flags: 0x00
The SRH still carries two SIDs when packets reach P2. Due to limitations on the captured
packet header length, the specific SIDs cannot be viewed. However, we know that one
SID is PE4's END SID {FC00:4::1}, and the other SID (the last SID) is an END.DT4 SID
{FC00:4::44}.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 73
2.2.3 Quiz
What are End SIDs and End.DT4 SIDs used to identify?
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 74
Figure 3-1 Experiment topology for SR-MPLS service delivery through the
controller
The figure shows the device connection and IP address planning. The interface
interconnection addresses are in the format of 10.0.0.Y/30, and the values represented by
Y are shown in the figure. Loopback0 is created on all devices. The Loopback0 address is
used as the MPLS LSR ID of each device in the SR domain.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 75
IS-IS is enabled globally in the entire SR domain, and SR labels are distributed through
IS-IS.
BGP runs in the AS. P1 and P2 function as RRs. All PEs establish VPNv4 peer relationships
and SR Policy peer relationships with P1 and P2.
All devices connect to iMaster NCE-IP through the management interface (GE0/0/0). The
controller address is shown in the figure.
Now we need to use iMaster NCE-IP to manage all devices and then deliver L3VPNv4
over SR-MPLS TE and L3VPNv4 over SR-MPLS Policy configurations.
P1 5
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 76
P2 6
PE1 1
PE2 2
PE3 3
PE4 4
Configure IP addresses for the management interfaces (GE0/0/0) of all devices. These IP
addresses are used for communication between the devices and iMaster NCE-IP.
# Configure the configuration validation mode as immediate validation.
<PE2>system-view immediately
[PE1]interface GigabitEthernet0/0/0
[PE1-GigabitEthernet0/0/0] undo ip binding vpn-instance __LOCAL_OAM_VPN__
[PE1-GigabitEthernet0/0/0] ip address 172.21.17.1 24
[PE1-GigabitEthernet0/0/0] quit
#PE2
[PE2]interface GigabitEthernet0/0/0
[PE2-GigabitEthernet0/0/0] undo ip binding vpn-instance __LOCAL_OAM_VPN__
[PE2-GigabitEthernet0/0/0] ip address 172.21.17.2 24
[PE2-GigabitEthernet0/0/0] quit
#PE3
[PE3]interface GigabitEthernet0/0/0
[PE3-GigabitEthernet0/0/0] undo ip binding vpn-instance __LOCAL_OAM_VPN__
[PE3-GigabitEthernet0/0/0] ip address 172.21.17.3 24
[PE3-GigabitEthernet0/0/0] quit
#PE4
[PE4]interface GigabitEthernet0/0/0
[PE4-GigabitEthernet0/0/0] undo ip binding vpn-instance __LOCAL_OAM_VPN__
[PE4-GigabitEthernet0/0/0] ip address 172.21.17.4 24
[PE4-GigabitEthernet0/0/0] quit
#P1
[P1]interface GigabitEthernet0/0/0
[P1-GigabitEthernet0/0/0] undo ip binding vpn-instance __LOCAL_OAM_VPN__
[P1-GigabitEthernet0/0/0] ip address 172.21.17.5 24
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 77
[P1-GigabitEthernet0/0/0] quit
#P2
[P2]interface GigabitEthernet0/0/0
[P2-GigabitEthernet0/0/0] undo ip binding vpn-instance __LOCAL_OAM_VPN__
[P2-GigabitEthernet0/0/0] ip address 172.21.17.6 24
[P2-GigabitEthernet0/0/0] quit
Create Loopback0 on each device and use the Loopback0 IP address as the BGP router ID
and MPLS LSR ID of the device.
#PE1
[PE1]interface LoopBack0
[PE1-LoopBack0] ip address 1.0.0.1 32
[PE1-LoopBack0] quit
#PE2
[PE2]interface LoopBack0
[PE2-LoopBack0] ip address 1.0.0.2 32
[PE2-LoopBack0] quit
#PE3
[PE3]interface LoopBack0
[PE3-LoopBack0] ip address 1.0.0.3 32
[PE3-LoopBack0] quit
#PE4
[PE4]interface LoopBack0
[PE4-LoopBack0] ip address 1.0.0.4 32
[PE4-LoopBack0] quit
#P1
[P1]interface LoopBack0
[P1-LoopBack0] ip address 1.0.0.5 32
[P1-LoopBack0] quit
#P2
[P2]interface LoopBack0
[P2-LoopBack0] ip address 1.0.0.6 32
[P2-LoopBack0] quit
[P1]interface GigabitEthernet0/3/0
[P1-GigabitEthernet0/3/0] ip address 10.0.0.2 30
[P1-GigabitEthernet0/3/0] quit
[P1]interface GigabitEthernet0/3/2
[P1-GigabitEthernet0/3/2] ip address 10.0.0.5 30
[P1-GigabitEthernet0/3/2] quit
[P1]interface GigabitEthernet0/3/4
[P1-GigabitEthernet0/3/4] ip address 10.0.0.30 30
[P1-GigabitEthernet0/3/4] quit
[P2]interface GigabitEthernet0/3/0
[P2-GigabitEthernet0/3/0] ip address 10.0.0.21 30
[P2-GigabitEthernet0/3/0] quit
[P2]interface GigabitEthernet0/3/2
[P2-GigabitEthernet0/3/2] ip address 10.0.0.18 30
[P2-GigabitEthernet0/3/2] quit
[P2]interface GigabitEthernet0/3/4
[P2-GigabitEthernet0/3/4] ip address 10.0.0.29 30
[P2-GigabitEthernet0/3/4] quit
[PE1]interface GigabitEthernet0/3/0
[PE1-GigabitEthernet0/3/0] ip address 10.0.0.26 30
[PE1-GigabitEthernet0/3/0] quit
[PE1]interface GigabitEthernet0/3/1
[PE1-GigabitEthernet0/3/1] ip address 10.0.0.1 30
[PE1-GigabitEthernet0/3/1] quit
[PE2]interface GigabitEthernet0/3/0
[PE2-GigabitEthernet0/3/0] ip address 10.0.0.25 30
[PE2-GigabitEthernet0/3/0] quit
[PE2]interface GigabitEthernet0/3/1
[PE2-GigabitEthernet0/3/1] ip address 10.0.0.22 30
[PE2-GigabitEthernet0/3/1] quit
[PE3]interface GigabitEthernet0/3/0
[PE3-GigabitEthernet0/3/0] ip address 10.0.0.34 30
[PE3-GigabitEthernet0/3/0] quit
[PE3]interface GigabitEthernet0/3/1
[PE3-GigabitEthernet0/3/1] ip address 10.0.0.6 30
[PE3-GigabitEthernet0/3/1] quit
[PE4]interface GigabitEthernet0/3/0
[PE4-GigabitEthernet0/3/0] ip address 10.0.0.33 30
[PE4-GigabitEthernet0/3/0] quit
[PE4]interface GigabitEthernet0/3/1
[PE4-GigabitEthernet0/3/1] ip address 10.0.0.17 30
[PE4-GigabitEthernet0/3/1] quit
Enable SSH, create an SSH user named netconf, and enable NETCONF on each device.
NETCONF is used by iMaster NCE-IP to deliver configurations to devices.
This step uses PE1 as an example. Repeat the configuration for other devices.
# Configure a user interface to allow SSH packets to pass through.
[PE1]user-interface vty 0 4
[PE1-ui-vty0-4] authentication-mode aaa
[PE1-ui-vty0-4] protocol inbound all
[PE1]aaa
[PE1-aaa] local-user netconf password irreversible-cipher Huawei@123
Info: A new user is added.
[PE1-aaa] local-user netconf service-type ftp ssh
[PE1-aaa] local-user netconf level 3
[PE1-aaa] local-user netconf state block fail-times 3 interval 5
[PE1-aaa] local-user netconf user-group manage-ug
Create a user named netconf, set the user type to FTP and SSH, and add the user to the
default user group manage-ug. Then, set the maximum number of SSH login attempts
allowed to 3 and the lockout interval to 5s.
Enable SSH.
# Configure NETCONF.
Enable NETCONF, set the password authentication mode for SSH login by NETCONF
users, and set the service type to all (including SSH, SFTP, and SNETCONF).
# Configure SFTP.
Enable SFTP, specify Loopback0 as the source interface for communication, and specify
the netconf user as the SFTP user.
Configure SNMPv3 on each device. Create a user named snmp and a user group named
snmp. Set the authentication algorithm to SHA2-512 and encryption algorithm to
AES128.
SNMP is used by iMaster NCE-IP to discover and manage devices.
# Configure the SNMP version and view.
Set the SNMP version to all and create a view named iso-view that corresponds to the
iso subtree.
Configure all interfaces to be able to receive and respond to SNMP packets.
Create an SNMP group named snmp, and set the read, write, and notification
permissions to iso-view.
Create an SNMPv3 user named snmp and add it to the snmp group. Set the
authentication algorithm to SHA2-512, authentication password to Huawei@123,
encryption algorithm to AES128, and authentication password to Huawei@123.
Disable the SNMP IP address blacklist function, configure Loopback0 as the source
interface for communication, and enable the SNMP trap function.
[PE1]Lldp enable
Info: Global LLDP is already enabled.
Ensure that the IS-IS area ID is 49.0001, the IS-IS process ID is 1, all devices are Level-2
devices, and the NET is converted from the Loopback0 IP address (for example, PE2's NET
is 49.0001.0010.0000.0002.00). Then enable IS-IS on Loopback0 and interconnection
interfaces.
In this case, you need to set cost-style to wide to support IS-IS extensions.
# Enable BFD globally.
[PE1]bfd
PE1 is used as an example here. Repeat the configuration for other devices.
used as a forwarding node during LSP-based path calculation. The command parameters
include on-startup and wait-for-bgp.
metric-delay advertisement enable: This command enables IPv4 delay advertisement.
After this function is enabled, IS-IS collects and floods information about the intra-area
IPv4 link delay, and BGP-LS reports the information to the controller. The controller can
then use the delay information to compute optimal paths on the P2P network.
# Configure IS-IS on P1.
[P1]isis 1
[P1-isis-1] is-level level-2
[P1-isis-1] cost-style wide
[P1-isis-1] bfd all-interfaces enable
[P1-isis-1] advertise link attributes
[P1-isis-1] bgp-ls enable level-2
[P1-isis-1] network-entity 49.0001.0010.0000.0005.00
[P1-isis-1] is-name P1
[P1-isis-1] traffic-eng level-2
[P1-isis-1] set-overload on-startup
[P1-isis-1] metric-delay advertisement enable level-1-2
[P2]isis 1
[P2-isis-1] is-level level-2
[P2-isis-1] cost-style wide
[P2-isis-1] bfd all-interfaces enable
[P2-isis-1] advertise link attributes
[P2-isis-1] bgp-ls enable level-2
[P2-isis-1] network-entity 49.0001.0010.0000.0006.00
[P2-isis-1] is-name P2
[P2-isis-1] traffic-eng level-2
[P2-isis-1] set-overload on-startup
[P2-isis-1] metric-delay advertisement enable level-1-2
[PE1]isis 1
[PE1-isis-1] is-level level-2
[PE1-isis-1] cost-style wide
[PE1-isis-1] bfd all-interfaces enable
[PE1-isis-1] advertise link attributes
[PE1-isis-1] bgp-ls enable level-2
[PE1-isis-1] network-entity 49.0001.0010.0000.0001.00
[PE1-isis-1] is-name PE1
[PE1-isis-1] traffic-eng level-2
[PE1-isis-1] set-overload on-startup
[PE1-isis-1] metric-delay advertisement enable level-1-2
[PE2]isis 1
[PE2-isis-1] is-level level-2
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 83
[PE3]isis 1
[PE3-isis-1] is-level level-2
[PE3-isis-1] cost-style wide
[PE3-isis-1] bfd all-interfaces enable
[PE3-isis-1] advertise link attributes
[PE3-isis-1] bgp-ls enable level-2
[PE3-isis-1] network-entity 49.0001.0010.0000.0003.00
[PE3-isis-1] is-name P3
[PE3-isis-1] traffic-eng level-2
[PE3-isis-1] set-overload on-startup
[PE3-isis-1] metric-delay advertisement enable level-1-2
[PE4]isis 1
[PE4-isis-1] is-level level-2
[PE4-isis-1] cost-style wide
[PE4-isis-1] bfd all-interfaces enable
[PE4-isis-1] advertise link attributes
[PE4-isis-1] bgp-ls enable level-2
[PE4-isis-1] network-entity 49.0001.0010.0000.0004.00
[PE4-isis-1] is-name P4
[PE4-isis-1] traffic-eng level-2
[PE4-isis-1] set-overload on-startup
[PE4-isis-1] metric-delay advertisement enable level-1-2
Enable IS-IS on the interconnection and Loopback0 interfaces of all devices and set the
link type to P2P.
#P1
[P1]interface GigabitEthernet0/3/0
[P1-GigabitEthernet0/3/0] isis enable 1
[P1-GigabitEthernet0/3/0]isis circuit-type p2p
[P1-GigabitEthernet0/3/0] quit
[P1]interface GigabitEthernet0/3/2
[P1-GigabitEthernet0/3/2] isis enable 1
[P1-GigabitEthernet0/3/2] isis circuit-type p2p
[P1-GigabitEthernet0/3/2] quit
[P1]interface GigabitEthernet0/3/4
[P1-GigabitEthernet0/3/4] isis enable 1
[P1-GigabitEthernet0/3/4] isis circuit-type p2p
[P1-GigabitEthernet0/3/4] quit
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 84
[P1]interface LoopBack0
[P1-LoopBack0] isis enable 1
#P2
[P2]interface GigabitEthernet0/3/0
[P2-GigabitEthernet0/3/0] isis enable 1
[P2-GigabitEthernet0/3/0] isis circuit-type p2p
[P2-GigabitEthernet0/3/0] quit
[P2]interface GigabitEthernet0/3/2
[P2-GigabitEthernet0/3/2] isis enable 1
[P2-GigabitEthernet0/3/2] isis circuit-type p2p
[P2-GigabitEthernet0/3/2] quit
[P2]interface GigabitEthernet0/3/4
[P2-GigabitEthernet0/3/4] isis enable 1
[P2-GigabitEthernet0/3/4] isis circuit-type p2p
[P2-GigabitEthernet0/3/4] quit
[P2]interface LoopBack0
[P2-LoopBack0] isis enable 1
#PE1
[PE1]interface GigabitEthernet0/3/0
[PE1-GigabitEthernet0/3/0] isis enable 1
[PE1-GigabitEthernet0/3/0] isis circuit-type p2p
[PE1-GigabitEthernet0/3/0] quit
[PE1]interface GigabitEthernet0/3/1
[PE1-GigabitEthernet0/3/1] isis enable 1
[PE1-GigabitEthernet0/3/1] isis circuit-type p2p
[PE1-GigabitEthernet0/3/1] quit
[PE1]interface LoopBack0
[PE1-LoopBack0] isis enable 1
#PE2
[PE2]interface GigabitEthernet0/3/0
[PE2-GigabitEthernet0/3/0] isis enable 1
[PE2-GigabitEthernet0/3/0] isis circuit-type p2p
[PE2-GigabitEthernet0/3/0] quit
[PE2]interface GigabitEthernet0/3/1
[PE2-GigabitEthernet0/3/1] isis enable 1
[PE2-GigabitEthernet0/3/1] isis circuit-type p2p
[PE2-GigabitEthernet0/3/1] quit
[PE2]interface LoopBack0
[PE2-LoopBack0] isis enable 1
#PE3
[PE3]interface GigabitEthernet0/3/0
[PE3-GigabitEthernet0/3/0] isis enable 1
[PE3-GigabitEthernet0/3/0] isis circuit-type p2p
[PE3-GigabitEthernet0/3/0] quit
[PE3]interface GigabitEthernet0/3/1
[PE3-GigabitEthernet0/3/1] isis enable 1
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 85
#PE4
[PE4]interface GigabitEthernet0/3/0
[PE4-GigabitEthernet0/3/0] isis enable 1
[PE4-GigabitEthernet0/3/0] isis circuit-type p2p
[PE4-GigabitEthernet0/3/0] quit
[PE4]interface GigabitEthernet0/3/1
[PE4-GigabitEthernet0/3/1] isis enable 1
[PE4-GigabitEthernet0/3/1] isis circuit-type p2p
[PE4-GigabitEthernet0/3/1] quit
[PE4]interface LoopBack0
[PE4-LoopBack0] isis enable 1
Enable SR-MPLS globally, enable IS-IS to support SR-MPLS, set the SRGB range to 16000–
17000, and enable LFA and TI-LFA.
In the PE SR-MPLS view, enable the function to report TE Policy status through BGP-LS,
so that iMaster NCE-IP can monitor the tunnel status.
Configure a prefix SID for the Loopback0 IP address, and use the prefix SID as the node
SID to identify the node. Specify a relative label value as the prefix SID, and use the X
value in Loopback0 IP address 1.0.0.X as the offset value. For example, if the Loopback0
IP address on PE1 is 1.0.0.1, then the offset value is 1.
# Enable SR globally.
[PE1]segment-routing
[PE1]segment-routing
[PE1-segment-routing] sr-te-policy bgp-ls enable
Step 3 Enable SR-MPLS and configure the SRGB, LFA, and TI-LFA for IS-IS.
#P1
[P1]isis 1
[P1-isis-1] segment-routing mpls
[P1-isis-1] segment-routing global-block 16000 17000
[P1-isis-1]frr
[P1-isis-1-frr] loop-free-alternate level-2
[P1-isis-1-frr] ti-lfa level-2
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 86
[P1]interface LoopBack0
[P1-LoopBack0] isis prefix-sid index 5
#P2
[P2]interface LoopBack0
[P2-LoopBack0] isis prefix-sid index 6
#PE1
[PE1]interface LoopBack0
[PE1-LoopBack0] isis prefix-sid index 1
#PE2
[PE2]interface LoopBack0
[PE2-LoopBack0] isis prefix-sid index 2
#PE3
[PE3]interface LoopBack0
[PE3-LoopBack0] isis prefix-sid index 3
#PE4
[PE4]interface LoopBack0
[PE4-LoopBack0] isis prefix-sid index 4
Step 1 Enable MPLS and MPLS TE and configure LSR IDs on all nodes in the SR domain.
#PE1
PE1 is used as an example. Configure LSR IDs for other devices as planned.
#P1
[P1]interface GigabitEthernet0/3/0
[P1-GigabitEthernet0/3/0] mpls
[P1-GigabitEthernet0/3/0]mpls te
[P1-GigabitEthernet0/3/0] quit
[P1]interface GigabitEthernet0/3/2
[P1-GigabitEthernet0/3/2] mpls
[P1-GigabitEthernet0/3/2] mpls te
[P1-GigabitEthernet0/3/2] quit
[P1]interface GigabitEthernet0/3/4
[P1-GigabitEthernet0/3/4] mpls
[P1-GigabitEthernet0/3/4] mpls te
[P1-GigabitEthernet0/3/4] quit
#P2
[P2]interface GigabitEthernet0/3/0
[P2-GigabitEthernet0/3/0] mpls
[P2-GigabitEthernet0/3/0] mpls te
[P2-GigabitEthernet0/3/0] quit
[P2]interface GigabitEthernet0/3/2
[P2-GigabitEthernet0/3/2] mpls
[P2-GigabitEthernet0/3/2] mpls te
[P2-GigabitEthernet0/3/2] quit
[P2]interface GigabitEthernet0/3/4
[P2-GigabitEthernet0/3/4] mpls
[P2-GigabitEthernet0/3/4] mpls te
[P2-GigabitEthernet0/3/4] quit
#PE1
[PE1]interface GigabitEthernet0/3/0
[PE1-GigabitEthernet0/3/0] mpls
[PE1-GigabitEthernet0/3/0] mpls te
[PE1-GigabitEthernet0/3/0] quit
[PE1]interface GigabitEthernet0/3/1
[PE1-GigabitEthernet0/3/1] mpls
[PE1-GigabitEthernet0/3/1] mpls te
[PE1-GigabitEthernet0/3/1] quit
#PE2
[PE2]interface GigabitEthernet0/3/0
[PE2-GigabitEthernet0/3/0] mpls
[PE2-GigabitEthernet0/3/0] mpls te
[PE2-GigabitEthernet0/3/0] quit
[PE2]interface GigabitEthernet0/3/1
[PE2-GigabitEthernet0/3/1] mpls
[PE2-GigabitEthernet0/3/1] mpls te
[PE2-GigabitEthernet0/3/1] quit
#PE3
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 88
[PE3]interface GigabitEthernet0/3/0
[PE3-GigabitEthernet0/3/0] mpls
[PE3-GigabitEthernet0/3/0] mpls te
[PE3-GigabitEthernet0/3/0] quit
[PE3]interface GigabitEthernet0/3/1
[PE3-GigabitEthernet0/3/1] mpls3
[PE3-GigabitEthernet0/3/1] mpls te
[PE3-GigabitEthernet0/3/1] quit
#PE4
[PE4]interface GigabitEthernet0/3/0
[PE4-GigabitEthernet0/3/0] mpls
[PE4-GigabitEthernet0/3/0] mpls te
[PE4-GigabitEthernet0/3/0] quit
[PE4]interface GigabitEthernet0/3/1
[PE4-GigabitEthernet0/3/1] mpls
[PE4-GigabitEthernet0/3/1] mpls te
[PE4-GigabitEthernet0/3/1] quit
Configure all devices as PCE clients and specify iMaster NCE-IP as the PCE server.
#PE1
[PE1]pce-client
[PE1-pce-client] connect-server 172.21.17.102
[PE1-pce-client-connect-172.21.17.102] capability segment-routing
Here, PE1 is used as an example to describe how to specify iMaster NCE-IP as the PCE
server. Repeat the configuration for other devices.
# Delegate TE tunnels to the PCE server.
[PE1]mpls
[PE1-mpls] mpls te pce delegate
PE1 is used as an example here. Repeat the configuration for other devices.
Establish VPNv4 peer relationships between PEs and RRs. Use the Loopback0 IP address
as the BGP router ID.
# Configure PE1.
[PE1]bgp 65001
[PE1-bgp] router-id 1.0.0.1
[PE1-bgp] undo default ipv4-unicast
[PE1-bgp] peer 1.0.0.5 as-number 65001
[PE1-bgp] peer 1.0.0.5 connect-interface LoopBack0
[PE1-bgp] peer 1.0.0.6 as-number 65001
[PE1-bgp] peer 1.0.0.6 connect-interface LoopBack0
[PE1-bgp] ipv4-family vpnv4
[PE1-bgp-af-vpnv4] peer 1.0.0.5 enable
[PE1-bgp-af-vpnv4] peer 1.0.0.5 advertise-community
[PE1-bgp-af-vpnv4] peer 1.0.0.6 enable
[PE1-bgp-af-vpnv4] peer 1.0.0.6 advertise-community
PE1 is used as an example. The configurations of other PEs are similar to the
configuration of PE1.
# Configure P1.
[P1]bgp 65001
[P1-bgp] router-id 1.0.0.5
[P1-bgp] undo default ipv4-unicast
[P1-bgp] group RR internal
[P1-bgp] peer RR connect-interface LoopBack0
[P1-bgp] peer 1.0.0.1 as-number 65001
[P1-bgp] peer 1.0.0.1 group RR
[P1-bgp] peer 1.0.0.2 as-number 65001
[P1-bgp] peer 1.0.0.2 group RR
[P1-bgp] peer 1.0.0.3 as-number 65001
[P1-bgp] peer 1.0.0.3 group RR
[P1-bgp] peer 1.0.0.4 as-number 65001
[P1-bgp] peer 1.0.0.4 group RR
[P1-bgp] ipv4-family vpnv4
[P1-bgp-af-vpnv4] undo policy vpn-target
[P1-bgp-af-vpnv4] peer 1.0.0.1 enable
[P1-bgp-af-vpnv4] peer 1.0.0.1 reflect-client
[P1-bgp-af-vpnv4] peer 1.0.0.1 advertise-community
[P1-bgp-af-vpnv4] peer 1.0.0.2 enable
[P1-bgp-af-vpnv4] peer 1.0.0.2 reflect-client
[P1-bgp-af-vpnv4] peer 1.0.0.2 advertise-community
[P1-bgp-af-vpnv4] peer 1.0.0.3 enable
[P1-bgp-af-vpnv4] peer 1.0.0.3 reflect-client
[P1-bgp-af-vpnv4] peer 1.0.0.3 advertise-community
[P1-bgp-af-vpnv4] peer 1.0.0.4 enable
[P1-bgp-af-vpnv4] peer 1.0.0.4 reflect-client
[P1-bgp-af-vpnv4] peer 1.0.0.4 advertise-community
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 90
P1 is used as an example. Establish a VPNv4 peer relationship between each PE and the
RR. The configuration of P2 is the same as that of P1, except each P must have a unique
router ID.
Establish a BGP-LS peer relationship between each RR and iMaster NCE-IP for
redundancy protection.
Establish BGP-LS peer relationships between PEs and RRs, so that RRs can report SR-
MPLS Policy path status.
This section describes only device-side configurations. Controller-side configurations are
described in the following sections.
#P1
[P1]bgp 65001
[P1-bgp] peer 172.21.17.102 as-number 65001
[P1-bgp] peer 172.21.17.102 group RR
[P1-bgp] link-state-family unicast
[P1-bgp-af-ls] domain identifier 1.0.0.56
[P1-bgp-af-ls] peer 172.21.17.102 enable
[P1-bgp-af-ls] peer 172.21.17.102 reflect-client
[P1-bgp-af-ls] peer 1.0.0.1 enable
[P1-bgp-af-ls] peer 1.0.0.1 reflect-client
[P1-bgp-af-ls] peer 1.0.0.2 enable
[P1-bgp-af-ls] peer 1.0.0.2 reflect-client
[P1-bgp-af-ls] peer 1.0.0.3 enable
[P1-bgp-af-ls] peer 1.0.0.3 reflect-client
[P1-bgp-af-ls] peer 1.0.0.4 enable
[P1-bgp-af-ls] peer 1.0.0.4 reflect-client
#P2
[P2]bgp 65001
[P2-bgp] peer 172.21.17.102 as-number 65001
[P2-bgp] peer 172.21.17.102 group RR
[P2-bgp] link-state-family unicast
[P2-bgp-af-ls] domain identifier 1.0.0.56
[P2-bgp-af-ls] peer 172.21.17.102 enable
[P2-bgp-af-ls] peer 172.21.17.102 reflect-client
[P2-bgp-af-ls] peer 1.0.0.1 enable
[P2-bgp-af-ls] peer 1.0.0.1 reflect-client
[P2-bgp-af-ls] peer 1.0.0.2 enable
[P2-bgp-af-ls] peer 1.0.0.2 reflect-client
[P2-bgp-af-ls] peer 1.0.0.3 enable
[P2-bgp-af-ls] peer 1.0.0.3 reflect-client
[P2-bgp-af-ls] peer 1.0.0.4 enable
[P2-bgp-af-ls] peer 1.0.0.4 reflect-client
The two RRs must be configured with the same domain identifier, so that iMaster NCE-IP
centrally computes link information received from the two RRs.
#PE1
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 91
[PE1]bgp 65001
[PE1-bgp] link-state-family unicast
[PE1-bgp-af-ls] peer 1.0.0.5 enable
[PE1-bgp-af-ls] peer 1.0.0.6 enable
PE1 is used as an example. The configurations of other PEs are similar to the
configuration of PE1.
# Check the BGP-LS peer status on PE1 and PE2.
Establish a BGP SR Policy peer relationship between each PE and each RR (P1 or P2) and
a BGP SR Policy peer relationship between each RR and iMaster NCE-IP, so that iMaster
NCE-IP can deliver SR Policy routes to PEs.
#PE1
[PE1]bgp 65001
[PE1-bgp] ipv4-family sr-policy
[P4-bgp-af-ipv4-srpolicy] peer 1.0.0.5 enable
[P4-bgp-af-ipv4-srpolicy] peer 1.0.0.6 enable
PE1 is used as an example. The configurations of other PEs are similar to the
configuration of PE1.
#P1
[P1]bgp 65001
[P1-bgp] ipv4-family sr-policy
[P1-bgp-af-ipv4-srpolicy] undo router-id filter
[P1-bgp-af-ipv4-srpolicy] peer 1.0.0.1 enable
[P1-bgp-af-ipv4-srpolicy] peer 1.0.0.1 reflect-client
[P1-bgp-af-ipv4-srpolicy] peer 1.0.0.1 advertise-ext-community
[P1-bgp-af-ipv4-srpolicy] peer 1.0.0.2 enable
[P1-bgp-af-ipv4-srpolicy] peer 1.0.0.2 reflect-client
[P1-bgp-af-ipv4-srpolicy] peer 1.0.0.2 advertise-ext-community
[P1-bgp-af-ipv4-srpolicy] peer 1.0.0.3 enable
[P1-bgp-af-ipv4-srpolicy] peer 1.0.0.3 reflect-client
[P1-bgp-af-ipv4-srpolicy] peer 1.0.0.3 advertise-ext-community
[P1-bgp-af-ipv4-srpolicy] peer 1.0.0.4 enable
[P1-bgp-af-ipv4-srpolicy] peer 1.0.0.4 reflect-client
[P1-bgp-af-ipv4-srpolicy] peer 1.0.0.4 advertise-ext-community
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 92
A BGP SR Policy peer relationship is established between each RR and PE. After the BGP
configuration is complete on iMaster NCE-IP (172.21.17.102), the BGP SR Policy peer
relationship with iMaster NCE-IP is also established.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 93
# On the Configure routing page, select Analyzer_01, Controller_01, and NMS_01, and
click Inquire.
# After the query is complete, click Add route and select the preceding three nodes.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 94
In the Add route area, add routes to NEs according to the following table.
Step 1 Create SNMP and STelnet parameter templates for to-be-managed NEs.
# Log in to the O&M plane of iMaster NCE-IP and open the Network Management app
on the home page.
# On the Default Access Protocol Parameters page, click Create to switch to the SNMP
Template page.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 96
In the dialog box that is displayed, click Create at the bottom. In the Create Template
dialog box, set Protocol Name to STelnet, Template Type to Private, and Template
name to STelnet_Template.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 97
Click the created template, set parameters based on parameter settings on the device,
and click OK to save the settings.
# Click the created template, set parameters as planned, and click OK.
Use the Network Management app to add network devices for management.
# Open the Network Management app and choose Topology > Discovery > NE from the
main menu.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 99
# In the NE Discovery dialog box, click Default SNMP Parameters and select the
configured SNMP template.
Return to the NE Discovery dialog box, click Advanced, and select the configured
Telnet/STelnet parameter template and NETCONF parameter template.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 100
Return to the NE Discovery dialog box, click Add, and enter the start and end IP
addresses of the network segment for management.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 101
Click OK. Then select the created IP address range and click Next. In the dialog box that
is displayed, iMaster NCE-IP automatically scans for network devices.
After NEs are added to iMaster NCE-IP, you can perform the following tests to check
whether the SNMP, NETCONF, and STelnet communication between iMaster NCE-IP and
NEs is normal.
# Test SNMP communication.
Choose System > NE Communication Parameters from the main menu. Then click NE
Access Protocol Parameters.
Select all NEs, click Test on the right, and wait for the test result.
If the SNMP communication with all devices is normal, the system displays a message
indicating that the test is successful.
# Test STelnet communication.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 103
To facilitate device management, you can create subnets. A subnet, as a logical concept
on iMaster NCE-IP, displays topology objects in the same area or with similar attributes.
# Open the Network Management app and choose Topology > View > Physical
Topology from the main menu.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 105
Right-click in the blank area and choose New > Subnet from the shortcut menu to
create a subnet.
In the dialog box that is displayed, enter the subnet name and click Select Objects to
add NEs to the subnet.
After NEs are added, you can view the added subnet and its subordinate NEs on the left.
If the subordinate NEs are displayed in blue, the connections are normal.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 106
Open the Network Management app and choose Topology > Discovery > Link from the
main menu. On the page that is displayed, select all NEs
Click the Add icon and wait for the detection result.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 107
Links between devices are detected. If this operation is performed for the first time, the
status of all links is Not exist.
# Hold down Shift to select links in the Not exist state and click Create.
The controller then automatically creates these links and displays a message asking you
whether to import these links as fiber links.
Retain the default value No. In this experiment, the links between devices are not fiber
links.
# Return to the physical topology page and drag the mouse to adjust device locations in
the topology.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 108
Click the Save icon in the upper right corner to save the current topology layout.
Network maintenance and service configuration can proceed properly only after NE data
is synchronized to iMaster NCE-IP and data is consistent between the NE side and
controller-side.
# Open the Network Management app and choose Configuration > Synchronize NE
Configuration Data from the main menu
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 109
On the page that is displayed, add devices to the right pane, hold down Shift to select all
devices, and click Synchronize in the lower part of the page to synchronize NE
configurations.
If the message "Success" is displayed in the Operation Result column, iMaster NCE-IP
has successfully synchronized device data through SFTP.
Open the Network Management app and choose Configuration > Control Unit > BGP
from the main menu to configure BGP.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 110
Parameter Value
*Router ID 172.21.17.102
Create BGP peers. These BGP peers need to be enabled in specific address families later.
On the Basic Peer Information tab page of the BGP configuration page, click Create
Peer.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 112
Create IPv4 peers 1.0.0.5 and 1.0.0.6 (corresponding to P1 and P2, which serve as RRs),
and disable authentication.
Enable IPv4 peers in the BGP-LS address family, so that iMaster NCE-IP can receive link,
bandwidth, and other information from RRs.
On the Address Family Information tab page, click Link-state. (If Link-state is not
displayed, click Create Address Family to add it.)
Click Create Peer. In the dialog box that is displayed, click Select Peer.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 113
Note that iMaster NCE-IP does not need to send routes to RRs; instead, it only needs to
receive routes. Therefore, you need to set Advertise route to the peer to No.
In the Select Peer dialog box, select the previously created peers (1.0.0.5 and 1.0.0.6).
Enable IPv4 peers in the BGP SR Policy address family, so that iMaster NCE-IP can deliver
SR Policy configurations to NEs.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 114
Click Create Peer. In the Create Peer dialog box, click Select Peer.
On the BGP page, click Peer Information to check BGP peer relationships.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 115
The search results show that BGP SRv4 Policy peer relationships with P1 and P2 have
been established.
Open the Network Management app and choose Configuration > Control Unit > PCEP
from the main menu to configure the PCE server IP address.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 116
On the PCEP configuration page, click Create. In the dialog box that is displayed, add
PCEP peers.
Disable TLS authentication and establish PCEP sessions between iMaster NCE-IP and the
four PEs.
On the PCEP configuration page of iMaster NCE-IP, click Signaling Statistics to check
PCEP session status.
Open the Network Management app and choose Service > Create > Dynamic Tunnel
from the main menu.
In the Basic Information area, set Service template to SR_TE_Tunnel and Parameter
template to SR_TE_Tunnel. Retain the default values for other parameters.
In the Working Tunnel area, configure Advanced Information for the forward and
reverse tunnels.
The advanced attribute settings for the reverse tunnel are as follows.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 121
In this template, you can configure path constraints, such as explicit path constraints. The
following UIs are for illustration only, and no explicit path is actually configured.
On the Forward Tunnel tab page, click the Explicit Path value. The Primary Path
Constraints dialog box is displayed, allowing you to configure explicit path information.
Here, you can configure a strict or loose explicit path or exclude a certain forwarding
node. The configuration affects subsequent tunnel path computation result.
Click Compute Path. iMaster NCE-IP computes paths based on the least cost, bandwidth
balancing, and minimum delay optimization policies.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 123
Select the path with the least cost, click OK, and then click Configure.
After the tunnel is successfully delivered, a dialog box is displayed, allowing you to view
the tunnel status.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 125
[PE1]interface LoopBack1
[PE1-LoopBack1] ip address 172.16.1.1 32
[PE1-LoopBack1] quit
PE4
[PE4]interface LoopBack1
[PE4-LoopBack1] ip address 172.16.4.1 32
[PE4-LoopBack1] quit
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 127
Open the Network Management app and choose Service > Create > MBGP L3VPN from
the main menu.
Select service nodes PE1 and PE4 and select a tunnel policy.
Click + in the Service Node area.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 129
In the dialog box that is displayed, set NE name to PE1 and select Enable IPv4.
Configure service access points for PE1 and PE4. Here, Loopback1 interfaces are used to
simulate user access.
Click + in the Service Access Point area.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 131
In the Service Access Point dialog box, set Name to PE1_Tenant for PE1, retain the
default single-homing access mode, and click +.
In the dialog box that is displayed, set NE to PE1|VPNA, Interface to Loopback1, and
select Enable IPv4.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 132
In the new area that is displayed, you can configure protocol information, that is,
information about routing protocols between the current device and CE.
After selecting the corresponding protocol types, you can set protocol parameters. For
example, you can configure a BGP peer relationship with the CE if BGP is selected.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 133
In this experiment, Loopback1 interfaces are used to simulate CEs. Therefore, you do not
need to configure routing protocols between the current device and CE.
Finally, click OK. The service access point PE1_Tenant is configured. The service access
point configuration on PE4 is similar to that on PE1.
The service access point configurations (CE-related configurations) on PE1 and PE4 are
complete.
Select Enable IPv4, click +, and set the tunnel type to SR-MPLS TE.
Finally, click Configure and wait for the L3VPN service configurations to be delivered to
devices.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 134
In the Success dialog box, you can click the corresponding hyperlink to check information
about the configured L3VPN service.
The alarm status and running status of the service are normal. PCEP and BGP-LS are
required for the monitoring of the two statuses. Ensure that the PCEP session is normal
and iMaster NCE-IP can receive BGP-LS routes from PEs.
In this view, you can click the 360-degree view icon before a service name to access the
360-degree service view. In the 360-degree service view, you can monitor the service
information (including service alarms and paths) in real time, diagnose services, and
perform active/standby switchovers.
On PE1, check information about the VPN instance delivered by iMaster NCE-IP, binding
relationship between the VPN instance and interface, BGP routes, and tunnel policy.
Check VPN instance and Loopback1 configurations.
##
Loopback1 has been bound to VPN instance VPNA, the RD and RTs have been
automatically assigned to the VPN instance, and the VPN instance has been associated
with tunnel policy NCE-VRF-VPNA.
Check tunnel policy configurations.
An IBGP route exists in the VPN instance routing table on PE1. The outbound interface of
the IBGP route is the Tunnel6 interface. This means that the VPN route from PE1 to the
peer recurses to an SR-MPLS TE tunnel.
Check the label allocated by PE4 to the VPNv4 route.
The out label of the VPNv4 route 172.16.4.1 on PE1 is 48159, the label allocated to the
route by BGP on PE4.
Test L3VPN connectivity on PE1.
Open the Network Management app and choose Configuration > Common > Profile
Management from the main menu. Then click SR Policy Color Profile.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 137
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 138
Before performing this step, ensure that the BGP-LS and BGP SR Policy peer relationships
have been established between iMaster NCE-IP and RRs and the following configurations
are ready on the NE side:
1. IGP route reachability is available network-wide.
2. MPLS and MPLS TE are enabled both globally and per interface.
3. IGP TE is enabled.
4. SR is enabled globally, and IGP extensions for SR capabilities are enabled.
Open the Network Management app and choose Service > Create > SR Policy from the
main menu to create an SR Policy.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 139
In the Basic Information area, set Parameter template to SR_TE_Policy, Service name
to PE1_PE4_L3VPN, and retain the default values for other parameters.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 140
On the Forward tab page in the SR Policy area, click Modify next to Color.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 141
Click the field marked by 1 to access the preference configuration list and set the
preference of candidate path 1 to the highest value 65535.
Click Compute Path.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 142
In the computation results, still select the path with the least cost.
To recurse L3VPN traffic to SR Policies, configure a route-policy on PE1 and PE4 to add
the color extended community attribute to VPNv4 routes to be advertised, so that these
routes can recurse to SR Policies.
Open the Network Management app and choose Configuration > Common > Profile
Management from the main menu. Then click Routing Policy Template.
In the dialog box that is displayed, configure node information. Specifically, set Node
index to 10, retain the default value Permit for Match mode, and leave all match
conditions unselected (indicating that all match conditions will be applied).
Select the previously created color PE1_PE4_L3VPN and click Save. Then click OK. The
template is created.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 145
PE1
[PE1]interface LoopBack2
[PE1-LoopBack2] ip address 192.168.1.1 32
[PE1-LoopBack2] quit
PE4
[PE4]interface LoopBack2
[PE4-LoopBack2] ip address 192.168.4.1 32
[PE4-LoopBack2] quit
In the Service Node area, select PE1 and PE4 as service nodes and select a tunnel policy.
Click + in the Service Node area.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 147
In the dialog box that is displayed, set NE name to PE1 and select Enable IPv4.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 148
Enable Keep VRF up. In the area that is displayed, click + next to Routing Policy.
In the dialog box that is displayed, set Direction to Out and Routing Policy Template to
Color for the route-policy, and then click OK.
Click + next to Tunnel Policy. In the dialog box that is displayed, set Policy type to Auto
select, select Unmix, and set Type to SR-MPLS TE Policy.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 149
The service node configuration on PE1 is complete. The service node configuration on PE4
is similar to that on PE1.
Configure service access points for PE1 and PE4. Here, Loopback2 interfaces are used to
simulate user access.
Click + in the Service Access Point area.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 150
In the Service Access Point dialog box, set Name to PE1_Tenant for PE1, retain the
default single-homing access mode, and click +.
In the dialog box that is displayed, set NE to PE1|VPNB and Interface to Loopback2, and
select Enable IPv4.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 151
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 152
Finally, click OK. The service access point PE1_Tenant is configured. The service access
point configuration on PE4 is similar to that on PE1.
The service access point configurations (CE-related configurations) on PE1 and PE4 are
complete.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 153
Select Enable IPv4, enable Unmix, and click +. In the dialog box that is displayed, set the
tunnel type to SR-MPLS TE Policy.
Finally, click Configure and wait for the L3VPN service configurations to be delivered to
devices.
In the dialog box displayed to indicate service delivery success, click the corresponding
hyperlink to view information about the newly created service.
ip vpn-instance VPNB
ipv4-family
route-distinguisher 11:24
export route-policy PE1_PE4_L3VPN
tnl-policy NCE-VRF-VPNB
apply-label per-instance
transit-vpn
vpn-target 200:55 export-extcommunity
vpn-target 200:55 import-extcommunity
#
[PE1]display current-configuration interface LoopBack 2
#
interface LoopBack2
ip binding vpn-instance VPNB
ip address 192.168.1.1 255.255.255.255
#
The outbound interface of the route to 192.168.4.1 is an SR-TE Policy, not a specific
tunnel interface.
Check SR-TE Policy information.
Candidate-pathPreference: 65535
PathState : Active Path Type : Primary
Protocol-Origin : BGP(20) Originator : 65001,
172.21.17.102
Discriminator : 87 Binding SID :-
GroupId :1 Policy Name :
Template ID : 4294967274
Segment-List Count :1
Segment-List :
Segment-List ID :1 XcIndex : 2000001
List State : Up BFD State :-
EXP :0 TTL :0
DeleteTimerRemain : -
Label : 48091, 48091, 48090
# (Optional) Open the Network Path Navigation app and choose Settings > Basic
Settings > Topology Collection Policy from the main menu. Then enable Non-TE link
real-time collection.
This option can be enabled when non-TE links exist in tunnel traffic forwarding.
Finally, click Apply in the lower part of the page. The controller then uses delay as the
criterion for determining tunnel link quality. The controller computes the delay of each
forwarding path for the tunnel and selects the path with the minimum delay as the new
forwarding path for tunnel optimization.
The controller computes delay in the following ways:
1. Static value: By default, the two-way delay is 200 µs for each interface. You can
choose Settings > Attribute Settings from the main menu of the Network Path
Navigation app to change the value.
2. Dynamically measured value: TWAMP is used to measure the two-way delay of a
link. The measurement result is updated in real time. You can choose Settings > Test
Case Management from the main menu of the Network Performance Analysis app
to create TWAMP test instances and use the test instances to measure the
forwarding link delay of a tunnel.
A different TWAMP test instance can be created for each direction of a link to implement
two-way delay measurement.
The following describes how to perform manual tunnel optimization by modifying static
link delay and how to perform automatic tunnel optimization by configuring TWAMP test
instances to modify and monitor link delay.
Manually change link delay. The default delay is 200 μs for each link. Manually change
the link delay between P1 and PE3 to 2000 μs, so that the controller switches the L3VPN
service between PE1 and PE4 to another path.
# Check the delay of the SR-MPLS TE Policy between PE1 and PE4.
Open the Network Path Navigation app and choose Network Optimization > Network
Optimization from the main menu. On the Tunnel List tab page, click Filter and use
Tunnel Type as the filter criterion to find the previously created SR-MPLS TE Policy.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 159
A unidirectional tunnel from PE1 to PE4 and a unidirectional tunnel from PE4 to PE1 can
be found, indicating that a bidirectional tunnel is established between PE1 and PE4.
Click > before PE1_PE4_L3VPN to view the current path and accumulated delay.
The forwarding path from PE1 to PE4 is PE1 -> P1 -> PE3 -> PE4, and the accumulated
delay is 600 µs. The reverse path from PE4 to PE1 is PE4 -> PE3 -> P1 -> PE1, and the
accumulated delay is also 600 µs.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 160
Select the link from P1 to PE3 and that from PE3 to P1, and modify the two-way link
delay.
Click Modify Constraint/Configuration to modify the delay.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 161
Return to the Network Optimization page and check the delay of the SR-MPLS TE Policy
between PE1 and PE4.
Finally, click Apply. The tunnel then switches to the new forwarding path with the
minimum delay.
Use TWAMP to measure network-wide link delay, so that iMaster NCE-IP can perform
optimization based on the real-time delay of links.
Before performing automatic optimization, delete the link delay manually modified in the
previous step.
# Create TWAMP test instances.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 163
Open the Network Performance Analysis app and choose Settings > Test Case
Management from the main menu to create TWAMP test instances.
On the page that is displayed, set Cycle to 5min, select all interfaces, and set Report
delay to Yes (the default value is No).
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 164
Finally, click OK. TWAMP then continuously monitors the bandwidth of all links and
provides the bandwidth information for the network optimization module.
The accumulated delay is 49 µs, which is the real-time measurement result provided by
TWAMP.
# Enable automatic optimization.
Open the Network Path Navigation app and choose Settings > Optimization from the
main menu. On the page that is displayed, enable automatic optimization.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 165
Set Optimization Mode to Delay, set Auto Optimization Period (min) to 5, and
deselect Auto Approval.
In delay-based optimization mode, the controller traverses and compares the configured
delay of each tunnel with the accumulated delay collected from forwarders, and
performs local optimization on tunnels whose accumulated delay exceeds the configured
delay.
An SR-MPLS TE tunnel (not the SR-MPLS TE Policy queried during manual optimization)
has been created previously. On the network optimization page, find the tunnel through
filtering and check its two-way delay.
The delay of the tunnel from PE1 to PE4 is 52 µs. (The actual delay depends on the test
environment.)
Open the Network Management app and choose Service > Dynamic Tunnel from the
main menu. On the page that is displayed, modify the delay requirement of the SR-MPLS
TE tunnel. (No delay requirement has been configured previously.)
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 166
On the Modify Dynamic Tunnel page, set the delay constraint to 100 µs for both the
forward and reverse paths to restrict tunnel availability.
After the tunnel constraints are modified, click Compute Path. The controller recomputes
tunnel paths. In the computation result area, select the one with the least cost or
minimum delay as the optimization path and then click OK and Save in succession.
In the reconciliation information dialog box that is displayed, click Next and OK in
succession to save the modified SR-MPLS TE configurations.
Then, if the delay of the tunnel between PE1 and PE4 exceeds 100 µs, the controller
automatically performs automatic optimization.
# Manually interfere in the TWAMP measurement of the path from PE1 to PE4.
In the outbound direction of PE3's GE 0/3/1, filter out the test packets reflected by PE3 to
P1, so that P1 cannot detect the delay of the link to PE3's GE 0/3/1.
The command output shows that the packets sent by P1 to PE3 for link delay
measurement are UDP packets with the Sender-Port number being 45002 and Reflector-
Port number being 33435. In the 5-tuple of the packets reflected by PE3, the source IP
address is 10.0.0.6, destination IP address is 10.0.0.5, source port number is 33435, and
destination port number is 45002.
Create a traffic policy on PE3 to filter traffic.
[PE3]acl 3004
[PE3-acl4-advance-3004] rule 2 permit udp source 10.0.0.6 0 source-port eq 33435 destination
10.0.0.5 0
Configure a traffic policy and apply the traffic policy to the outbound direction of
GE0/3/1.
2728 - -
2729 - -
2730 - -
2731 - -
2732 - -
2733 - -
2734 - -
2735 - -
2736 - -
2737 - -
2738 - -
2739 - -
2740 - -
2741 - -
2742 - -
2743 - -
------------------------------------------------------------------------------------------------------
Average Delay : 40 Average Jitter : 0
Maximum Delay : 41 Maximum Jitter : 1
Minimum Delay : 37 Minimum Jitter : 0
The delay in the direction from PE4 to PE1 is normal, but the delay in the direction from
PE1 to PE4 is 233 µs, exceeding the delay limit (100 µs) configured for the tunnel.
In this case, the controller automatically computes a new path that meets the constraint
for the tunnel from PE4 to PE1 during the next automatic optimization.
Because Auto Approval is not enabled, we need to manually check the optimization
result.
In the upper left corner of the Network Optimization page, click Optimization Preview.
On the page that is displayed, expand the topology and click the tunnel from PE1 to PE4
(the source LSR is 1.0.0.1).
The tunnel has switched to path PE1-> PE2 -> P2 -> PE4 instead of traversing P1 and PE3.
Click Apply in the lower right corner to deliver the automatic optimization result.
3.1.3 Quiz
Which protocol is used by the controller to deliver SR-MPLS TE configurations?
PE1 1
PE2 2
PE3 3
PE4 4
P1 5
P2 6
Configure IPv6 addresses for the management interfaces (GE0/0/0) of all devices. These
IP addresses are used for communication between the devices and iMaster NCE-IP.
# Configure the configuration validation mode as immediate validation.
<PE2>system-view immediately
Here, PE2 is used as an example. Repeat the configuration for other devices.
# Name the devices.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 172
Omitted
PE1
[PE1]interface GigabitEthernet0/0/0
[PE1-GigabitEthernet0/0/0] undo ip binding vpn-instance __LOCAL_OAM_VPN__
[PE1-GigabitEthernet0/0/0] ipv6 enable
[PE1-GigabitEthernet0/0/0] ipv6 address 2000::1/64
[PE1-GigabitEthernet0/0/0] quit
PE2
[PE2]interface GigabitEthernet0/0/0
[PE2-GigabitEthernet0/0/0] undo ip binding vpn-instance __LOCAL_OAM_VPN__
[PE2-GigabitEthernet0/0/0] ipv6 enable
[PE2-GigabitEthernet0/0/0] ipv6 address 2000::2/64
[PE2-GigabitEthernet0/0/0] quit
PE3
[PE3]interface GigabitEthernet0/0/0
[PE3-GigabitEthernet0/0/0] undo ip binding vpn-instance __LOCAL_OAM_VPN__
[PE3-GigabitEthernet0/0/0] ipv6 enable
[PE3-GigabitEthernet0/0/0] ipv6 address 2000::3/64
[PE3-GigabitEthernet0/0/0] quit
PE4
[PE4]interface GigabitEthernet0/0/0
[PE4-GigabitEthernet0/0/0] undo ip binding vpn-instance __LOCAL_OAM_VPN__
[PE4-GigabitEthernet0/0/0] ipv6 enable
[PE4-GigabitEthernet0/0/0] ipv6 address 2000::4/64
[PE4-GigabitEthernet0/0/0] quit
P1
[P1]interface GigabitEthernet0/0/0
[P1-GigabitEthernet0/0/0] undo ip binding vpn-instance __LOCAL_OAM_VPN__
[P1-GigabitEthernet0/0/0] ipv6 enable
[P1-GigabitEthernet0/0/0] ipv6 address 2000::5/64
[P1-GigabitEthernet0/0/0] quit
P2
[P2]interface GigabitEthernet0/0/0
[P2-GigabitEthernet0/0/0] undo ip binding vpn-instance __LOCAL_OAM_VPN__
[P2-GigabitEthernet0/0/0] ipv6 enable
[P2-GigabitEthernet0/0/0] ipv6 address 2000::6/64
[P2-GigabitEthernet0/0/0] quit
Create Loopback0 on all devices and configure IPv6 addresses for these interfaces.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 173
PE1
[PE1]interface LoopBack0
[PE1-LoopBack0] ipv6 enable
[PE1-LoopBack0] ipv6 address FC01::1/128
[PE1-LoopBack0] quit
PE2
[PE2]interface LoopBack0
[PE2-LoopBack0] ipv6 enable
[PE2-LoopBack0] ipv6 address FC01::2/128
[PE2-LoopBack0] quit
PE3
[PE3]interface LoopBack0
[PE3-LoopBack0] ipv6 enable
[PE3-LoopBack0] ipv6 address FC01::3/128
[PE3-LoopBack0] quit
PE4
[PE4]interface LoopBack0
[PE4-LoopBack0] ipv6 enable
[PE4-LoopBack0] ipv6 address FC01::4/128
[PE4-LoopBack0] quit
P1
[P1]interface LoopBack0
[P1-LoopBack0] ipv6 enable
[P1-LoopBack0] ipv6 address FC01::5/128
[P1-LoopBack0] quit
P2
[P2]interface LoopBack0
[P2-LoopBack0] ipv6 enable
[P2-LoopBack0] ipv6 address FC01::6/128
[P2-LoopBack0] quit
Configure IPv6 addresses for device interconnection interfaces as shown in the topology.
By default, DCN is enabled on NE router interfaces. To facilitate the experiment, disable
DCN globally on all devices.
# Disable DCN globally on each device.
Here, PE1 is used as an example. Repeat this operation for other devices.
Configure IPv6 addresses for interconnection interfaces.
P1
[P1]interface GigabitEthernet0/3/0
[P1-GigabitEthernet0/3/0] ipv6 enable
[P1-GigabitEthernet0/3/0] ipv6 address 2001::2/64
[P1-GigabitEthernet0/3/0] quit
[P1]interface GigabitEthernet0/3/2
[P1-GigabitEthernet0/3/2] ipv6 enable
[P1-GigabitEthernet0/3/2] ipv6 address 2004::1/64
[P1-GigabitEthernet0/3/2] quit
[P1]interface GigabitEthernet0/3/4
[P1-GigabitEthernet0/3/4] ipv6 enable
[P1-GigabitEthernet0/3/4] ipv6 address 2005::1/64
[P1-GigabitEthernet0/3/4] quit
P2
[P2]interface GigabitEthernet0/3/0
[P2-GigabitEthernet0/3/0] ipv6 enable
[P2-GigabitEthernet0/3/0] ipv6 address 2003::2/64
[P2-GigabitEthernet0/3/0] quit
[P2]interface GigabitEthernet0/3/2
[P2-GigabitEthernet0/3/2] ipv6 enable
[P2-GigabitEthernet0/3/2] ipv6 address 2006::1/64
[P2-GigabitEthernet0/3/2] quit
[P2]interface GigabitEthernet0/3/4
[P2-GigabitEthernet0/3/4] ipv6 enable
[P2-GigabitEthernet0/3/4] ipv6 address 2005::2/64
[P2-GigabitEthernet0/3/4] quit
PE1
[PE1]interface GigabitEthernet0/3/0
[PE1-GigabitEthernet0/3/0] ipv6 enable
[PE1-GigabitEthernet0/3/0] ipv6 address 2002::1/64
[PE1-GigabitEthernet0/3/0] quit
[PE1]interface GigabitEthernet0/3/1
[PE1-GigabitEthernet0/3/1] ipv6 enable
[PE1-GigabitEthernet0/3/1] ipv6 address 2001::1/64
[PE1-GigabitEthernet0/3/1] quit
PE2
[PE2]interface GigabitEthernet0/3/0
[PE2-GigabitEthernet0/3/0] ipv6 enable
[PE2-GigabitEthernet0/3/0] ipv6 address 2002::2/64
[PE2-GigabitEthernet0/3/0] quit
[PE2]interface GigabitEthernet0/3/1
[PE2-GigabitEthernet0/3/1] ipv6 enable
[PE2-GigabitEthernet0/3/1] ipv6 address 2003::1/64
[PE2-GigabitEthernet0/3/1] quit
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 175
PE3
[PE3]interface GigabitEthernet0/3/0
[PE3-GigabitEthernet0/3/0] ipv6 enable
[PE3-GigabitEthernet0/3/0] ipv6 address 2010::2/64
[PE3-GigabitEthernet0/3/0] quit
[PE3]interface GigabitEthernet0/3/1
[PE3-GigabitEthernet0/3/1] ipv6 enable
[PE3-GigabitEthernet0/3/1] ipv6 address 2004::2/64
[PE3-GigabitEthernet0/3/1] quit
PE4
[PE4]interface GigabitEthernet0/3/0
[PE4-GigabitEthernet0/3/0] ipv6 enable
[PE4-GigabitEthernet0/3/0] ipv6 address 2010::1/64
[PE4-GigabitEthernet0/3/0] quit
[PE4]interface GigabitEthernet0/3/1
[PE4-GigabitEthernet0/3/1] ipv6 enable
[PE4-GigabitEthernet0/3/1] ipv6 address 2006::2/64
[PE4-GigabitEthernet0/3/1] quit
The configurations are similar to that in 3.1 SR-MPLS Service Delivery by the Controller.
The IS-IS area ID is 49.0001, the IS-IS process ID is 1, all devices are Level-2 devices, and
the NET is converted from the device number (for example, PE2's NET is
49.0001.0010.0000.0002.00). Enable IS-IS on Loopback0 and interconnection interfaces.
In this case, you need to set cost-style to wide to support IS-IS extensions.
# Enable BFD globally.
[PE1]bfd
ipv6 advertise link attributes: This command enables LSPs to carry link attribute TLVs,
including interface IPv6 addresses and interface indexes.
ipv6 bgp-ls enable level-2: This command enables topology information collected by IS-
IS to be sent to the controller through BGP-LS. This function only needs to be configured
on the RR. That is, only one device in the IGP domain needs to send topology information
to the controller through BGP-LS.
ipv6 traffic-eng level-2: This command enables IS-IS TE, so that link bandwidth
information can be sent to the TE module.
set-overload on-startup: This command sets the overload bit, which is used to notify
others that the local node cannot forward traffic at this time. The local node is then not
used as a forwarding node during LSP-based path calculation. The command parameters
include on-startup and wait-for-bgp.
ipv6 metric-delay advertisement enable: This command enables IPv6 delay
advertisement. After this function is enabled, IS-IS collects and floods information about
the intra-area IPv6 link delay, and BGP-LS reports the information to the controller. The
controller can then use the delay information to compute optimal paths on a P2P
network.
[PE1]isis 1
[PE1-isis-1] is-level level-2
[PE1-isis-1] network-entity 49.0001.0010.0000.0001.00
[PE1-isis-1] is-name PE1
[PE1-isis-1] set-overload on-startup
[PE1-isis-1] ipv6 enable topology ipv6
[PE1-isis-1] ipv6 advertise link attributes
[PE1-isis-1] ipv6 bfd all-interfaces enable
[PE1-isis-1] ipv6 metric-delay advertisement enable level-1-2
[PE1-isis-1] ipv6 traffic-eng level-2
PE1 is used as an example. The configurations of other PEs are similar to the
configuration of PE1.
Configure IS-IS on Ps.
[P1]isis 1
[P1-isis-1] is-level level-2
[P1-isis-1] cost-style wide
[P1-isis-1] bfd all-interfaces enable
[P1-isis-1] network-entity 49.0001.0010.0000.0005.00
[P1-isis-1] is-name P1
[P1-isis-1] set-overload on-startup
[P1-isis-1] ipv6 enable topology ipv6
[P1-isis-1] ipv6 bgp-ls enable level-2
[P1-isis-1] ipv6 advertise link attributes
[P1-isis-1] ipv6 bfd all-interfaces enable
[P1-isis-1] ipv6 metric-delay advertisement enable level-1-2
[P1-isis-1] ipv6 traffic-eng level-2
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 177
[PE1]isis 1
[PE1-isis-1] frr
[PE1-isis-1-frr] loop-free-alternate level-2
[PE1-isis-1-frr] ti-lfa level-2
[PE1-isis-1-frr] quit
[PE1]interface GigabitEthernet0/3/0
[PE1-GigabitEthernet0/3/0] isis ipv6 enable 1
[PE1-GigabitEthernet0/3/0] isis circuit-type p2p
[PE1-GigabitEthernet0/3/0] quit
[PE1]interface GigabitEthernet0/3/1
[PE1-GigabitEthernet0/3/1] isis ipv6 enable 1
[PE1-GigabitEthernet0/3/1] isis circuit-type p2p
[PE1-GigabitEthernet0/3/1] quit
[PE1]interface LoopBack0
[PE1-LoopBack0] isis ipv6 enable 1
#PE2
[PE2]interface GigabitEthernet0/3/0
[PE2-GigabitEthernet0/3/0] isis ipv6 enable 1
[PE2-GigabitEthernet0/3/0] isis circuit-type p2p
[PE2-GigabitEthernet0/3/0] quit
[PE2]interface GigabitEthernet0/3/1
[PE2-GigabitEthernet0/3/1] isis ipv6 enable 1
[PE2-GigabitEthernet0/3/1] isis circuit-type p2p
[PE2-GigabitEthernet0/3/1] quit
[PE2]interface LoopBack0
[PE2-LoopBack0] isis ipv6 enable 1
#PE3
[PE3]interface GigabitEthernet0/3/0
[PE3-GigabitEthernet0/3/0] isis ipv6 enable 1
[PE3-GigabitEthernet0/3/0] isis circuit-type p2p
[PE3-GigabitEthernet0/3/0] quit
[PE3]interface GigabitEthernet0/3/1
[PE3-GigabitEthernet0/3/1] isis ipv6 enable 1
[PE3-GigabitEthernet0/3/1] isis circuit-type p2p
[PE3-GigabitEthernet0/3/1] quit
[PE3]interface LoopBack0
[PE3-LoopBack0] isis ipv6 enable 1
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 178
#PE4
[PE4]interface GigabitEthernet0/3/0
[PE4-GigabitEthernet0/3/0] isis ipv6 enable 1
[PE4-GigabitEthernet0/3/0] isis circuit-type p2p
[PE4-GigabitEthernet0/3/0] quit
[PE4]interface GigabitEthernet0/3/1
[PE4-GigabitEthernet0/3/1] isis ipv6 enable 1
[PE4-GigabitEthernet0/3/1] isis circuit-type p2p
[PE4-GigabitEthernet0/3/1] quit
[PE4]interface LoopBack0
[PE4-LoopBack0] isis ipv6 enable 1
#P1
[P1]interface GigabitEthernet0/3/0
[P1-GigabitEthernet0/3/0] isis ipv6 enable 1
[P1-GigabitEthernet0/3/0] isis circuit-type p2p
[P1-GigabitEthernet0/3/0] quit
[P1]interface GigabitEthernet0/3/2
[P1-GigabitEthernet0/3/2] isis ipv6 enable 1
[P1-GigabitEthernet0/3/2] isis circuit-type p2p
[P1-GigabitEthernet0/3/2] quit
[P1]interface GigabitEthernet0/3/4
[P1-GigabitEthernet0/3/4] isis ipv6 enable 1
[P1-GigabitEthernet0/3/4] isis circuit-type p2p
[P1-GigabitEthernet0/3/4] quit
[P1]interface LoopBack0
[P1-LoopBack0] isis ipv6 enable 1
#P2
[P2]interface GigabitEthernet0/3/0
[P2-GigabitEthernet0/3/0] isis ipv6 enable 1
[P2-GigabitEthernet0/3/0] isis circuit-type p2p
[P2-GigabitEthernet0/3/0] quit
[P2]interface GigabitEthernet0/3/2
[P2-GigabitEthernet0/3/2] isis ipv6 enable 1
[P2-GigabitEthernet0/3/2] isis circuit-type p2p
[P2-GigabitEthernet0/3/2] quit
[P2]interface GigabitEthernet0/3/4
[P2-GigabitEthernet0/3/4] isis ipv6 enable 1
[P2-GigabitEthernet0/3/4] isis circuit-type p2p
[P2-GigabitEthernet0/3/4] quit
[P2]interface LoopBack0
[P2-LoopBack0] isis ipv6 enable 1
--------------------------------------------------------------------------------
PE1* GE0/3/0 0000000007 Up 22s L2 --
P3* GE0/3/2 0000000007 Up 27s L2 --
P2* GE0/3/4 0000000010 Up 27s L2 --
Total Peer(s): 3
# Check the IS-IS IPv6 routing table on each router. The following example uses the
command output on P1.
Enable SRv6 globally, configure SRv6 locators, and advertise these locators through IS-IS.
# Enable SRv6 globally.
[PE1]segment-routing ipv6
[PE1-segment-routing-ipv6] quit
[PE1]segment-routing ipv6
[PE1-segment-routing-ipv6] sr-te frr enable
[PE1-segment-routing-ipv6] encapsulation source-address FC01::1
[PE1-segment-routing-ipv6] locator SRv6 ipv6-prefix FC00:1:: 96 static 16
[PE1-segment-routing-ipv6-locator] opcode ::1 end
[PE1-segment-routing-ipv6-locator] opcode ::F end-op
[PE1-segment-routing-ipv6-locator] quit
[PE1-segment-routing-ipv6-locator] segment-routing ipv6 locator SRv6
The following uses PE1 as an example to describe how to configure the source address
for encapsulation and SRv6 locator and manually configure End and End.OP SIDs.
Command description:
encapsulation source-address: When traffic enters an SRv6 VPN tunnel, the address
configured using this command is used as the source address in the IPv6 packet header.
In this experiment, the device's Loopback0 address is used.
locator: This command is used to configure an SRv6 locator. SRv6 SIDs are in the
Locator:Function:Args format. End SIDs are similar to node SIDs in SR-MPLS and are used
to identify destination nodes on a network. End.OP SIDs are used to implement ping and
tracert functions in SRv6 scenarios.
[PE1]segment-routing ipv6
[PE1-segment-routing-ipv6] sr-te frr enable
[PE1-segment-routing-ipv6] encapsulation source-address FC01::1
[PE1-segment-routing-ipv6] locator SRv6 ipv6-prefix FC00:1:: 96 static 16
[PE1-segment-routing-ipv6-locator] opcode ::1 end
[PE1-segment-routing-ipv6-locator] opcode ::F end-op
[PE1-segment-routing-ipv6-locator] quit
[PE1-segment-routing-ipv6-locator] segment-routing ipv6 locator SRv6
PE1 is used as an example to describe how to configure the source address for
encapsulation and SRv6 locator and how to manually configure End and End.OP SIDs.
Device locator planning: Each NE uses FC00::X:: (X indicates the device number, which has
been planned during basic configuration). The prefix length is 96, and the static segment
length in the Function field is 16. Therefore, the dynamic segment length dynamically
allocated by the IGP is 16 (128 – 96 – 16).
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 181
[PE1]interface GigabitEthernet0/3/0
[PE1-GigabitEthernet0/3/0] te bandwidth max-reservable-bandwidth dynamic 40
[PE1-GigabitEthernet0/3/0] te bandwidth dynamic bc0 100
The following uses one interface as an example. Repeat the configuration for other
interconnection interfaces.
# Verify the configuration.
P1 is used as an example. Check the IS-IS IPv6 routes generated by other NEs based on
the SR locator.
On P1, ping the End.OP SID of a random NE. The ping operation succeeds.
Establish BGP EVPN peer relationships between PEs and RRs. Set the router ID to 1.0.0.X
(X indicates the device number), and use the Loopback0 address as the source address
for initiating a connection.
# Configure PEs.
[PE1]bgp 65001
[PE1-bgp] router-id 1.0.0.1
[PE1-bgp] undo default ipv4-unicast
[PE1-bgp] peer FC01::5 as-number 65001
[PE1-bgp] peer FC01::5 connect-interface LoopBack0
[PE1-bgp] peer FC01::6 as-number 65001
[PE1-bgp] peer FC01::6 connect-interface LoopBack0
[PE1-bgp] l2vpn-family evpn
[PE1-bgp-af-evpn] policy vpn-target
[PE1-bgp-af-evpn] peer FC01::5 enable
[PE1-bgp-af-evpn] peer FC01::5 advertise-community
[PE1-bgp-af-evpn] peer FC01::5 advertise encap-type srv6
[PE1-bgp-af-evpn] peer FC01::6 enable
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 183
PE1 is used as an example. The configurations of other PEs are similar to the
configuration of PE1.
By default, EVPN routes advertised by a local device to its peers carry the MPLS
encapsulation attribute, which cannot be used for SRv6 forwarding. To enable EVPN
routes to recurse to SRv6 tunnels, run the peer advertise encap-type srv6 command.
# Configure RRs.
[P1]bgp 65001
[P1-bgp] router-id 1.0.0.5
[P1-bgp] undo default ipv4-unicast
[P1-bgp] group RR-ipv6 internal
[P1-bgp] peer RR connect-interface LoopBack0
[P1-bgp] peer FC01::1 group RR-ipv6
[P1-bgp] peer FC01::2 group RR-ipv6
[P1-bgp] peer FC01::3 group RR-ipv6
[P1-bgp] peer FC01::4 group RR-ipv6
[P1-bgp] peer 2000::102 group RR-ipv6
[P1-bgp] l2vpn-family evpn
[P1-bgp-af-evpn] undo policy vpn-target
[P1-bgp-af-evpn] peer FC01::1 enable
[P1-bgp-af-evpn] peer FC01::1 reflect-client
[P1-bgp-af-evpn] peer FC01::1 advertise-community
[P1-bgp-af-evpn] peer FC01::1 advertise encap-type srv6
[P1-bgp-af-evpn] peer FC01::2 enable
[P1-bgp-af-evpn] peer FC01::2 reflect-client
[P1-bgp-af-evpn] peer FC01::2 advertise-community
[P1-bgp-af-evpn] peer FC01::2 advertise encap-type srv6
[P1-bgp-af-evpn] peer FC01::3 enable
[P1-bgp-af-evpn] peer FC01::3 reflect-client
[P1-bgp-af-evpn] peer FC01::3 advertise-community
[P1-bgp-af-evpn] peer FC01::3 advertise encap-type srv6
[P1-bgp-af-evpn] peer FC01::4 enable
[P1-bgp-af-evpn] peer FC01::4 reflect-client
[P1-bgp-af-evpn] peer FC01::4 advertise-community
[P1-bgp-af-evpn] peer FC01::4 advertise encap-type srv6
Check whether the peer relationships between PEs and RRs are normal.
Establish a BGP-LS peer relationship between each RR and iMaster NCE-IP for
redundancy protection.
Establish BGP-LS peer relationships between PEs and RRs, so that RRs can report SRv6
Policy path status.
This section describes only device-side configurations. Controller-side configurations are
described in the following sections.
# Configure RRs.
[P1]bgp 65001
[P1-bgp] link-state-family unicast
[P1-bgp-af-ls] domain identifier 1.0.0.56
[P1-bgp-af-ls] peer 2000::102 enable
[P1-bgp-af-ls] peer 2000::102 reflect-client
[P1-bgp-af-ls] peer FC01::1 enable
[P1-bgp-af-ls] peer FC01::1 reflect-client
[P1-bgp-af-ls] peer FC01::2 enable
[P1-bgp-af-ls] peer FC01::2 reflect-client
[P1-bgp-af-ls] peer FC01::3 enable
[P1-bgp-af-ls] peer FC01::3 reflect-client
[P1-bgp-af-ls] peer FC01::4 enable
[P1-bgp-af-ls] peer FC01::4 reflect-client
P1 is used as an example.
# Configure PEs.
[PE1]bgp 65001
[PE1-bgp] link-state-family unicast
[PE1-bgp-af-ls] peer FC01::5 enable
[PE1-bgp-af-ls] peer FC01::6 enable
On P1, you can find that the BGP-LS peer relationship between P1 and PE1 is normal.
After the controller-side configurations are complete, the BGP-LS peer relationship
between P1 and iMaster NCE-IP enters the Established state.
Establish BGP SRv6 Policy peer relationships between PEs and RRs, between PEs and
iMaster NCE-IP, and between RRs and iMaster NCE-IP, so that iMaster NCE-IP can deliver
SRv6 Policy configurations to PEs through RRs.
# Configure PEs.
[PE1]bgp 65001
[PE1-bgp]ipv6-family sr-policy
[PE1-bgp-af-ipv6-srpolicy] undo bestroute nexthop-resolved ip
[PE1-bgp-af-ipv6-srpolicy] peer FC01::5 enable
[PE1-bgp-af-ipv6-srpolicy] peer FC01::6 enable
In the IPv6 SR-Policy address family, remove the restriction that routes can be used for
route selection when the next hop is iterated to an IP address.
PE1 is used as an example. The configurations of other PEs are similar to the
configuration of PE1.
# Configure RRs.
[P1]bgp 65001
[P1-bgp]ipv6-family sr-policy
[P1-bgp-af-ipv6-srpolicy] undo bestroute nexthop-resolved ip
[P1-bgp-af-ipv6-srpolicy] undo router-id filter
[P1-bgp-af-ipv6-srpolicy] peer 2000::102 enable
[P1-bgp-af-ipv6-srpolicy] peer 2000::102 reflect-client
[P1-bgp-af-ipv6-srpolicy] peer FC01::1 enable
[P1-bgp-af-ipv6-srpolicy] peer FC01::1 reflect-client
[P1-bgp-af-ipv6-srpolicy] peer FC01::1 advertise-ext-community
[P1-bgp-af-ipv6-srpolicy] peer FC01::2 enable
[P1-bgp-af-ipv6-srpolicy] peer FC01::2 reflect-client
[P1-bgp-af-ipv6-srpolicy] peer FC01::2 advertise-ext-community
[P1-bgp-af-ipv6-srpolicy] peer FC01::3 enable
[P1-bgp-af-ipv6-srpolicy] peer FC01::3 reflect-client
[P1-bgp-af-ipv6-srpolicy] peer FC01::3 advertise-ext-community
[P1-bgp-af-ipv6-srpolicy] peer FC01::4 enable
[P1-bgp-af-ipv6-srpolicy] peer FC01::4 reflect-client
[P1-bgp-af-ipv6-srpolicy] peer FC01::4 advertise-ext-community
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 186
BGP SRv6 Policy peer relationships are established between the RR and PEs. After the
BGP configuration is complete on iMaster NCE-IP (2000::102), the BGP SRv6 Policy peer
relationship with iMaster NCE-IP is also established.
On the Configure routing page, select Analyzer_01, Controller_01, and NMS_01, and
click Inquire.
After the query is complete, click Add Route at the bottom. In the Add route dialog box,
select the three nodes previously selected and click determine. Then add routes to NEs in
the Add route area according to the following table.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 188
Step 2 Add NEs for management, create links and topologies, and synchronize NE data.
Some operations are similar to those in 3.1 SR-MPLS Service Delivery by the Controller.
Currently, NEs can only be managed based on IPv4 addresses. The IPv4 address
configurations are consistent with those in 3.1 SR-MPLS Service Delivery by the
Controller.
Open the Network Management app and choose Configuration > Control Unit > BGP
from the main menu to configure BGP.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 189
Parameter Value
*Router ID 172.21.17.102
Create BGP peers, which will be invoked from specific address families.
On the Basic Peer Information tab page of the BGP configuration page, click Create
Peer.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 191
Create IPv6 peers fc01::5 and fc01::6 (corresponding to P1 and P2, which serve as RRs),
and disable authentication.
Enable IPv6 peers in the BGP-LS address family, so that iMaster NCE-IP can receive link,
bandwidth, and other information from RRs.
On the Address Family Information tab page, click Link-state. (If Link-state is not
displayed, click Create Address Family to add it.)
Click Create Peer. In the dialog box that is displayed, click Select Peer.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 192
Note that iMaster NCE-IP does not need to send routes to RRs; instead, it only needs to
receive routes. Therefore, you need to set Advertise route to the peer to No.
In the Select Peer dialog box, select the previously created peers fc01::5 and fc01::6.
Step 4 Enable IPv6 peers in the BGP SRv6 Policy address family.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 193
Enable IPv6 peers in the BGP SRv6 Policy address family, so that iMaster NCE-IP can
deliver SRv6 Policy configurations to NEs.
On the Address Family Information tab page, select IPv6-family SR-Policy.
Click Create Peer. In the Create Peer dialog box, click Select Peer.
On the BGP page, click Peer Information to check BGP peer relationships.
The search results show that iMaster NCE-IP has established BGP-LS peer relationships
with P1 and P2 and received route prefixes from P1 and P2.
Set Address family type to ipv6-family sr-policy and click Search. The query result
shows that BGP SRv6 Policy peer relationships with P1 and P2 have been established.
Open the Network Management app and choose Configuration > Common > Profile
Management from the main menu. Then click SR Policy Color Profile.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 196
As shown in the figure, a color template with the color ID of 11 is created. After the
template is referenced by an SRv6 Policy, color 11 is applied to the tunnel.
Open the Network Management app and choose Service > Create > SR Policy from the
main menu to create an SR Policy.
In the SR Policy area, configure the forward SR Policy. First, click the modify icon next to
Color to configure the color.
In the computation result area, select the path with the least cost and click OK. Then,
click Apply.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 201
To recurse EVPN L3VPN traffic to SRv6 Policies, configure a route-policy on PE1 and PE4
to add the color extended community attribute to EVPN routes to be advertised, so that
these routes can recurse to SRv6 Policies.
Open the Network Management app and choose Configuration > Common > Profile
Management from the main menu. Then, click Route Policy Profile.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 202
Select the previously created color SRv6-PE1_PE4 and click Save. Then click OK. The
route-policy template is created.
PE1
[PE1]interface LoopBack3
[PE1-LoopBack3] ip address 172.20.1.1 255.255.255.255
PE4
[PE4]interface LoopBack3
[PE4-LoopBack3] ip address 172.20.4.1 255.255.255.255
Open the Network Management app and choose Service > MBGP L3VPN from the main
menu to configure EVPN L3VPNv4. EVPN L3VPNv4 configuration mainly consists of the
following four aspects:
1. Basic parameters
2. Service nodes
3. Service access points
4. Tunnels
Configure service nodes to determine the tunnel ingress and egress. In this example,
select PE1 and PE4.
Click + in the Service Node area.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 206
In the dialog box that is displayed, set NE name to PE1 and select Enable IPv4.
In the new area that is displayed, set the following parameters for the VRF used for
service access. You only need to set the EVPN RD and RT values, and do not need to set
the L3VPN RD and RT values. This can prevent VPNv4 routes from being imported. If
VPNv4 routes are imported, route selection is affected.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 207
In the Service Node area, configure a tunnel policy. Specifically, click + next to Tunnel
Policy. In the Tunnel Policy dialog box, click the Tunnel Policy Evpn tab and set Policy
type to Auto select. In the SRv6 tunnel policy area, click + and set Type to SRv6 Policy
for route recursion to SRv6 Policies. EVPN routes then recurse to SRv6 TE Policies based
on the color attribute.
In the Service Node area, configure a routing protocol. Specifically, click + next to
Routing Protocol. In the Routing Policy dialog box, set SRv6 VPN Locator to SRv6 and
turn on Enable SRv6 BE: Yes and Enable SRv6 Policy: Yes.
The service node configuration on PE1 is complete. The service node configuration on PE4
is similar to that on PE1.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 210
Configure a service access point to determine the mode in which the user-side CE
accesses the PE. In this experiment, Loopback3 is used to simulate user access.
Click + in the Service Access Point area.
In the Service Access Point dialog box, set Name to PE1_Customer for PE1, retain the
default single-homing access mode, and click +.
Finally, click OK. The service access point PE1_Customer is configured. The service access
point configuration on PE4 is similar to that on PE1.
Because loopback interfaces are used to simulate user access, you do not need to
configure the interconnection mode between the PE and CE. You can configure the
interconnection mode (such as static or BGP) during protocol information configuration
in actual scenarios.
The service access point configurations (CE-related configurations) on PE1 and PE4 are
complete.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 213
Associate the VRF instance with an SRv6 Policy. In the Tunnel Configuration area, select
Enable IPv4.
In the SRv6 Tunnel Policy area, click + and set Tunnel type to SR-MPLS TE Policy.
Finally, click Apply and wait until the EVPN L3VPN service configurations are delivered to
devices.
After the service configurations are successfully delivered, click View Service.
The alarm status and running status are normal.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 214
According to the configuration information, the tunnel policy applied to the VRF is NCE-
VRF-E-EVPN_SRV6.
# Check tunnel information.
Status: UP
Color: 11
The color with ID 11 corresponds to the color in the color template (SRv6-PE1_PE4)
applied to the SR Policy configured on the controller.
The command output shows that the route carries the extended community attribute
Color 11.
The outbound interface of the route to 172.20.4.1 is an SRv6 Policy, not a specific tunnel
interface.
Check SRv6 Policy information.
Candidate-pathCount :1
The tunnel egress is FC01::4 (PE4) and the SIDs of nodes along the tunnel are
FC00:1::1:22, FC00:5::1:22, and FC00:3::1:2.
Check BGP SRv6 Policy route information.
Originator: 172.21.17.102
Cluster list: 1.0.0.5
Tunnel Encaps Attribute (23):
Tunnel Type: SR Policy (15)
Preference: 65535
Binding SID: FC00:1::1:B, s-flag(0), i-flag(0)
Segment List
Weight: 1
Path MTU: 9600
Segment: type:2, SID: FC00:1::1:22
Segment: type:2, SID: FC00:5::1:22
Segment: type:2, SID: FC00:3::1:2
Template ID: 4294967278
Not advertised to any peer yet
….
In route details, we can see the route color, segment list, and other information.
Test EVPN L3VPN connectivity on PE1.
3.2.3 Quiz
What are the three components of an SRv6 SID?
Reference Answers
SR-MPLS Experiment:
1. Unlike in MPLS forwarding, the outer label remains unchanged in a BE scenario.
2. Configure an explicit path and specify first the node SID and then the target ad
jacency SID of the device for the explicit path.
3. An SR-MPLS Policy is identified by <headend, color, endpoint>.
SRv6 Experiment:
1. END.DT6 SID.
2. An End SID is used to identify a local node, and an End.DT4 SID is used to identify an
IPv4 VPN instance on a node.
HCIP-Datacom-WAN Planning and Deployment Lab Guide Page 218