You are on page 1of 20

Change History

Course Code Product Product Version ISSUE


ODN164102 IPv6 ALL 1.00

Developed/Modified By Date Approved By New/Update


Cui Dapeng 2012-04-13 Gao Jianqin New

Huawei Confidential
6PE&6VPE Configuration
Lab Guide

Huawei Confidential
Contents

1 Guide to Experiment on Basic 6PE Configurations..........................................2


1.1 Networking Description..........................................................................................................2
1.2 Basic 6PE Configurations.......................................................................................................3
1.2.1 Configuration Roadmap.................................................................................................3
1.2.2 Configuration Procedure................................................................................................3

2 Guide to Experiment on Basic 6vPE Configurations.....................................10


2.1 Networking Description........................................................................................................10
2.2 Basic 6vPE Configurations...................................................................................................11
2.2.1 Configuration Roadmap...............................................................................................11
2.2.2 Configuration Procedure..............................................................................................11

Huawei Confidential
1

Contents
 This experiment mainly describes the data configuration and result verification of 6PE
and 6vPE, helping you better understand the 6PE and 6vPE technologies.

Objectives
Upon completion of this experiment, you will be able to:
 Describe principles of 6PE.
 Describe principles of 6vPE.
 Configure 6PE and better understand the principles of 6PE.
 Configure 6vPE, better understand the principles of 6vPE, learn about the configuration
mode of 6vPE, and analyze the experiment results.
 Compare differences between 6PE and 6vPE in configuration commands and experiment
results.

Preparations
Before performing the experiment, you should be able to:
 Learn about the basic IPV6 knowledge.
 Learn about the 6PE technological principles and its applicable scenarios.
 Learn about the 6vPE technological principles and its applicable scenarios.

Huawei Confidential
2

1 Guide to Experiment on Basic 6PE


Configurations

1.1 Networking Description


Figure 1.1 Topology of the experiment on 6PE configurations

IPv4/MPLS
R2-PE1 R3-PE2
GE1/0/0 GE1/0/1 GE1/0/0
::1 .1 .2 GE1/0/1
23.23.23.0/30
2001:12::/64 Lo0 :1
Lo0 2001:34::/64
GE1/0/0 2.2.2.2/32 3.3.3.3/32
::2 2001:2::2/64 2001:3::3/64 :2 GE1/0/0
Lo0 Lo0
2001:1::1/64 2001:4::4/64
R1-CE1 R4-CE2
IPv6
IPv6

 Routers PE1 and PE2 support 6PE, and routers CE1 and CE2 support
IPv6.
 The IPv4/MPLS network of the carrier is deployed between PE1 and
PE2. An IPv4 Internal Border Gateway Protocol (IBGP) connection
needs to be established between PEs and the Open Shortest Path First
(OSPF) protocol is used by the Internal Gateway Protocol (IGP). Routers
CE1 and CE2 are located on the IPv6 network and routing information is
exchanged between PEs and CEs using IPv6 addresses in static routing
mode.
 6PE is required to connect user's IPv6 networks through the carrier's
IPv4/MPLS network.
 This experiment mainly describes the basic 6PE data configurations,
including basic IPv6 configurations and configurations of the IGPv4,
MPLS LDP, BGP, and 6PE.

Huawei Confidential
3

1.2 Basic 6PE Configurations


1.2.1 Configuration Roadmap
2. Enable the IPv6 protocol stack globally and configure the corresponding
interface addresses. Check whether the addresses of the directly-
connected interfaces can be successfully pinged.
3. Configure static routes between PEs and CEs.
4. Configure the IGPv4 protocol between PEs.
5. Configure MPLS LDP between PEs.
6. Configure the IBGP peer relationship between PEs and enable 6PE.
7. Check whether CEs can communicate with each other.

1.2.2 Configuration Procedure


Step 2 Enable the IPv6 protocol stack globally and configure the corresponding
interface addresses. Check whether the addresses of the directly-connected
interfaces can be successfully pinged.
1. The configurations of R1-CE1 are shown as follows:
<HUAWEI>system-view
[HUAWEI]sysname R1-CE1
[R1-CE1]ipv6
[R1-CE1]interface LoopBack 0
[R1-CE1-LoopBack0]ipv6 enable
[R1-CE1-LoopBack0]ipv6 address 2001:1::1 64
[R1-CE1-LoopBack0]quit
[R1-CE1]interface GigabitEthernet1/0/0
[R1-CE1-GigabitEthernet1/0/0]ipv6 enable
[R1-CE1-GigabitEthernet1/0/0]ipv6 address 2001:12::2 64
[R1-CE1-GigabitEthernet1/0/0]undo shutdown
[R1-CE1-GigabitEthernet1/0/0]quit

2. The configurations of R2-PE1 are shown as follows:


<HUAWEI>system-view
[HUAWEI]sysname R2-PE1
[R2-PE1]ipv6
[R2-PE1]interface LoopBack 0
[R2-PE1-LoopBack0]ip add 2.2.2.2 32
[R2-PE1-LoopBack0]ipv6 enable
[R2-PE1-LoopBack0]ipv6 address 2001:2::2 64
[R2-PE1-LoopBack0]quit
[R2-PE1]interface GigabitEthernet 1/0/0
[R2-PE1-GigabitEthernet1/0/0]ipv6 enable
[R2-PE1-GigabitEthernet1/0/0]ipv6 address 2001:12::1 64
[R2-PE1-GigabitEthernet1/0/0]undo shutdown
[R2-PE1-GigabitEthernet1/0/0]quit
[R2-PE1]interface GigabitEthernet 1/0/1
[R2-PE1-GigabitEthernet1/0/1]ip address 23.23.23.1 30
[R2-PE1-GigabitEthernet1/0/1]undo shutdown
[R2-PE1-GigabitEthernet1/0/1]quit

3. The configurations of R3-PE2 are shown as follows:


<HUAWEI>system-view
[HUAWEI]sysname R3-PE2
[R3-PE2]ipv6

Huawei Confidential
4

[R3-PE2]interface LoopBack 0
[R3-PE2-LoopBack0]ip add 3.3.3.3 32
[R3-PE2-LoopBack0]ipv6 enable
[R3-PE2-LoopBack0]ipv6 address 2001:3::3 64
[R3-PE2-LoopBack0]quit
[R3-PE2]interface GigabitEthernet 1/0/0
[R3-PE2-GigabitEthernet1/0/0]ip address 23.23.23.2 30
[R3-PE2-GigabitEthernet1/0/0]undo shutdown
[R3-PE2-GigabitEthernet1/0/0]quit
[R3-PE2]interface GigabitEthernet 1/0/1
[R3-PE2-GigabitEthernet1/0/1]ipv6 enable
[R3-PE2-GigabitEthernet1/0/1]ipv6 address 2001:34::1 64
[R3-PE2-GigabitEthernet1/0/1]undo shutdown
[R3-PE2-GigabitEthernet1/0/1]quit

4. The configurations of R4-CE2 are shown as follows:


<HUAWEI>system-view
[HUAWEI]sysname R4-CE2
[R4-CE2]ipv6
[R4-CE2]interface LoopBack 0
[R4-CE2-LoopBack0]ipv6 enable
[R4-CE2-LoopBack0]ipv6 address 2001:4::4 64
[R4-CE2-LoopBack0]quit
[R4-CE2]interface GigabitEthernet1/0/0
[R4-CE2-GigabitEthernet1/0/0]ipv6 enable
[R4-CE2-GigabitEthernet1/0/0]ipv6 address 2001:34::2 64
[R4-CE2-GigabitEthernet1/0/0]undo shutdown
[R4-CE2-GigabitEthernet1/0/0]quit

5. After the configuration is complete, run the ping command on R2-PE1 to


check connectivity.
<R2-PE1>ping ipv6 2001:12::2
PING 2001:12::2 : 56 data bytes, press CTRL_C to break
Reply from 2001:12::2
bytes=56 Sequence=1 hop limit=64 time = 3 ms
Reply from 2001:12::2
bytes=56 Sequence=2 hop limit=64 time = 9 ms
Reply from 2001:12::2
bytes=56 Sequence=3 hop limit=64 time = 4 ms
Reply from 2001:12::2
bytes=56 Sequence=4 hop limit=64 time = 10 ms
Reply from 2001:12::2
bytes=56 Sequence=5 hop limit=64 time = 5 ms

--- 2001:12::2 ping statistics ---


5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 3/6/10 ms

<R2-PE1>ping 23.23.23.2
PING 23.23.23.2: 56 data bytes, press CTRL_C to break
Reply from 23.23.23.2: bytes=56 Sequence=1 ttl=255 time=3 ms
Reply from 23.23.23.2: bytes=56 Sequence=2 ttl=255 time=3 ms
Reply from 23.23.23.2: bytes=56 Sequence=3 ttl=255 time=2 ms
Reply from 23.23.23.2: bytes=56 Sequence=4 ttl=255 time=3 ms
Reply from 23.23.23.2: bytes=56 Sequence=5 ttl=255 time=2 ms

--- 23.23.23.2 ping statistics ---


Huawei Confidential
5

5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 2/2/3 ms

6. After the configuration is complete, run the ping command on R3-PE2 to


check connectivity.
<R3-PE2>ping 23.23.23.1
PING 23.23.23.1: 56 data bytes, press CTRL_C to break
Reply from 23.23.23.1: bytes=56 Sequence=1 ttl=255 time=1 ms
Reply from 23.23.23.1: bytes=56 Sequence=2 ttl=255 time=2 ms
Reply from 23.23.23.1: bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 23.23.23.1: bytes=56 Sequence=4 ttl=255 time=1 ms
Reply from 23.23.23.1: bytes=56 Sequence=5 ttl=255 time=2 ms

--- 23.23.23.1 ping statistics ---


5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/1/2 ms

<R3-PE2>ping ipv6 2001:34::2


PING 2001:34::2 : 56 data bytes, press CTRL_C to break
Reply from 2001:34::2
bytes=56 Sequence=1 hop limit=64 time = 13 ms
Reply from 2001:34::2
bytes=56 Sequence=2 hop limit=64 time = 11 ms
Reply from 2001:34::2
bytes=56 Sequence=3 hop limit=64 time = 19 ms
Reply from 2001:34::2
bytes=56 Sequence=4 hop limit=64 time = 5 ms
Reply from 2001:34::2
bytes=56 Sequence=5 hop limit=64 time = 11 ms

--- 2001:34::2 ping statistics ---


5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 5/11/19 ms

To configure IPv6 addresses, enable IPv6 first.

Step 3 Configure static routes.


1. The configurations of R1-CE1 are shown as follows:
Configure the default route of R1-CE1 to point to R2-PE1.
[R1-CE1]ipv6 route-static :: 0 2001:12::1

2. The configurations of R2-PE1 are shown as follows:


Add a detailed route of loopback 0 network segment of R1-CE1 to R2-
PE1 to point to R1-CE1.
[R2-PE1]ipv6 route-static 2001:1::1 128 2001:12::2

3. The configurations of R3-PE2 are shown as follows:


Add a detailed route of loopback 0 network segment of R4-CE2 to R3-
PE2 to point to R4-CE2.
[R3-PE2]ipv6 route-static 2001:4::4 128 2001:34::2

Huawei Confidential
6

4. The configurations of R4-CE2 are shown as follows:


Configure the default route of R4-CE2 to point to R3-PE2.
[R4-CE2]ipv6 route-static :: 0 2001:34::1

5. After the configuration is complete, run the ping command on R2-PE1 to


check whether the route is configured successfully.
<R2-PE1>ping ipv6 2001:1::1
PING 2001:1::1 : 56 data bytes, press CTRL_C to break
Reply from 2001:1::1
bytes=56 Sequence=1 hop limit=64 time = 3 ms
Reply from 2001:1::1
bytes=56 Sequence=2 hop limit=64 time = 9 ms
Reply from 2001:1::1
bytes=56 Sequence=3 hop limit=64 time = 8 ms
Reply from 2001:1::1
bytes=56 Sequence=4 hop limit=64 time = 6 ms
Reply from 2001:1::1
bytes=56 Sequence=5 hop limit=64 time = 28 ms

--- 2001:1::1 ping statistics ---


5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 3/10/28 ms

6. After the configuration is complete, run the ping command on R3-PE2 to


check whether the route is configured successfully.
<R3-PE2>ping ipv6 2001:4::4
PING 2001:4::4 : 56 data bytes, press CTRL_C to break
Reply from 2001:4::4
bytes=56 Sequence=1 hop limit=64 time = 7 ms
Reply from 2001:4::4
bytes=56 Sequence=2 hop limit=64 time = 4 ms
Reply from 2001:4::4
bytes=56 Sequence=3 hop limit=64 time = 9 ms
Reply from 2001:4::4
bytes=56 Sequence=4 hop limit=64 time = 4 ms
Reply from 2001:4::4
bytes=56 Sequence=5 hop limit=64 time = 9 ms

--- 2001:4::4 ping statistics ---


5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 4/6/9 ms

Step 4 Configure IGPv4 between PEs.


1. The configurations of R2-PE1 are shown as follows:
[R2-PE1]router id 2.2.2.2
[R2-PE1]ospf
[R2-PE1-ospf-1]area 0
[R2-PE1-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[R2-PE1-ospf-1-area-0.0.0.0]network 23.23.23.0 0.0.0.3
[R2-PE1-ospf-1-area-0.0.0.0]quit
[R2-PE1-ospf-1]quit

2. The configurations of R3-PE2 are shown as follows:


[R3-PE2]router id 3.3.3.3
Huawei Confidential
7

[R3-PE2]ospf
[R3-PE2-ospf-1]area 0
[R3-PE2-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-PE2-ospf-1-area-0.0.0.0]network 23.23.23.0 0.0.0.3
[R3-PE2-ospf-1-area-0.0.0.0]quit
[R3-PE2-ospf-1]quit

3. After the configuration is complete, you can view the following routing
information on R3-PE2:
[R3-PE2]dis ospf routing

OSPF Process 1 with Router ID 3.3.3.3


Routing Tables

Routing for Network


Destination Cost Type NextHop AdvRouter
Area
23.23.23.0/30 1 Transit 23.23.23.2 2.2.2.2
0.0.0.0
3.3.3.3/32 0 Stub 3.3.3.3 3.3.3.3
0.0.0.0
2.2.2.2/32 1 Stub 23.23.23.1 2.2.2.2
0.0.0.0

Total Nets: 3
Intra Area: 3 Inter Area: 0 ASE: 0 NSSA: 0

Step 5 Configure MPLS and MPLS LDP between PEs.


1. The configurations of R2-PE1 are shown as follows:
[R2-PE1]mpls lsr-id 2.2.2.2
[R2-PE1]mpls
Info: Mpls starting, please wait... OK!
[R2-PE1-mpls]mpls ldp
[R2-PE1-mpls-ldp]quit
[R2-PE1]interface GigabitEthernet1/0/1
[R2-PE1-GigabitEthernet1/0/1]mpls
[R2-PE1-GigabitEthernet1/0/1]mpls ldp
[R2-PE1-GigabitEthernet1/0/1]quit

2. The configurations of R3-PE2 are shown as follows:


[R3-PE2]mpls lsr-id 3.3.3.3
[R3-PE2]mpls
Info: Mpls starting, please wait... OK!
[R3-PE2-mpls]mpls ldp
[R3-PE2-mpls-ldp]quit
[R3-PE2]interface GigabitEthernet1/0/0
[R3-PE2-GigabitEthernet1/0/0]mpls
[R3-PE2-GigabitEthernet1/0/0]mpls ldp
[R3-PE2-GigabitEthernet1/0/0]quit

3. After the configuration is complete, check whether the MPLS LDP


neighboring relationship is established and whether LSP is assigned on
R2-PE1.
[R2-PE1]display mpls ldp peer

LDP Peer Information in Public network


A '*' before a peer means the peer is being deleted.

--------------------------------------------------------------------

Huawei Confidential
8

PeerID TransportAddress DiscoverySource

--------------------------------------------------------------------
3.3.3.3:0 3.3.3.3 GigabitEthernet1/0/1

--------------------------------------------------------------------
TOTAL: 1 Peer(s) Found.

[R2-PE1]display mpls ldp lsp

LDP LSP Information

--------------------------------------------------------------------
DestAddress/Mask In/OutLabel UpstreamPeer NextHop
OutInterface

--------------------------------------------------------------------
2.2.2.2/32 3/NULL 3.3.3.3 127.0.0.1
InLoop0
*2.2.2.2/32 Liberal
3.3.3.3/32 NULL/3 - 23.23.23.2
GE1/0/1
3.3.3.3/32 1024/3 3.3.3.3 23.23.23.2
GE1/0/1

--------------------------------------------------------------------
TOTAL: 3 Normal LSP(s) Found.
TOTAL: 1 Liberal LSP(s) Found.
TOTAL: 0 Frr LSP(s) Found.
A '*' before an LSP means the LSP is not established
A '*' before a Label means the USCB or DSCB is stale
A '*' before a UpstreamPeer means the session is in GR state
A '*' before a NextHop means the LSP is FRR LSP

Step 6 Configure BGP between PEs and enable 6PE.


1. The configurations of R2-PE1 are shown as follows:
[R2-PE1]bgp 65100
[R2-PE1-bgp]peer 3.3.3.3 as-number 65100
[R2-PE1-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[R2-PE1-bgp]ipv6-family
[R2-PE1-bgp-af-ipv6]import-route direct
[R2-PE1-bgp-af-ipv6]import-route static
[R2-PE1-bgp-af-ipv6]peer 3.3.3.3 enable
[R2-PE1-bgp-af-ipv6]peer 3.3.3.3 label-route-capability
[R2-PE1-bgp-af-ipv6]quit
[R2-PE1-bgp]quit

2. The configurations of R3-PE2 are shown as follows:


[R2-PE1]bgp 65100
[R2-PE1-bgp]peer 2.2.2.2 as-number 65100
[R2-PE1-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[R2-PE1-bgp]ipv6-family
[R2-PE1-bgp-af-ipv6]import-route direct
[R2-PE1-bgp-af-ipv6]import-route static
[R2-PE1-bgp-af-ipv6]peer 2.2.2.2 enable
[R2-PE1-bgp-af-ipv6]peer 2.2.2.2 label-route-capability
[R2-PE1-bgp-af-ipv6]quit
[R2-PE1-bgp]quit

Huawei Confidential
9

Step 7 Verify the experiment result.


1. The routing information about interface loopback 0 of R4-CE2 can be
viewed on R2-PE1.
[R3-PE2]display ipv6 routing-table
Routing Table : Public
Destinations : 10 Routes : 10
Some routing information is omitted.
Destination : 2001:1::1 PrefixLength : 128
NextHop : ::FFFF:2.2.2.2 Preference : 255
Cost : 0 Protocol : BGP
RelayNextHop : :: TunnelID :
0x8008001
Interface : GigabitEthernet1/0/0 Flags : RD
Some routing information is omitted.
2. The ping operation from R1-CE1 to R4-CE2 should be successful.
<R1-CE1>ping ipv6 -a 2001:1::1 2001:4::4
PING 2001:4::4 : 56 data bytes, press CTRL_C to break
Reply from 2001:4::4
bytes=56 Sequence=1 hop limit=62 time = 3 ms
Reply from 2001:4::4
bytes=56 Sequence=2 hop limit=62 time = 5 ms
Reply from 2001:4::4
bytes=56 Sequence=3 hop limit=62 time = 5 ms
Reply from 2001:4::4
bytes=56 Sequence=4 hop limit=62 time = 5 ms
Reply from 2001:4::4
bytes=56 Sequence=5 hop limit=62 time = 5 ms

--- 2001:4::4 ping statistics ---


5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 3/4/5 ms

----End

Huawei Confidential
10

2 Guide to Experiment on Basic 6vPE


Configurations

2.1 Networking Description


Figure 2.1 Topology of the experiment on 6vPE configurations

IPv4/MPLS
R2-PE1 R3-PE2
GE1/0/0 GE1/0/1 GE1/0/0
::1 .1 .2 GE1/0/1
23.23.23.0/30
2001:12::/64 Lo0 :1
Lo0 2001:34::/64
GE1/0/0 2.2.2.2/32 3.3.3.3/32
::2 2001:2::2/64 2001:3::3/64 :2 GE1/0/0
Lo0 Lo0
2001:1::1/64 2001:4::4/64
R1-CE1 R4-CE2
IPv6
IPv6

 The difference between this experiment of the preceding 6PE experiment


is as follows: For 6PE, the virtual private network (VPN) does not exist
and all CEs can communicate with each other. For 6vPE, it is actually a
VPN service in IPv6 edition. That is, CEs in the same VPN can
communicate with each other; CEs in different VPNs, however, are
isolated from each other.
 The major difference between 6vPE configurations and 6PE
configurations is that vpn-instance is not required for 6PE, while vpn-
instance and related parameters such as RD and RT are required for
6vPE.
 Routers PE1 and PE2 support 6vPE, and routers CE1 and CE2 support
IPv6.
 The IPv4/MPLS network of the carrier is deployed between PE1 and
PE2. An IPv4 IBGP connection needs to be established between PEs and
the OSPF protocol is used by the IGP. Routers CE1 and CE2 are located
on the IPv6 network and routing information between PEs and CEs is
exchanged using the IPv6 addresses and BGP. The 6VPE feature is

Huawei Confidential
11

required to connect user's IPv6 VPNs through the carrier's IPv4/MPLS


network.

2.2 Basic 6vPE Configurations


2.2.1 Configuration Roadmap
3. Enable the IPv6 protocol stack globally and configure the corresponding
interface addresses. Check whether the addresses of the directly-
connected interfaces can be successfully pinged (Connectivity between
interfaces connecting PEs and CEs does not need to be checked for the
moment.)
4. Configure IGPv4 between PEs.
5. Configure MPLS LDP between PEs.
6. Configure the VPN on each PE.
7. Configure BGP on each CE.
8. Establish the BGP peer relationship between PEs.
9. Check whether CEs can communicate with each other.

2.2.2 Configuration Procedure


Step 8 Enable the IPv6 protocol stack globally and configure the corresponding
interface addresses. Check whether the addresses of the directly-connected
interfaces can be successfully pinged (Connectivity between interfaces
connecting PEs and CEs does not need to be checked for the moment.)
1. The configurations of R1-CE1 are shown as follows:
<HUAWEI>system-view
[HUAWEI]sysname R1-CE1
[R1-CE1]ipv6
[R1-CE1]interface LoopBack 0
[R1-CE1-LoopBack0]ipv6 enable
[R1-CE1-LoopBack0]ipv6 address 2001:1::1 64
[R1-CE1-LoopBack0]quit
[R1-CE1]interface GigabitEthernet1/0/0
[R1-CE1-GigabitEthernet1/0/0]ipv6 enable
[R1-CE1-GigabitEthernet1/0/0]ipv6 address 2001:12::2 64
[R1-CE1-GigabitEthernet1/0/0]undo shutdown
[R1-CE1-GigabitEthernet1/0/0]quit

2. The configurations of R2-PE1 are shown as follows:


<HUAWEI>system-view
[HUAWEI]sysname R2-PE1
[R2-PE1]ipv6
[R2-PE1]interface LoopBack 0
[R2-PE1-LoopBack0]ip add 2.2.2.2 32
[R2-PE1-LoopBack0]ipv6 enable
[R2-PE1-LoopBack0]ipv6 address 2001:2::2 64
[R2-PE1-LoopBack0]quit
[R2-PE1]interface GigabitEthernet 1/0/1
[R2-PE1-GigabitEthernet1/0/1]ip address 23.23.23.1 30
[R2-PE1-GigabitEthernet1/0/1]undo shutdown
[R2-PE1-GigabitEthernet1/0/1]quit

Huawei Confidential
12

3. The configurations of R3-PE2 are shown as follows:


<HUAWEI>system-view
[HUAWEI]sysname R3-PE2
[R3-PE2]ipv6
[R3-PE2]interface LoopBack 0
[R3-PE2-LoopBack0]ip add 3.3.3.3 32
[R3-PE2-LoopBack0]ipv6 enable
[R3-PE2-LoopBack0]ipv6 address 2001:3::3 64
[R3-PE2-LoopBack0]quit
[R3-PE2]interface GigabitEthernet 1/0/0
[R3-PE2-GigabitEthernet1/0/0]ip address 23.23.23.2 30
[R3-PE2-GigabitEthernet1/0/0]undo shutdown
[R3-PE2-GigabitEthernet1/0/0]quit

4. The configurations of R4-CE2 are shown as follows:


<HUAWEI>system-view
[HUAWEI]sysname R4-CE2
[R4-CE2]ipv6
[R4-CE2]interface LoopBack 0
[R4-CE2-LoopBack0]ipv6 enable
[R4-CE2-LoopBack0]ipv6 address 2001:4::4 64
[R4-CE2-LoopBack0]quit
[R4-CE2]interface GigabitEthernet1/0/0
[R4-CE2-GigabitEthernet1/0/0]ipv6 enable
[R4-CE2-GigabitEthernet1/0/0]ipv6 address 2001:34::2 64
[R4-CE2-GigabitEthernet1/0/0]undo shutdown
[R4-CE2-GigabitEthernet1/0/0]quit

5. After the configuration is complete, run the ping command on R2-PE1 to


check connectivity.
<R2-PE1>ping 23.23.23.2
PING 23.23.23.2: 56 data bytes, press CTRL_C to break
Reply from 23.23.23.2: bytes=56 Sequence=1 ttl=255 time=3 ms
Reply from 23.23.23.2: bytes=56 Sequence=2 ttl=255 time=3 ms
Reply from 23.23.23.2: bytes=56 Sequence=3 ttl=255 time=2 ms
Reply from 23.23.23.2: bytes=56 Sequence=4 ttl=255 time=3 ms
Reply from 23.23.23.2: bytes=56 Sequence=5 ttl=255 time=2 ms

--- 23.23.23.2 ping statistics ---


5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 2/2/3 ms

To configure IPv6 addresses, enable IPv6 first.

Step 9 Configure IGPv4 between PEs.


1. The configurations of R2-PE1 are shown as follows:
[R2-PE1]router id 2.2.2.2
[R2-PE1]ospf
[R2-PE1-ospf-1]area 0
[R2-PE1-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[R2-PE1-ospf-1-area-0.0.0.0]network 23.23.23.0 0.0.0.3
[R2-PE1-ospf-1-area-0.0.0.0]quit
[R2-PE1-ospf-1]quit

2. The configurations of R3-PE2 are shown as follows:

Huawei Confidential
13

[R3-PE2]router id 3.3.3.3
[R3-PE2]ospf
[R3-PE2-ospf-1]area 0
[R3-PE2-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-PE2-ospf-1-area-0.0.0.0]network 23.23.23.0 0.0.0.3
[R3-PE2-ospf-1-area-0.0.0.0]quit
[R3-PE2-ospf-1]quit

3. After the configuration is complete, you should see the following routing
information on R3-PE2.
[R3-PE2]dis ospf routing

OSPF Process 1 with Router ID 3.3.3.3


Routing Tables

Routing for Network


Destination Cost Type NextHop AdvRouter
Area
23.23.23.0/30 1 Transit 23.23.23.2 2.2.2.2
0.0.0.0
3.3.3.3/32 0 Stub 3.3.3.3 3.3.3.3
0.0.0.0
2.2.2.2/32 1 Stub 23.23.23.1 2.2.2.2
0.0.0.0

Total Nets: 3
Intra Area: 3 Inter Area: 0 ASE: 0 NSSA: 0

Step 10 Configure MPLS and MPLS LDP between PEs.


1. The configurations of R2-PE1 are shown as follows:
[R2-PE1]mpls lsr-id 2.2.2.2
[R2-PE1]mpls
Info: Mpls starting, please wait... OK!
[R2-PE1-mpls]mpls ldp
[R2-PE1-mpls-ldp]quit
[R2-PE1]interface GigabitEthernet1/0/1
[R2-PE1-GigabitEthernet1/0/1]mpls
[R2-PE1-GigabitEthernet1/0/1]mpls ldp
[R2-PE1-GigabitEthernet1/0/1]quit

2. Perform the following configurations on R3-PE2:


[R3-PE2]mpls lsr-id 3.3.3.3
[R3-PE2]mpls
Info: Mpls starting, please wait... OK!
[R3-PE2-mpls]mpls ldp
[R3-PE2-mpls-ldp]quit
[R3-PE2]interface GigabitEthernet1/0/0
[R3-PE2-GigabitEthernet1/0/0]mpls
[R3-PE2-GigabitEthernet1/0/0]mpls ldp
[R3-PE2-GigabitEthernet1/0/0]quit

3. After the configuration is complete, check whether the MPLS LDP


neighbor is established and LSP is assigned on R2-PE1.
[R2-PE1]display mpls ldp peer

LDP Peer Information in Public network


A '*' before a peer means the peer is being deleted.

--------------------------------------------------------------------

Huawei Confidential
14

PeerID TransportAddress DiscoverySource

--------------------------------------------------------------------
3.3.3.3:0 3.3.3.3 GigabitEthernet1/0/1

--------------------------------------------------------------------
TOTAL: 1 Peer(s) Found.

[R2-PE1]display mpls ldp lsp

LDP LSP Information

--------------------------------------------------------------------
DestAddress/Mask In/OutLabel UpstreamPeer NextHop
OutInterface

--------------------------------------------------------------------
2.2.2.2/32 3/NULL 3.3.3.3 127.0.0.1
InLoop0
*2.2.2.2/32 Liberal
3.3.3.3/32 NULL/3 - 23.23.23.2
GE1/0/1
3.3.3.3/32 1024/3 3.3.3.3 23.23.23.2
GE1/0/1

--------------------------------------------------------------------
TOTAL: 3 Normal LSP(s) Found.
TOTAL: 1 Liberal LSP(s) Found.
TOTAL: 0 Frr LSP(s) Found.
A '*' before an LSP means the LSP is not established
A '*' before a Label means the USCB or DSCB is stale
A '*' before a UpstreamPeer means the session is in GR state
A '*' before a NextHop means the LSP is FRR LSP

Step 11 Configure VPN on each PE.


1. The configurations of R2-PE1 are shown as follows:
[R2-PE1]ipv6 vpn6-instance vpna
[R2-PE1-vpn6-instance-vpna]route-distinguisher 100:1
[R2-PE1-vpn6-instance-vpna]vpn-target 100:1
[R2-PE1-vpn6-instance-vpna]quit
[R2-PE1]interface GigabitEthernet1/0/0
[R2-PE1-GigabitEthernet1/0/0]ipv6 enable
[R2-PE1-GigabitEthernet1/0/0]ipv6 binding vpn6-instance vpna
All IPV6 related configurations on this interface are removed!
[R2-PE1-GigabitEthernet1/0/0]ipv6 address 2001:12::1 64
[R2-PE1-GigabitEthernet1/0/0]quit

2. The configurations of R3-PE2 are shown as follows:


[R3-PE2]ipv6 vpn6-instance vpna
[R3-PE2-vpn6-instance-vpna]route-distinguisher 200:1
[R3-PE2-vpn6-instance-vpna]vpn-target 100:1
[R3-PE2-vpn6-instance-vpna]quit
[R3-PE2]interface GigabitEthernet1/0/1
[R3-PE2-GigabitEthernet1/0/1]ipv6 enable
[R3-PE2-GigabitEthernet1/0/1]ipv6 binding vpn6-instance vpna
All IPV6 related configurations on this interface are removed!
[R3-PE2-GigabitEthernet1/0/1]ipv6 address 2001:34::1 64
[R3-PE2-GigabitEthernet1/0/1]quit

Huawei Confidential
15

Step 12 Configure BGP on each CE.


1. The configurations of R1-CE1are shown as follows:
[[R1-CE1]bgp 65001
[R1-CE1-bgp]router-id 1.1.1.1
[R1-CE1-bgp]peer 2001:12::1 as-number 65100
[R1-CE1-bgp]ipv6-family
[R1-CE1-bgp-af-ipv6]peer 2001:12::1 enable
[R1-CE1-bgp-af-ipv6]import-route direct
[R1-CE1-bgp-af-ipv6]quit
[R1-CE1-bgp]quit

2. The configurations of R4-CE2 are shown as follows:


[R4-CE2]bgp 65002
[R4-CE2-bgp]router-id 4.4.4.4
[R4-CE2-bgp]peer 2001:34::1 as-number 65100
[R4-CE2-bgp]ipv6-family
[R4-CE2-bgp-af-ipv6]peer 2001:34::1 enable
[R4-CE2-bgp-af-ipv6]import-route direct
[R4-CE2-bgp-af-ipv6]quit
[R4-CE2-bgp]quit

Step 13 Enable BGP between PEs and enable 6vPE.


1. The configurations of R2-PE1 are shown as follows:
Configure the VPNv6 neighboring relationship between PEs.
[R2-PE1]bgp 65100
[R2-PE1-bgp]peer 3.3.3.3 as-number 65100
[R2-PE1-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[R2-PE1-bgp]ipv6-family vpnv6
[R2-PE1-bgp-af-vpnv6]peer 3.3.3.3 enable
[R2-PE1-bgp-af-vpnv6]quit

Configure the BGP+ neighboring relationship between PEs and CEs.


[R2-PE1-bgp]ipv6-family vpn6-instance vpna
[R2-PE1-bgp6-vpna]peer 2001:12::2 as-number 65001
[R2-PE1-bgp6-vpna]quit
[R2-PE1-bgp]quit

2. The configurations of R3-PE2 are shown as follows:


Configure the VPNv6 neighboring relationship between PEs.
[R3-PE2]bgp 65100
[R2-PE1-bgp]peer 2.2.2.2 as-number 65100
[R2-PE1-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[R3-PE2-bgp]ipv6-family vpnv6
[R3-PE2-bgp-af-vpnv6]peer 2.2.2.2 enable
[R3-PE2-bgp-af-vpnv6]quit
Configure the BGP+ neighboring relationship between PEs and CEs.
[R3-PE2-bgp]ipv6-family vpn6-instance vpna
[R3-PE2-bgp6-vpna]peer 2001:34::2 as-number 65002
[R3-PE2-bgp6-vpna]quit
[R3-PE2-bgp]quit

Step 14 Verify the experiment result.


1. The VPNv6 routing information can be viewed on R2-PE1.
<R2-PE1>dis bgp vpnv6 all routing-table

Huawei Confidential
16

BGP Local router ID is 2.2.2.2


Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete

Total number of routes from all PE: 4


Route Distinguisher: 100:1

*> Network : 2001:1:: PrefixLen :


64
NextHop : 2001:12::2 LocPrf :
MED : 0 PrefVal :
0
Label : NULL
Path/Ogn : 65001 ?
*> Network : 2001:12:: PrefixLen :
64
NextHop : 2001:12::2 LocPrf :
MED : 0 PrefVal :
0
Label : NULL
Path/Ogn : 65001 ?

Route Distinguisher: 200:1

*>i Network : 2001:4:: PrefixLen :


64
NextHop : ::FFFF:3.3.3.3 LocPrf :
100
MED : 0 PrefVal :
0
Label : 75776
Path/Ogn : 65002 ?
*>i Network : 2001:34:: PrefixLen :
64
NextHop : ::FFFF:3.3.3.3 LocPrf :
100
MED : 0 PrefVal :
0
Label : 75777
Path/Ogn : 65002 ?

Total routes of vpn6-instance vpna: 4


*> Network : 2001:1:: PrefixLen :
64
NextHop : 2001:12::2 LocPrf :
MED : 0 PrefVal :
0
Label : NULL
Path/Ogn : 65001 ?
*>i Network : 2001:4:: PrefixLen :
64
NextHop : ::FFFF:3.3.3.3 LocPrf :
100

Huawei Confidential
17

MED : 0 PrefVal :
0
Label : 75776
Path/Ogn : 65002 ?
*> Network : 2001:12:: PrefixLen :
64
NextHop : 2001:12::2 LocPrf :
MED : 0 PrefVal :
0
Label : NULL
Path/Ogn : 65001 ?
*>i Network : 2001:34:: PrefixLen :
64
NextHop : ::FFFF:3.3.3.3 LocPrf :
100
MED : 0 PrefVal :
0
Label : 75777
Path/Ogn : 65002 ?

2. The ping operation from R1-CE1 to loopback 0 address of R4-CE2


should be successful.
<R1-CE1>ping ipv6 -a 2001:1::1 2001:4::4
PING 2001:4::4 : 56 data bytes, press CTRL_C to break
Reply from 2001:4::4
bytes=56 Sequence=1 hop limit=62 time = 36 ms
Reply from 2001:4::4
bytes=56 Sequence=2 hop limit=62 time = 5 ms
Reply from 2001:4::4
bytes=56 Sequence=3 hop limit=62 time = 5 ms
Reply from 2001:4::4
bytes=56 Sequence=4 hop limit=62 time = 12 ms
Reply from 2001:4::4
bytes=56 Sequence=5 hop limit=62 time = 5 ms

--- 2001:4::4 ping statistics ---


5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 5/12/36 ms

----End

Huawei Confidential

You might also like