Page 5
Configuring PCEP session parameters ·················································································· 97 Configuring traffic forwarding ······································································································ 97 Configuring static routing to direct traffic to an MPLS TE tunnel ··················································· 97 Configuring PBR to direct traffic to an MPLS TE tunnel ······························································ 98 Configuring automatic route advertisement to direct traffic to an MPLS TE tunnel ···························· 98 Configuring a bidirectional MPLS TE tunnel ···················································································...
Page 6
Establishing an MPLS TE tunnel with RSVP-TE ····································································· 179 RSVP GR configuration example ························································································ 185 Configuring tunnel policies ····························································· 188 Overview ······························································································································ 188 Configuring a tunnel policy ······································································································· 188 Configuration guidelines ··································································································· 188 Configuration procedure ··································································································· 189 Displaying tunnel information ···································································································· 189 Tunnel policy configuration examples ·························································································...
Page 7
Configuring MPLS L3VPN over a GRE tunnel ········································································ 245 Configuring a hub-spoke network ························································································ 249 Configuring MPLS L3VPN inter-AS option A ·········································································· 255 Configuring MPLS L3VPN inter-AS option B ·········································································· 260 Configuring MPLS L3VPN inter-AS option C ········································································· 265 Configuring MPLS L3VPN carrier's carrier in the same AS ······················································· 272 Configuring MPLS L3VPN carrier's carrier in different ASs ·······················································...
Page 8
Control word ··················································································································· 394 MPLS L2VPN interworking ································································································ 394 PW redundancy ·············································································································· 395 Multi-segment PW ··········································································································· 395 VCCV ··························································································································· 397 Hardware and feature compatibility ···························································································· 397 MPLS L2VPN configuration task list ··························································································· 397 Enabling L2VPN ···················································································································· 398 Configuring an AC ·················································································································· 398 Configuring a Layer 3 interface ···························································································...
Page 9
Static PW configuration example ························································································ 456 LDP PW configuration example ·························································································· 460 BGP PW configuration example ························································································· 462 BGP auto-discovery LDP PW configuration example ······························································· 466 H-VPLS using MPLS access configuration example ································································ 471 H-VPLS UPE dual homing configuration example ··································································· 475 Configuring L2VPN access to L3VPN or IP backbone ··························...
Page 10
Verifying the configuration ································································································· 526 Configuring IPv6 MCE ··································································· 527 IPv6 MPLS L3VPN overview ···································································································· 527 IPv6 MCE overview ················································································································ 527 IPv6 MCE configuration task list ································································································ 527 Configuring VPN instances ······································································································ 528 Creating a VPN instance ··································································································· 528 Associating a VPN instance with an interface ········································································ 528 Configuring route related attributes for a VPN instance ····························································...
Configuring basic MPLS Multiprotocol Label Switching (MPLS) provides connection-oriented label switching over connectionless IP backbone networks. It integrates both the flexibility of IP routing and the simplicity of Layer 2 switching. Overview MPLS has the following features: • High speed and efficiency—MPLS uses short- and fixed-length labels to forward packets, avoiding complicated routing table lookups.
A label switched path (LSP) is the path along which packets of an FEC travel through an MPLS network. An LSP is a unidirectional packet forwarding path. Two neighboring LSRs are called the upstream LSR and downstream LSR along the direction of an LSP. As shown in Figure 2, LSR B is the downstream LSR of LSR A, and LSR A is the upstream LSR of LSR B.
Figure 3 MPLS network architecture LSP establishment LSPs include static and dynamic LSPs. • Static LSP—To establish a static LSP, you must configure an LFIB entry on each LSR along the LSP. Establishing static LSPs consumes fewer resources than establishing dynamic LSPs, but static LSPs cannot automatically adapt to network topology changes.
Figure 4 Dynamic LSP establishment MPLS forwarding As shown in Figure 5, a packet is forwarded over the MPLS network as follows: Router B (the ingress LSR) receives a packet with no label. Then, it performs the following operations: a. Identifies the FIB entry that matches the destination address of the packet. b.
Figure 5 MPLS forwarding An egress node must perform two forwarding table lookups to forward a packet: • Two LFIB lookups (if the packet has more than one label). • One LFIB lookup and one FIB lookup (if the packet has only one label). The penultimate hop popping (PHP) feature can pop the label at the penultimate node, so the egress node only performs one table lookup.
Tasks at a glance (Optional.) Setting MPLS MTU (Optional.) Specifying the label type advertised by egress (Optional.) Configuring TTL propagation (Optional.) Enabling sending MPLS TTL-expired messages (Optional.) Enabling MPLS forwarding statistics (Optional.) Enabling split horizon for MPLS forwarding (Optional.) Enabling SNMP notifications for MPLS Enabling MPLS Before you enable MPLS, perform the following tasks: •...
To set an MPLS MTU for an interface: Step Command Remarks Enter system view. system-view interface interface-type Enter interface view. interface-number Set an MPLS MTU for the By default, no MPLS MTU is set mpls mtu size interface. on an interface. The following applies when an interface handles MPLS packets: •...
Configuration procedure To specify the type of label that the egress node will advertise to the penultimate hop: Step Command Remarks Enter system view. system-view Specify the label type mpls label advertise By default, an egress advertises advertised by the egress to { explicit-null | implicit-null | an implicit null label to the the penultimate hop.
• As a best practice, set the same TTL processing mode on all LSRs of an LSP. • To enable TTL propagation for a VPN, you must enable it on all PE devices in the VPN. Then, you can get the same traceroute result (hop count) from those PEs. To enable TTL propagation: Step Command...
Step Command Remarks Enable the device to By default, the device does not maintain FTN entries in the ftn enable maintain FTN entries in the RIB. RIB. Enable FTN forwarding By default, FTN forwarding mpls-forwarding statistics statistics for a destination statistics is disabled for all prefix-list prefix-list-name network.
Step Command Remarks Enter system view. system-view Enable SNMP By default, SNMP notifications for snmp-agent trap enable mpls notifications for MPLS. MPLS are enabled. Displaying and maintaining MPLS Execute display commands in any view and reset commands in user view. Task Command Display MPLS interface information.
Configuring a static LSP Overview A static label switched path (LSP) is established by manually specifying the incoming label and outgoing label on each node (ingress, transit, or egress node) of the forwarding path. Static LSPs consume fewer resources, but they cannot automatically adapt to network topology changes.
• If you want to associate the static LSP with an LDP LSP, make sure the egress node of the static LSP has a route to the destination. Configuration procedure To configure a static LSP: Step Command Remarks Enter system view. system-view static-lsp ingress lsp-name destination ip-address { mask |...
Figure 8 Network diagram Configuration restrictions and guidelines • For an LSP, the outgoing label specified on an LSR must be identical with the incoming label specified on the downstream LSR. • LSPs are unidirectional. You must configure an LSP for each direction of the data forwarding path.
Configuring LDP Overview The Label Distribution Protocol (LDP) dynamically distributes FEC-label mapping information between LSRs to establish LSPs. Terminology LDP session Two LSRs establish a TCP-based LDP session to exchange FEC-label mappings. LDP peer Two LSRs that use LDP to exchange FEC-label mappings are LSR peers. Label spaces and LDP identifiers Label spaces include the following types: •...
• Advertisement messages—Create, alter, and remove FEC-label mappings, such as Label Mapping messages used to advertise FEC-label mappings. • Notification messages—Provide advisory information and notify errors, such as Notification messages. LDP uses UDP to transport discovery messages for efficiency, and uses TCP to transport session, advertisement, and notification messages for reliability.
Establishing LSPs LDP classifies FECs according to destination IP addresses in IP routing entries, creates FEC-label mappings, and advertises the mappings to LDP peers through LDP sessions. After an LDP peer receives an FEC-label mapping, it uses the received label and the label locally assigned to that FEC to create an LFIB entry for that FEC.
Page 30
NOTE: To successfully establish an LSP, a pair of upstream and downstream LSRs must use the same label advertisement mode. Label distribution control LDP controls label distribution in one of the following ways: • Independent label distribution—Distributes an FEC-label mapping to an upstream LSR at any time.
Page 31
LDP GR LDP Graceful Restart (GR) preserves label forwarding information when the signaling protocol or control plane fails, so that LSRs can still forward packets according to forwarding entries. As shown in Figure 12, GR defines the following roles: • GR restarter—An LSR that performs GR.
Page 32
When the MPLS Forwarding State Holding timer expires, the GR restarter deletes all stale MPLS forwarding entries. When the LDP Recovery timer expires, the GR helper deletes all stale FEC-label mappings. Figure 13 LDP GR operation GR restarter GR helper Set up an LDP session, and identify that they are LDP GR capable Protocol...
LDP-IGP synchronization Basic operating mechanism LDP establishes LSPs based on the IGP optimal route. If LDP is not synchronized with IGP, MPLS traffic forwarding might be interrupted. LDP is not synchronized with IGP when one of the following situations occurs: •...
You can use one of the following methods to enable IP FRR: • Configure an IGP to automatically calculate a backup next hop. • Configure an IGP to specify a backup next hop by using a routing policy. As shown in Figure 14, configure IP FRR on LSR A.
Tasks at a glance (Optional.) Resetting LDP sessions (Optional.) Enabling SNMP notifications for LDP Enabling LDP To enable LDP, you must first enable LDP globally. Then, enable LDP on relevant interfaces or configure IGP to automatically enable LDP on those interfaces. Enabling LDP globally Step Command...
Setting Link Hello timers Step Command Remarks Enter system view. system-view Enter the view of the interface interface-type interface where you want to interface-number establish an LDP session. mpls ldp timer hello-hold By default, the Link Hello hold Set the Link Hello hold time. timeout time is 15 seconds.
Page 38
Step Command Remarks mpls ldp timer By default, the Keepalive interval Set the Keepalive interval. keepalive-interval interval is 15 seconds. By default, the LDP transport address is the LSR ID of the local device if the interface where you want to establish an LDP session belongs to the public network.
Step Command Remarks mpls ldp timer By default, the Keepalive Set the Keepalive interval. keepalive-interval interval interval is 15 seconds. By default, the LDP IPv6 Configure the LDP transport mpls ldp transport-address transport address is not address. ipv6-address configured. Configuring LDP backoff If LDP session parameters (for example, the label advertisement mode) are incompatible, two LDP peers cannot establish a session, and they will keep negotiating with each other.
Step Command Remarks Enable LDP MD5 md5-authentication peer-lsr-id { cipher | By default, LDP MD5 authentication. plain } string authentication is disabled. Configuring LDP to redistribute BGP unicast routes By default, LDP automatically redistributes IGP routes, including the BGP routes that have been redistributed into IGP.
Step Command Remarks Enter system view. system-view • Enter LDP view: mpls ldp • Enter LDP view or enter Enter LDP-VPN instance view: LDP-VPN instance a. mpls ldp view. b. vpn-instance vpn-instance-name By default, LDP uses only the Configure an IPv4 LSP lsp-trigger { all | prefix-list redistributed IPv4 routes with a generation policy.
Figure 16 Label advertisement control diagram A label advertisement policy on an LSR and a label acceptance policy on its upstream LSR can achieve the same purpose. As a best practice, use label advertisement policies to reduce network load if downstream LSRs support label advertisement control. Before you configure an LDP label advertisement policy, create an IP prefix list.
Figure 17 Label acceptance control diagram A label advertisement policy on an LSR and a label acceptance policy on its upstream LSR can achieve the same purpose. As a best practice, use the label advertisement policy to reduce network load. You must create an IP prefix list before you configure a label acceptance policy.
reaches the path vector limit, LDP also determines that a loop has occurred and terminates the LSP establishment. Configuration restrictions and guidelines • To use this feature, you must enable it on all LSRs that the LSP passes through. • To avoid extra LDP overhead, do not use this feature if most of the devices in an MPLS network support the TTL mechanism.
Step Command Remarks Enter system view. system-view Enter LDP view. mpls ldp Enable the session session protection [ duration By default, session protection is protection feature. time ] [ peer peer-prefix-list-name ] disabled. Configuring LDP GR Before you configure LDP GR, enable LDP on the GR restarter and GR helpers. To configure LDP GR: Step Command...
Page 46
Step Command Remarks Enter system view. system-view ospf [ process-id | router-id Enter OSPF view. router-id ] * Enable LDP-OSPF By default, LDP-OSPF mpls ldp sync synchronization. synchronization is disabled. Return to system view. quit interface interface-type Enter interface view. interface-number (Optional.) Disable LDP-IGP By default, LDP-IGP...
Configuring LDP IS-IS synchronization LDP-IGP synchronization is not supported for an IS-IS process that belongs to a VPN instance. To configure LDP-ISIS synchronization for an IS-IS process: Step Command Remarks Enter system view. system-view Enter IS-IS view. isis [ process-id ] Enable LDP-ISIS By default, LDP-ISIS mpls ldp sync [ level-1 | level-2 ]...
Resetting LDP sessions Changes to LDP session parameters take effect only on new LDP sessions. To apply the changes to an existing LDP session, you must reset all LDP sessions by executing the reset mpls ldp command. Execute the reset mpls ldp command in user view. Task Command Remarks...
Task Command display mpls ldp summary [ all | vpn-instance Display LDP summary information. vpn-instance-name ] IPv4 LDP configuration examples LDP LSP configuration example Network requirements Router A, Router B, and Router C all support MPLS. Configure LDP to establish LSPs between Router A and Router C, so subnets 11.1.1.0/24 and 21.1.1.0/24 can reach each other over MPLS.
5 packets transmitted, 5 packets received, 0.0% packet loss Round-trip min/avg/max = 1/1/1 ms Label acceptance control configuration example Network requirements Two links, Router A—Router B—Router C and Router A—Router D—Router C, exist between subnets 11.1.1.0/24 and 21.1.1.0/24. Configure LDP to establish LSPs only for routes to subnets 11.1.1.0/24 and 21.1.1.0/24. Configure LDP to establish LSPs only on the link Router A—Router B—Router C to forward traffic between subnets 11.1.1.0/24 and 21.1.1.0/24.
Page 55
[RouterD-GigabitEthernet1/1/3] mpls ldp enable [RouterD-GigabitEthernet1/1/3] quit Configure IPv4 LSP generation policies: # On Router A, create IP prefix list routera, and configure LDP to use only the routes permitted by the prefix list to establish LSPs. [RouterA] ip prefix-list routera index 10 permit 11.1.1.0 24 [RouterA] ip prefix-list routera index 20 permit 21.1.1.0 24 [RouterA] mpls ldp [RouterA-ldp] lsp-trigger prefix-list routera...
Page 56
[RouterC] ip prefix-list prefix-from-d index 10 deny 11.1.1.0 24 # On Router C, configure label acceptance policies to filter FEC-label mappings received from Router B and Router D. [RouterC] mpls ldp [RouterC-ldp] accept-label peer 2.2.2.9 prefix-list prefix-from-b [RouterC-ldp] accept-label peer 4.4.4.9 prefix-list prefix-from-d [RouterC-ldp] quit Verifying the configuration # Display LDP LSP information on the routers, for example, on Router A.
Label advertisement control configuration example Network requirements Two links, Router A—Router B—Router C and Router A—Router D—Router C, exist between subnets 11.1.1.0/24 and 21.1.1.0/24. Configure LDP to establish LSPs only for routes to subnets 11.1.1.0/24 and 21.1.1.0/24. Configure LDP to establish LSPs only on the link Router A—Router B—Router C to forward traffic between subnets 11.1.1.0/24 and 21.1.1.0/24.
Page 59
Configure IPv4 LSP generation policies: # On Router A, create IP prefix list routera, and configure LDP to use only the routes permitted by the prefix list to establish LSPs. [RouterA] ip prefix-list routera index 10 permit 11.1.1.0 24 [RouterA] ip prefix-list routera index 20 permit 21.1.1.0 24 [RouterA] mpls ldp [RouterA-ldp] lsp-trigger prefix-list routera [RouterA-ldp] quit...
Page 60
[RouterC] mpls ldp [RouterC-ldp] advertise-label prefix-list prefix-to-b peer peer-b [RouterC-ldp] quit # On Router D, create IP prefix list prefix-to-a to deny subnet 21.1.1.0/24. Router D uses this list to filter FEC-label mappings to be advertised to Router A. [RouterD] ip prefix-list prefix-to-a index 10 deny 21.1.1.0 24 [RouterD] ip prefix-list prefix-to-a index 20 permit 0.0.0.0 0 less-equal 32 # On Router D, create IP prefix list peer-a to permit 1.1.1.9/32.
LDP FRR configuration example Network requirements Router S, Router A, and Router D reside in the same OSPF domain. Configure OSPF FRR so LDP can establish a primary LSP and a backup LSP on the Router S—Router D and the Router S—Router A—Router D links, respectively.
Page 63
[RouterD] bfd echo-source-ip 11.11.11.11 [RouterD] ospf 1 [RouterD-ospf-1] fast-reroute lfa [RouterD-ospf-1] quit (Method 2.) Enable OSPF FRR to specify a backup next hop by using a routing policy: # Configure Router S. <RouterS> system-view [RouterS] bfd echo-source-ip 10.10.10.10 [RouterS] ip prefix-list abc index 10 permit 21.1.1.0 24 [RouterS] route-policy frr permit node 10 [RouterS-route-policy] if-match ip address prefix-list abc [RouterS-route-policy] apply fast-reroute backup-interface gigabitethernet 1/1/1...
IPv6 LDP configuration examples IPv6 LDP LSP configuration example Network requirements Router A, Router B, and Router C all support MPLS. Configure LDP to establish IPv6 LSPs between Router A and Router C, so subnets 11::0/64 and 21::0/64 can reach each other over MPLS. Configure LDP to establish LSPs only for destinations 100::1/128, 100::2/128, 100::3/128, 11::0/64, and 21::0/64 on Router A, Router B, and Router C.
Page 66
[RouterA-Serial1/1/0] ospfv3 1 area 0.0.0.0 [RouterA-Serial1/1/0] quit # Configure Router B. <RouterB> system-view [RouterB] ospfv3 [RouterB-ospfv3-1] router-id 2.2.2.9 [RouterB-ospfv3-1] area 0 [RouterB-ospfv3-1-area-0.0.0.0] quit [RouterB-ospfv3-1] quit [RouterB] interface loopback 0 [RouterB-LoopBack0] ospfv3 1 area 0.0.0.0 [RouterB-LoopBack0] quit [RouterB] interface serial 1/1/0 [RouterB-Serial1/1/0] ospfv3 1 area 0.0.0.0 [RouterB-Serial1/1/0] quit [RouterB] interface serial 1/1/1...
56 bytes from 21::1, icmp_seq=4 hlim=63 time=2.000 ms --- Ping6 statistics for 21::1 --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 1.000/2.200/3.000/0.748 ms # Test the connectivity of the IPv6 LDP LSP from Router C to Router A. [RouterC] ping ipv6 -a 21::1 11::1 Ping6(56 data bytes) 21::1 -->...
Page 71
• To establish IPv6 LDP LSPs, configure an IPv6 routing protocol to ensure IP connectivity between the LSRs. This example uses OSPFv3. • To ensure that LDP establishes IPv6 LSPs only for the routes 11::0/64 and 21::0/64, configure IPv6 LSP generation policies on each LSR. •...
Page 73
[RouterC-ldp] quit # On Router D, create IPv6 prefix list routerd, and configure LDP to use only the routes permitted by the prefix list to establish IPv6 LSPs. [RouterD] ipv6 prefix-list routerd index 10 permit 11::0 64 [RouterD] ipv6 prefix-list routerd index 20 permit 21::0 64 [RouterD] mpls ldp [RouterD-ldp] ipv6 lsp-trigger prefix-list routerd [RouterD-ldp] quit...
The output shows that the next hop of the IPv6 LSP for FEC 21::0/64 is Router B (FE80::20C:29FF:FE9D:EAC0). The IPv6 LSP has been established over the link Router A—Router B—Router C, not over the link Router A—Router D—Router C. # Test the connectivity of the IPv6 LDP LSP from Router A to Router C. [RouterA] ping ipv6 -a 11::1 21::1 Ping6(56 data bytes) 11::1 -->...
Page 77
# On Router A, create IPv6 prefix list routera, and configure LDP to use only the routes permitted by the prefix list to establish IPv6 LSPs. [RouterA] ipv6 prefix-list routera index 10 permit 11::0 64 [RouterA] ipv6 prefix-list routera index 20 permit 21::0 64 [RouterA] mpls ldp [RouterA-ldp] ipv6 lsp-trigger prefix-list routera [RouterA-ldp] quit...
Page 78
[RouterC-ldp] ipv6 advertise-label prefix-list prefix-to-b peer peer-b [RouterC-ldp] quit # On Router D, create IPv6 prefix list prefix-to-a to deny subnet 21::0/64. Router D uses this list to filter FEC-label mappings to be advertised to Router A. [RouterD] ipv6 prefix-list prefix-to-a index 10 deny 21::0 64 [RouterD] ipv6 prefix-list prefix-to-a index 20 permit 0::0 0 less-equal 128 # On Router D, create IP prefix list peer-a to permit 1.1.1.9/32.
Page 80
56 bytes from 21::1, icmp_seq=4 hlim=63 time=1.000 ms --- Ping6 statistics for 21::1 --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 1.000/2.600/4.000/1.020 ms # Test the connectivity of the IPv6 LDP LSP from Router C to Router A. [RouterC] ping ipv6 -a 21::1 11::1 Ping6(56 data bytes) 21::1 -->...
Configuring MPLS TE Overview TE and MPLS TE Network congestion can degrade the network backbone performance. It might occur when network resources are inadequate or when load distribution is unbalanced. Traffic engineering (TE) is intended to avoid the latter situation where partial congestion might occur because of improper resource allocation.
Page 82
A label distribution protocol (such as RSVP-TE) advertises labels to establish CRLSPs and reserves bandwidth resources on each node along the calculated path. Dynamic CRLSPs adapt to network changes and support CRLSP backup and fast reroute, but they require complicated configurations. Advertising TE attributes MPLS TE uses extended link state IGPs, such as OSPF and IS-IS, to advertise TE attributes for links.
Explicit path specifies the nodes to pass and the nodes to not pass for a tunnel. Explicit paths include the following types: Strict explicit path—Among the nodes that the path must traverse, a node and its previous hop must be directly connected. Strict explicit path precisely specifies the path that an MPLS TE tunnel must traverse.
As shown in Figure 25, PCE 1 is the ABR that can calculate paths in Area 0 and Area 1. PCE 2 is the ABR that can calculate paths in Area 1 and Area 2. The CRLSP that PCC uses to reach a destination in Area 2 is established as follows: PCC sends a path calculation request to PCE 1 to request the path to the CRLSP destination.
Automatic route advertisement You can also configure automatic route advertisement to forward traffic through an MPLS TE tunnel. Automatic route advertisement distributes the MPLS TE tunnel to the IGP (OSPF or IS-IS), so the MPLS TE tunnel can participate in IGP routing calculation. Automatic route advertisement is easy to configure and maintain.
• SE—Shared-explicit, where resources are reserved for senders on the same session and shared among them. SE is mainly used for make-before-break. As shown in Figure 27, a CRLSP with 30 M reserved bandwidth has been set up from Router A to Router D through the path Router A—Router B—Router C—Router D.
average output rate sampled during the adjustment time for new CRLSP establishment. If the new CRLSP is set up successfully, MPLS TE switches traffic to the new CRLSP and clears the old CRLSP. You can use a command to limit the maximum and minimum bandwidth. If the tunnel bandwidth calculated by auto bandwidth adjustment is greater than the maximum bandwidth, MPLS TE uses the maximum bandwidth to set up the new CRLSP.
Figure 28 FRR link protection • Node protection—The PLR and the MP are connected through a device and the primary CRLSP traverses this device. When the device fails, traffic is switched to the bypass tunnel. As shown in Figure 29, the primary CRLSP is Router A—Router B—Router C—Router D—Router E, and the bypass tunnel is Router B—Router F—Router D.
Page 89
• TE class—Defines a CT and a priority. The setup priority or holding priority of an MPLS TE tunnel for a CT must be the same as the priority of the TE class. The prestandard and IETF modes of DS-TE have the following differences: •...
− The total bandwidth occupied by CT 0, CT 1, and CT 2 cannot exceed the maximum reservable bandwidth. Figure 31 MAM bandwidth constraints model CT 0 BC 0 CT 1 BC 1 CT 2 BC 2 CT 0 CT 1 CT 2 Max reservable BW Verifies that the CT and the LSP setup/holding priority match an existing TE class.
How CBTS works CBTS processes incoming traffic on the device as follows: Uses a traffic behavior to set a CoS value for the traffic. For more information about traffic behaviors, see QoS configuration in ACL and QoS Configuration Guide. Compares the CoS of the traffic with the CoSs of the MPLS TE tunnels and forwards the traffic to a matching tunnel.
14. Create a tunnel interface on the ingress node of the MPLS TE tunnel. On the tunnel interface, specify the tunnel destination address (the egress node IP address), and configure MPLS TE tunnel constraints (such as the tunnel bandwidth constraints and affinity). 15.
• Enable MPLS. For information about enabling MPLS, see "Configuring basic MPLS." To enable MPLS TE: Step Command Remarks Enter system view. system-view By default, MPLS TE is Enter MPLS TE view. mpls te disabled. Return to system view. quit interface interface-type Enter interface view.
Step Command Remarks The default TE classes for IETF ds-te te-class te-class-index mode are shown in Table class-type Configure a TE class. class-type-number priority In prestandard mode, you cannot priority configure TE classes. Table 1 Default TE classes in IETF mode TE Class Priority Configuring an MPLS TE tunnel to use a static...
Configuring an MPLS TE tunnel to use a dynamic CRLSP To configure an MPLS TE tunnel to use a CRLSP dynamically established by RSVP-TE, perform the following tasks: • Configure MPLS TE attributes for the links. • Configure IGP TE extension to advertise link TE attributes, so as to generate a TEDB on each node.
Step Command Remarks • Configure the maximum reservable bandwidth of the link (BC 0) and BC 1 in RDM model of the prestandard DS-TE: mpls te max-reservable-bandwidth bandwidth-value [ bc1 Use one command according bc1-bandwidth ] to the DS-TE mode and BC •...
Configuring IS-IS TE IS-IS TE uses a sub-TLV of the extended IS reachability TLV (type 22) to carry TE attributes. Because the extended IS reachability TLV carries wide metrics, specify a wide metric-compatible metric style for the IS-IS process before enabling IS-IS TE. Available metric styles for IS-IS TE include wide, compatible, or wide-compatible.
Page 99
Step Command Remarks Enter system view. system-view Enter MPLS TE tunnel interface tunnel tunnel-number interface view. [ mode mpls-te ] By default, the affinity is mpls te affinity-attribute Set an affinity for the MPLS 0x00000000, and the mask is attribute-value [ mask TE tunnel.
Step Command Remarks Configure the MPLS TE tunnel interface to use the mpls te path preference value By default, MPLS TE uses the explicit path, and specify a explicit-path path-name calculated path to establish a preference value for the [ no-cspf ] CRLSP.
Page 101
Step Command Remarks By default, a tunnel uses the TE Specify the metric type to metric for path selection. use when no metric type is path-metric-type { igp | te } Execute this command on the explicitly configured for a ingress node of an MPLS TE tunnel.
Step Command Remarks mpls te reoptimization [ frequency By default, tunnel Enable tunnel reoptimization. seconds ] reoptimization is disabled. Return to user view. return (Optional.) Immediately reoptimize all MPLS TE tunnels that are enabled with mpls te reoptimization the tunnel reoptimization feature.
Page 103
Step Command Remarks Enter system view. system-view Enter MPLS TE tunnel interface tunnel tunnel-number [ mode interface view. mpls-te ] • To record routes: By default, both route mpls te record-route Record routes or record recording and label • both routes and labels. To record both routes and labels: recording are disabled.
Page 104
Step Command Remarks By default, the global auto bandwidth adjustment is disabled. The sampling interval configured in Enable automatic MPLS TE view applies to all MPLS bandwidth adjustment auto-bandwidth enable TE tunnels. The output rates of all globally, and configure [ sample-interval interval ] MPLS TE tunnels are recorded the output rate sampling...
Configuring an MPLS TE tunnel to use a CRLSP calculated by PCEs Configuring a PCE Step Command Remarks Enter system view. system-view Enter MPLS TE view. mpls te By default, no PCE address is Configure a PCE IP address. pce address ip-address configured.
Establishing a backup CRLSP by using the path calculated by PCEs Perform this task to enable the specified PCEs to calculate a backup CRLSP for the PCC. When the primary CRLSP fails, traffic is switched to the backup CRLSP to ensure continuous traffic forwarding. To establish a backup CRLSP by using the path calculated by PCEs: Step Command...
Step Command Remarks By default, the delegation priority of a PCE is 65535. Set the delegation priority of pce peer ip-address a PCE. delegation-priority priority A smaller value represents a higher priority. Set the redelegation timeout By default, the redelegation pce redelegation-timeout value interval.
Step Command Remarks By default, no static routes exist. Configure a static route to See Layer 3—IP Routing The interface specified in this direct traffic to an MPLS TE Command Reference. command must be an MPLS TE tunnel. tunnel interface. Configuring PBR to direct traffic to an MPLS TE tunnel For more information about the commands in this task, see Layer 3—IP Routing Command Reference.
• If you configure the tunnel destination address as the primary IP address of an interface on the egress node, you must enable MPLS TE, and configure OSPF or IS-IS on that interface. This makes sure the primary IP address of the interface can be advertised to its peer. •...
Configuring the active end of a co-routed bidirectional MPLS TE tunnel Step Command Remarks Enter system view. system-view Enter MPLS TE tunnel interface tunnel tunnel-number interface view. [ mode mpls-te ] By default, bidirectional tunnel is Configure a co-routed disabled on the tunnel interface, bidirectional MPLS TE tunnel mpls te bidirectional co-routed and tunnels established on the...
Step Command Remarks Enter system view. system-view Enter MPLS TE tunnel interface tunnel tunnel-number interface view. [ mode mpls-te ] Enable tunnel backup and mpls te backup { hot-standby | By default, tunnel backup is specify the backup mode. ordinary } disabled.
Page 112
mode and the other in node protection mode. Automatically created bypass tunnels can be used to protect any type of CT, but they cannot provide bandwidth protection. A primary tunnel can have both manually configured and automatically created bypass tunnels. The PLR will select one bypass tunnel to protect the primary CRLSP.
Page 113
Primary Bandwidt CRLSP h required requires Bypass tunnel providing Bypass tunnel providing no bandwidth bandwidth protection bandwidth protection primary protection or CRLSP The primary CRLSP can be bound to the bypass tunnel when all the following conditions are met: • The bandwidth that the The primary CRLSP can be bound bypass tunnel can protect is...
Page 114
• Make sure the bandwidth assigned to the bypass tunnel is no less than the total bandwidth needed by all primary CRLSPs to be protected by the bypass tunnel. Otherwise, some primary CRLSPs might not be protected by the bypass tunnel. •...
An automatically created bypass tunnel can protect multiple primary CRLSPs. A bypass tunnel is unused when the bypass tunnel is not bound to any primary CRLSP. When a bypass tunnel is unused for the period of time configured by the timers removal unused command, MPLS TE removes the bypass tunnel.
Step Command Remarks On the PLR, enter the view of the interface connected to the protected node. interface interface-type Enter interface view. interface-number On the protected node, enter the view of the interface connected to the PLR. By default, RSVP hello •...
SNMP on the device. For more information about SNMP configuration, see the network management and monitoring configuration guide for the device. To enable SNMP notifications for MPLS TE: Step Command Remarks Enter system view. system-view Enable SNMP By default, SNMP notifications for snmp-agent trap enable te notifications for MPLS TE.
Page 120
[RouterB-GigabitEthernet1/1/2] quit # Configure Router C. [RouterC] mpls lsr-id 3.3.3.3 [RouterC] mpls te [RouterC-te] quit [RouterC] interface gigabitethernet 1/1/1 [RouterC-GigabitEthernet1/1/1] mpls enable [RouterC-GigabitEthernet1/1/1] mpls te enable [RouterC-GigabitEthernet1/1/1] quit Configure MPLS TE attributes of links: # Set the maximum link bandwidth and maximum reservable bandwidth on Router A. [RouterA] interface gigabitethernet 1/1/1 [RouterA-GigabitEthernet1/1/1] mpls te max-link-bandwidth 10000 [RouterA-GigabitEthernet1/1/1] mpls te max-reservable-bandwidth 5000...
Page 121
# Configure Router B as the transit node of the static CRLSP, and specify the incoming label as 20, next hop address as 3.2.1.2, outgoing label as 30, and bandwidth for the tunnel as 2000 kbps. [RouterB] static-cr-lsp transit static-cr-lsp-1 in-label 20 nexthop 3.2.1.2 out-label 30 bandwidth 2000 # Configure Router C as the egress node of the static CRLSP, and specify the incoming label as [RouterC] static-cr-lsp egress static-cr-lsp-1 in-label 30...
Affinity Attr/Mask : -/- Explicit Path Backup Explicit Path : - Metric Type : TE Record Route Record Label FRR Flag Bandwidth Protection : - Backup Bandwidth Flag: - Backup Bandwidth Type: - Backup Bandwidth Bypass Tunnel Auto Created Route Pinning Retry Limit Retry Interval : 2 sec...
Page 123
The maximum bandwidth of the link that the tunnel traverses is 10000 kbps and the maximum reservable bandwidth of the link is 5000 kbps. Figure 34 Network diagram Table 3 Interface and IP address assignment Device Interface IP address Device Interface IP address Router A...
Page 127
[RouterC] interface pos 1/1/0 [RouterC-POS1/1/0] mpls te max-link-bandwidth 10000 [RouterC-POS1/1/0] mpls te max-reservable-bandwidth 5000 [RouterC-POS1/1/0] quit # Set the maximum link bandwidth and maximum reservable bandwidth on Router D. [RouterD] interface gigabitethernet 1/1/1 [RouterD-GigabitEthernet1/1/1] mpls te max-link-bandwidth 10000 [RouterD-GigabitEthernet1/1/1] mpls te max-reservable-bandwidth 5000 [RouterD-GigabitEthernet1/1/1] quit Configure an MPLS TE tunnel on Router A: # Configure MPLS TE tunnel interface Tunnel 1.
Admin State : Normal Ingress LSR ID : 1.1.1.9 Egress LSR ID : 4.4.4.9 Signaling : RSVP-TE Static CRLSP Name Resv Style : SE Tunnel mode Reverse-LSP name Reverse-LSP LSR ID Reverse-LSP Tunnel ID: - Class Type : CT0 Tunnel Bandwidth : 2000 kbps Reserved Bandwidth : 2000 kbps...
Page 129
Figure 35 Network diagram Table 4 Interface and IP address assignment Device Interface IP address Device Interface IP address Router A Loop0 1.1.1.9/32 Router C Loop0 3.3.3.9/32 GE1/1/1 10.1.1.1/24 GE1/1/1 30.1.1.1/24 GE1/1/2 100.1.1.0/24 POS1/1/0 20.1.1.2/24 Router B Loop0 2.2.2.9/32 Router D Loop0 4.4.4.9/32 GE1/1/1...
Page 131
[RouterC-bgp-ipv4] peer 20.1.1.1 enable [RouterC-bgp-ipv4] import-route ospf [RouterC-bgp-ipv4] import-route direct [RouterC-bgp-ipv4] quit [RouterC-bgp] quit # Verify that the routers have learned the AS-external routes. This example uses Router A. [RouterA] display ip routing-table Destinations : 10 Routes : 10 Destination/Mask Proto Pre Cost NextHop...
Page 133
[RouterC-ospf-1-area-0.0.0.0] quit [RouterC-ospf-1] quit # Configure Router D. [RouterD] ospf [RouterD-ospf-1] opaque-capability enable [RouterD-ospf-1] area 0 [RouterD-ospf-1-area-0.0.0.0] mpls te enable [RouterD-ospf-1-area-0.0.0.0] quit [RouterD-ospf-1] quit Configure an explicit path on Router A. Specify Router B and Router D as loose nodes, and Router C as a strict node.
Page 134
[RouterA-Tunnel1] ip address 7.1.1.1 255.255.255.0 # Specify the tunnel destination address as the LSR ID of Router D. [RouterA-Tunnel1] destination 4.4.4.9 # Configure MPLS TE to use RSVP-TE to establish the tunnel. [RouterA-Tunnel1] mpls te signaling rsvp-te # Assign 2000 kbps bandwidth to the tunnel. [RouterA-Tunnel1] mpls te bandwidth 2000 # Specify the explicit path atod for the tunnel.
Affinity Attr/Mask : 0/0 Explicit Path : atod Backup Explicit Path : - Metric Type : TE Record Route : Disabled Record Label : Disabled FRR Flag : Disabled Bandwidth Protection : Disabled Backup Bandwidth Flag: Disabled Backup Bandwidth Type: - Backup Bandwidth Bypass Tunnel : No...
Page 136
Figure 36 Network diagram Configuration procedure Configure IP addresses and masks for interfaces. (Details not shown.) Configure OSPF to advertise interface addresses and configure OSPF TE: # Configure Router A. <RouterA> system-view [RouterA] ospf [RouterA-ospf-1] area 0 [RouterA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255 [RouterA-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0 [RouterA-ospf-1-area-0.0.0.0] mpls te enable [RouterA-ospf-1-area-0.0.0.0] quit...
Page 137
[RouterC-ospf-1] area 1 [RouterC-ospf-1-area-0.0.0.1] network 10.2.1.0 0.0.0.255 [RouterC-ospf-1-area-0.0.0.1] network 3.3.3.3 0.0.0.0 [RouterC-ospf-1-area-0.0.0.1] mpls te enable [RouterC-ospf-1-area-0.0.0.1] quit [RouterC-ospf-1] quit # Configure Router D. <RouterD> system-view [RouterD] ospf [RouterD-ospf-1] area 2 [RouterD-ospf-1-area-0.0.0.2] network 10.3.1.0 0.0.0.255 [RouterD-ospf-1-area-0.0.0.2] network 4.4.4.4 0.0.0.0 [RouterD-ospf-1-area-0.0.0.2] mpls te enable [RouterD-ospf-1-area-0.0.0.2] quit [RouterD-ospf-1] quit Configure an LSR ID, and enable MPLS, MPLS TE, and RSVP-TE:...
Page 138
# Configure Router C. [RouterC] mpls lsr-id 3.3.3.3 [RouterC] mpls te [RouterC-te] quit [RouterC] rsvp [RouterC-rsvp] quit [RouterC] interface gigabitethernet 1/1/1 [RouterC-GigabitEthernet1/1/1] mpls enable [RouterC-GigabitEthernet1/1/1] mpls te enable [RouterC-GigabitEthernet1/1/1] rsvp enable [RouterC-GigabitEthernet1/1/1] quit # Configure Router D. [RouterD] mpls lsr-id 4.4.4.4 [RouterD] mpls te [RouterD-te] quit [RouterD] rsvp...
Page 139
Compute intra-area paths Act as PCE for inter-area TE LSP computation Act as a default PCE for inter-area TE LSP computation Capabilities: Bidirectional path computation Support for request prioritization Support for multiple requests per message Domains: OSPF 1 area 0.0.0.0 OSPF 1 area 0.0.0.2 # Verify that PCEP sessions have been established on each router.
Bidirectional MPLS TE tunnel configuration example Network requirements Router A, Router B, Router C, and Router D all run IS-IS and they are all level-2 routers. Use RSVP-TE to establish a bidirectional MPLS TE tunnel between Router A and Router D. Figure 37 Network diagram Table 5 Interface and IP address assignment Device...
Destination : 30.1.1.1 : 30.1.1.1 Protocol : Local LSR Type : Ingress Service NHLFE ID : 1024 State : Active Nexthop : 30.1.1.1 Out-Interface: GE1/1/1 CRLSP backup configuration example Network requirements Router A, Router B, Router C, and Router D run IS-IS and IS-IS TE. Use RSVP-TE to establish an MPLS TE tunnel from Router A to Router C to transmit data between the two IP networks.
Page 147
Device Interface IP address Device Interface IP address GE1/1/2 20.1.1.1/24 POS1/1/1 40.1.1.2/24 Configuration procedure Configure IP addresses and masks for interfaces. (Details not shown.) Configure IS-IS to advertise interface addresses, including the loopback interface address, and configure IS-IS TE. (Details not shown.) Configure an LSR ID, and enable MPLS, MPLS TE, and RSVP-TE: # Configure Router A.
Page 148
Line protocol state: UP Description: Tunnel3 Interface Bandwidth: 64kbps Maximum transmission unit: 1496 Internet address: 9.1.1.1/24 (primary) Tunnel source unknown, destination 3.3.3.9 Tunnel TTL 255 Tunnel protocol/transport CR_LSP Output queue - Urgent queuing: Size/Length/Discards 0/100/0 Output queue - Protocol queuing: Size/Length/Discards 0/500/0 Output queue - FIFO queuing: Size/Length/Discards 0/75/0 Last clearing of counters: Never Last 300 seconds input rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec...
Manual bypass tunnel for FRR configuration example Network requirements On the primary CRLSP Router A—Router B—Router C—Router D, use FRR to protect the link Router B—Router C. Use RSVP-TE to establish the primary CRLSP and bypass tunnel based on the constraints of the explicit paths to transmit data between the two IP networks.
Page 151
Configure an LSR ID, and enable MPLS, MPLS TE, and RSVP-TE on each router. Enable BFD for RSVP-TE on Router B and Router C: # Configure Router A. <RouterA> system-view [RouterA] mpls lsr-id 1.1.1.1 [RouterA] mpls te [RouterA-te] quit [RouterA] rsvp [RouterA-rsvp] quit [RouterA] interface gigabitethernet 1/1/1 [RouterA-GigabitEthernet1/1/1] mpls enable...
Page 152
[RouterA] interface tunnel 4 mode mpls-te [RouterA-Tunnel4] ip address 10.1.1.1 255.255.255.0 # Specify the tunnel destination address as the LSR ID of Router D. [RouterA-Tunnel4] destination 4.4.4.4 # Specify the tunnel signaling protocol as RSVP-TE. [RouterA-Tunnel4] mpls te signaling rsvp-te # Specify the explicit path as pri-path.
Page 153
Record Route : Enabled Record Label : Enabled FRR Flag : Enabled Bandwidth Protection : Disabled Backup Bandwidth Flag: Disabled Backup Bandwidth Type: - Backup Bandwidth Bypass Tunnel : No Auto Created : No Route Pinning : Disabled Retry Limit : 10 Retry Interval : 2 sec...
Page 154
[RouterB] display mpls lsp Proto In/Out Label Interface/Out NHLFE 1.1.1.1/4/48960 RSVP 1245/3 GE1/1/2 Backup 1245/3 Tun5 2.2.2.2/5/31857 RSVP GE1/1/2 3.2.1.2 Local POS1/1/0 3.1.1.2 Local GE1/1/2 # Shut down the protected interface GigabitEthernet 1/1/2 on the PLR (Router B). [RouterB] interface gigabitethernet 1/1/2 [RouterB-GigabitEthernet1/1/2] shutdown [RouterB-GigabitEthernet1/1/2] quit # Execute the display interface tunnel 4 command on Router A to display information about the...
NOTE: If you execute the display mpls te tunnel-interface command immediately after an FRR, you can see two CRLSPs in up state. This is because FRR uses the make-before-break mechanism to set up a new LSP, and the old LSP is deleted after the new one has been established for a while. # Verify that the bypass tunnel is in use on Router B.
Page 156
Figure 40 Network diagram Table 8 Interface and IP address assignment Device Interface IP address Device Interface IP address Router A Loop0 1.1.1.1/32 Router E Loop0 5.5.5.5/32 GE1/1/1 2.1.1.1/24 POS1/1/0 3.2.1.2/24 Router B Loop0 2.2.2.2/32 POS1/1/1 3.4.1.1/24 GE1/1/1 2.1.1.2/24 Router C Loop0 3.3.3.3/32 GE1/1/2...
Page 158
# Specify the tunnel destination address as the LSR ID of Router D. [RouterA-Tunnel1] destination 4.4.4.4 # Specify the tunnel signaling protocol as RSVP-TE. [RouterA-Tunnel1] mpls te signaling rsvp-te # Specify the explicit path as pri-path. [RouterA-Tunnel1] mpls te path preference 1 explicit-path pri-path # Enable FRR for the MPLS TE tunnel.
Page 159
Backup Bandwidth Flag: Disabled Backup Bandwidth Type: - Backup Bandwidth Bypass Tunnel : No Auto Created : No Route Pinning : Disabled Retry Limit Retry Interval : 2 sec Reoptimization : Disabled Reoptimization Freq Backup Type : None Backup LSP ID Auto Bandwidth : Disabled Auto Bandwidth Freq...
Page 160
Metric Type : TE Record Route : Enabled Record Label : Disabled FRR Flag : Disabled Bandwidth Protection : Disabled Backup Bandwidth Flag: Disabled Backup Bandwidth Type: - Backup Bandwidth Bypass Tunnel : Yes Auto Created : Yes Route Pinning : Disabled Retry Limit Retry Interval...
2.2.2.1/1/16802 RSVP -/1151 GE1/1/2 Backup Tun50 2.2.2.2/50/16802 RSVP POS1/1/1 3.2.1.2 Local POS1/1/1 3.3.1.2 Local POS1/1/0 # Display detailed information about MPLS TE tunnel 1 (the tunnel for the primary CRLSP) on Router B. The output shows that Tunnel1 is protected by the bypass tunnel Tunnel50, and the protected node is 3.1.1.1.
Page 162
Figure 41 Network diagram Table 9 Interface and IP address assignment Device Interface IP address Device Interface IP address Router A Loop0 1.1.1.9/32 Router C Loop0 3.3.3.9/32 GE1/1/1 10.1.1.1/24 GE1/1/1 30.1.1.1/24 GE1/1/2 100.1.1.1/24 POS1/1/0 20.1.1.2/24 Router B Loop0 2.2.2.9/32 Router D Loop0 4.4.4.9/32 GE1/1/1...
Page 166
[RouterA-GigabitEthernet1/1/1] mpls te max-reservable-bandwidth rdm 10000 bc1 8000 bc2 5000 bc3 2000 [RouterA-GigabitEthernet1/1/1] quit # Set the maximum bandwidth, maximum reservable bandwidth, and bandwidth constraints on Router B. [RouterB] interface gigabitethernet 1/1/1 [RouterB-GigabitEthernet1/1/1] mpls te max-link-bandwidth 10000 [RouterB-GigabitEthernet1/1/1] mpls te max-reservable-bandwidth rdm 10000 bc1 8000 bc2 5000 bc3 2000 [RouterB-GigabitEthernet1/1/1] quit [RouterB] interface pos 1/1/0...
Page 167
[RouterA] ip route-static 100.1.2.0 24 tunnel 1 preference 1 Verifying the configuration # Verify that the tunnel interface is up on Router A. [RouterA] display interface tunnel Tunnel1 Current state: UP Line protocol state: UP Description: Tunnel1 Interface Bandwidth: 64kbps Maximum transmission unit: 1496 Internet address: 7.1.1.1/24 (primary) Tunnel source unknown, destination 4.4.4.9...
Auto Bandwidth : Disabled Auto Bandwidth Freq Min Bandwidth Max Bandwidth Collected Bandwidth # Display bandwidth information on interface GigabitEthernet 1/1/1 on Router A. [RouterA] display mpls te link-management bandwidth-allocation interface gigabitethernet 1/1/1 Interface: GigabitEthernet1/1/1 Max Link Bandwidth : 10000 kbps Max Reservable Bandwidth of Prestandard RDM : 0 kbps Max Reservable Bandwidth of IETF RDM : 10000 kbps...
Page 169
Figure 42 Network diagram Table 10 Interface and IP address assignment Device Interface IP address Device Interface IP address Router A Loop0 1.1.1.1/32 Router D Loop0 4.4.4.4/32 GE1/1/1 10.1.1.1/24 GE1/1/1 30.1.1.2/24 GE1/1/2 20.1.1.1/24 GE1/1/2 40.1.1.1/24 GE1/1/3 30.1.1.1/24 Router E Loop0 5.5.5.5/32 GE1/1/4 100.1.1.1/24...
Page 170
Use RSVP-TE to establish three MPLS TE tunnels: Tunnel 1, Tunnel 2, and Tunnel 3. Tunnel 1 uses path Router A—Router B—Router E. Tunnel 2 uses path Router A—Router C—Router E. Tunnel 3 uses path Router A—Router D—Router E. (Details not shown.) Configure a QoS policy on Router A.
Page 171
Setup Priority Holding Priority Affinity Attr/Mask : -/- Explicit Path Backup Explicit Path : - Metric Type : TE Record Route Record Label FRR Flag Bandwidth Protection : - Backup Bandwidth Flag: - Backup Bandwidth Type: - Backup Bandwidth Bypass Tunnel Auto Created Route Pinning Retry Limit...
Auto Bandwidth Auto Bandwidth Freq Min Bandwidth Max Bandwidth Collected Bandwidth Service-Class [RouterA]display mpls te tunnel-interface Tunnel 3 Tunnel Name : Tunnel 3 Tunnel State : Up (Main CRLSP up) Tunnel Attributes LSP ID : 17418 Tunnel ID Admin State : Normal Ingress LSR ID : 10.1.1.1...
Page 173
Analysis For TE LSAs to be generated, a minimum of one OSPF neighbor must reach FULL state. Solution To resolve the problem: a. Use the display current-configuration command to verify that MPLS TE is configured on involved interfaces. b. Use the debugging ospf mpls-te command to verify that OSPF can receive the TE LINK establishment message.
Configuring a static CRLSP Overview A static Constraint-based Routed Label Switched Path (CRLSP) is established by manually specifying CRLSP setup information on the ingress, transit, and egress nodes of the forwarding path. The CRLSP setup information includes the incoming label, outgoing label, and required bandwidth. If the device does not have enough bandwidth resources required by a CRLSP, the CRLSP cannot be established.
Step Command Remarks • Configure the ingress node: Use one command according static-cr-lsp ingress lsp-name to the position of a device on { nexthop ip-address | the network. outgoing-interface interface-type interface-number } out-label By default, no static CRLSPs out-label-value [ bandwidth [ ct0 | exist.
Figure 43 Network diagram Configuration procedure Configure IP addresses and masks for interfaces. (Details not shown.) Configure IS-IS to advertise interface addresses, including the loopback interface address: # Configure Router A. <RouterA> system-view [RouterA] isis 1 [RouterA-isis-1] network-entity 00.0005.0000.0000.0001.00 [RouterA-isis-1] quit [RouterA] interface gigabitethernet 1/1/1 [RouterA-GigabitEthernet1/1/1] isis enable 1 [RouterA-GigabitEthernet1/1/1] quit...
Page 177
[RouterC-isis-1] network-entity 00.0005.0000.0000.0003.00 [RouterC-isis-1] quit [RouterC] interface gigabitethernet 1/1/1 [RouterC-GigabitEthernet1/1/1] isis enable 1 [RouterC-GigabitEthernet1/1/1] quit [RouterC] interface loopback 0 [RouterC-LoopBack0] isis enable 1 [RouterC-LoopBack0] quit # Execute the display ip routing-table command on each router to verify that the routers have learned the routes to one another, including the routes to the loopback interfaces.
[RouterB-GigabitEthernet1/1/1] mpls te max-link-bandwidth 10000 [RouterB-GigabitEthernet1/1/1] mpls te max-reservable-bandwidth 5000 [RouterB-GigabitEthernet1/1/1] quit [RouterB] interface gigabitethernet 1/1/2 [RouterB-GigabitEthernet1/1/2] mpls te max-link-bandwidth 10000 [RouterB-GigabitEthernet1/1/2] mpls te max-reservable-bandwidth 5000 [RouterB-GigabitEthernet1/1/2] quit # On Router C, set the maximum bandwidth and the maximum reservable bandwidth. [RouterC] interface gigabitethernet 1/1/1 [RouterC-GigabitEthernet1/1/1] mpls te max-link-bandwidth 10000 [RouterC-GigabitEthernet1/1/1] mpls te max-reservable-bandwidth 5000...
Configuring RSVP Overview The Resource Reservation Protocol (RSVP) is a signaling protocol that reserves resources on a network. Extended RSVP supports MPLS label distribution and allows resource reservation information to be transmitted with label bindings. This extended RSVP is called RSVP-TE. RSVP-TE is a label distribution protocol for MPLS TE.
CRLSP setup procedure As shown in Figure 44, a CRLSP is set up by using the following steps: The ingress LSR generates a Path message that carries LABEL_REQUEST, and then forwards the message along the path calculated by CSPF hop-by-hop towards the egress LSR. After receiving the Path message, the egress LSR generates a Resv message carrying the reservation information and the LABEL object.
by sending back a message that includes the Message_ID_ACK object. If the sender does not receive a Message_ID_ACK within the retransmission interval (Rf), it performs the following tasks: • Retransmits the message when Rf expires. • Sets the next transmission interval to (1 + delta) × Rf. The sender repeats this process until it receives the Message_ID_ACK before the retransmission time expires or it has transmitted the message three times.
Protocols and standards • RFC 2205, Resource ReSerVation Protocol • RFC 3209, RSVP-TE: Extensions to RSVP for LSP Tunnels • RFC 2961, RSVP Refresh Overhead Reduction Extensions RSVP configuration task list Tasks at a glance (Required.) Enabling RSVP (Optional.) Perform the following tasks on each node of an MPLS TE tunnel according to your network requirements: •...
Configuring RSVP Srefresh and reliable RSVP message delivery After Srefresh is enabled, RSVP maintains the path and reservation states by sending Srefresh messages rather than standard refresh messages. To configure Srefresh and reliable RSVP message delivery: Step Command Remarks Enter system view. system-view interface interface-type Enter interface view.
Step Command Remarks Set the maximum number of By default, the maximum number consecutive lost or hello lost times is 4. erroneous hellos. Set the interval for sending By default, hello requests are sent hello interval interval hello requests. every 5 seconds. Return to system view.
To configure RSVP authentication in interface view: Step Command Remarks Enter system view. system-view interface interface-type Enter interface view. interface-number By default, RSVP authentication Enable RSVP authentication is disabled. on the interface and rsvp authentication key { cipher Do not enable both RSVP configure the authentication | plain } string authentication and FRR on the...
Step Command Remarks Enter RSVP view. rsvp Set a DSCP value for outgoing dscp dscp-value By default, the DSCP value is 48. RSVP packets. Configuring RSVP GR RSVP GR depends on the RSVP hello extension feature. When configuring RSVP GR, you must enable RSVP hello extension.
Task Command Display information about the security display rsvp authentication [ from ip-address ] [ to associations established with RSVP ip-address ] [ verbose ] neighbors. Display information about CRLSPs display rsvp lsp [ destination ip-address ] [ source established through RSVP. ip-address ] [ tunnel-id tunnel-id ] [ lsp-id lsp-id ] [ verbose ] display rsvp peer [ interface interface-type Display information about RSVP neighbors.
Page 190
Figure 45 Network diagram IP network IP network GE1/1/2 GE1/1/2 Router A Router D GE1/1/1 GE1/1/1 Loop0 Loop0 Loop0 Loop0 GE1/1/1 GE1/1/1 GE1/1/0 GE1/1/0 Router B Router C Table 11 Interface and IP address assignment Device Interface IP address Device Interface IP address Router A...
Page 194
[RouterC-GigabitEthernet1/1/0] mpls te max-link-bandwidth 10000 [RouterC-GigabitEthernet1/1/0] mpls te max-reservable-bandwidth 5000 [RouterC-GigabitEthernet1/1/0] quit # Set the maximum link bandwidth and maximum reservable bandwidth on Router D. [RouterD] interface gigabitethernet 1/1/1 [RouterD-GigabitEthernet1/1/1] mpls te max-link-bandwidth 10000 [RouterD-GigabitEthernet1/1/1] mpls te max-reservable-bandwidth 5000 [RouterD-GigabitEthernet1/1/1] quit Configure an MPLS TE tunnel on Router A: # Configure MPLS TE tunnel interface Tunnel 1.
Tunnel Attributes LSP ID : 23331 Tunnel ID Admin State : Normal Ingress LSR ID : 1.1.1.9 Egress LSR ID : 4.4.4.9 Signaling : RSVP-TE Static CRLSP Name Resv Style : SE Tunnel mode Reverse-LSP name Reverse-LSP LSR ID Reverse-LSP Tunnel ID: - Class Type : CT0 Tunnel Bandwidth...
Page 197
Configure RSVP GR: # Configure Router A. [RouterA] rsvp [RouterA-rsvp] graceful-restart enable # Configure Router B. [RouterB] rsvp [RouterB-rsvp] graceful-restart enable # Configure Router C. [RouterC] rsvp [RouterC-rsvp] graceful-restart enable Verifying the configuration After a tunnel is established from Router A to Router C, display detailed RSVP neighbor information on Router A.
Configuring tunnel policies Overview Tunnel policies enable a PE to forward traffic for each MPLS VPN over a preferred tunnel or over multiple tunnels. The tunnels supported by MPLS VPN include MPLS LSPs, MPLS TE tunnels, and GRE tunnels. For more information about MPLS TE, see "Configuring MPLS TE." For more information about GRE, see Layer 3—IP Services Configuration Guide.
The second method distributes traffic of a single VPN to multiple tunnels. The transmission delays on different tunnels can vary by a large amount. Therefore, the destination device or the upper layer application might take a great time to sequence the packets. As a best practice, do not use the second method.
Tunnel policy configuration examples Preferred tunnel configuration example Network requirements PE 1 has multiple tunnels to reach PE 2: one MPLS TE tunnel on interface Tunnel 1, one GRE tunnel on interface Tunnel 2, and one LDP LSP tunnel. Two MPLS VPN instances, vpna and vpnb, exist on PE 1. Configure PE 1 to use the MPLS TE tunnel to forward traffic for both VPNs.
[PE1-tunnel-policy-preferredgre2] quit Configure MPLS VPN instances and apply tunnel policies to the VPN instances: # Create MPLS VPN instance vpna, and apply tunnel policy preferredte1 to it. [PE1] ip vpn-instance vpna [PE1-vpn-instance-vpna] route-distinguisher 100:1 [PE1-vpn-instance-vpna] vpn-target 100:1 [PE1-vpn-instance-vpna] tnl-policy preferredte1 [PE1-vpn-instance-vpna] quit # Create MPLS VPN instance vpnb, and apply tunnel policy preferredgre2 to it.
Page 202
Table 12 Tunnel policies used for VPN instances VPN instance Tunnel policy vpna, vpnb Use MPLS TE tunnel Tunnel1 as the preferred tunnel. vpnc, vpnd Use MPLS TE tunnel Tunnel3 as the preferred tunnel. vpne, vpnf Use GRE tunnel Tunnel2 as the preferred tunnel. vpng Uses one tunnel selected in LDP LSP-GRE-MPLS TE order.
Configuring MPLS L3VPN Overview MPLS L3VPN is a L3VPN technology used to interconnect geographically dispersed VPN sites. MPLS L3VPN uses BGP to advertise VPN routes and uses MPLS to forward VPN packets over a service provider backbone. MPLS L3VPN provides flexible networking modes, excellent scalability, and convenient support for MPLS QoS and MPLS TE.
Page 205
• The classification of a site depends on the topology relationship of the devices, rather than the geographical positions. However, the devices at a site are, in most cases, adjacent to each other geographically. • The devices at a site can belong to multiple VPNs, which means that a site can belong to multiple VPNs.
• When the Type field is 2, the Administrator subfield occupies four bytes, the Assigned number subfield occupies two bytes, and the RD format is 32-bit AS number:16-bit user-defined number, where the minimum value of the AS number is 65536. For example, 65536:1. To guarantee global uniqueness for a VPN-IPv4 address, do not set the Administrator subfield to any private AS number or private IP address.
d. Advertises those routes to the connected CE over a static route, RIP route, OSPF route, IS-IS route, EBGP route, or IBGP route. MPLS L3VPN packet forwarding In a basic MPLS L3VPN (within a single AS), a PE adds the following information into VPN packets: •...
MPLS L3VPN networking schemes In MPLS L3VPNs, route target attributes are used to control the advertisement and reception of VPN routes between sites. They work independently and can be configured with multiple values to support flexible VPN access control and implement multiple types of VPN networking schemes. Basic VPN networking scheme In the simplest case, all users in a VPN form a closed user group.
Page 209
• The import target attribute of a spoke PE is different from the export target attribute of any other spoke PE. Any two spoke PEs do not directly advertise VPN-IPv4 routes to each other. Therefore, they cannot directly access each other. Figure 52 Network diagram for hub and spoke network A route in Site 1 is advertised to Site 2 by using the following process: Spoke-CE 1 advertises a route in Site 1 to Spoke-PE 1.
Figure 53 Network diagram for extranet networking scheme VPN 1 Site 1 VPN 1: Import:100:1 Export:100:1 PE 1 VPN 1 PE 3 Site 3 PE 2 VPN 1: Import:100:1,200:1 Export:100:1,200:1 VPN 2: Import:200:1 Site 2 Export:200:1 VPN 2 As shown in Figure 53, route targets configured on PEs produce the following results: •...
Page 211
Figure 54 Network diagram for inter-AS option A As shown in Figure 54, in VPN 1, routes are advertised from CE 1 to CE 3 by using the following process: PE 1 advertises the VPN routes learned from CE 1 to ASBR 1 through MP-IBGP. ASBR 1 performs the following operations: a.
Page 212
Figure 55 Network diagram for inter-AS option B VPN 1 VPN 1 CE 1 CE 3 ASBR 2 ASBR 1 PE 1 PE 3 (PE) (PE) MP-EBGP MPLS backbone MPLS backbone AS 100 AS 200 PE 2 PE 4 VPN LSP 1 VPN LSP 3 VPN LSP2 CE 4...
Page 213
In this solution, PEs exchange VPN-IPv4 routes over a multihop MP-EBGP session. Each PE must have a route to the peer PE and a label for the route so that the inter-AS public tunnel between the PEs can be set up. Inter-AS option C sets up a public tunnel by using the following methods: •...
Assume that the outgoing label for the public tunnel on PE 3 is Lv. After route advertisement and public tunnel setup, a packet is forwarded from CE 3 to CE 1 by using the following process: PE 3 performs the following routing table lookups for the packet: a.
Page 215
For packets between customer networks to travel through the Level 1 carrier, the PE of the Level 1 carrier and the CE of the Level 2 carrier must assign labels to the backbone networks of the Level 2 carrier. The CE of the Level 2 carrier is a PE within the Level 2 carrier network. Follow these guidelines to assign labels: •...
Figure 59 Scenario where the Level 2 carrier is an MPLS L3VPN service provider NOTE: As a best practice, establish equal cost LSPs between the Level 1 carrier and the Level 2 carrier if equal cost routes exist between them. Nested VPN The nested VPN technology exchanges VPNv4 routes between PEs and CEs of the ISP MPLS L3VPN and allows a customer to manage its own internal VPNs.
Figure 60 Network diagram for nested VPN VPN A Provider MPLS Provider PE Provider PE CE 8 CE 7 VPN backbone VPN A-2 VPN A-1 CE 2 CE 1 Customer MPLS Customer MPLS VPN network Customer PE Customer PE CE 3 CE 4 CE 5 CE 6...
Figure 61 Network diagram As shown in Figure 61, the multirole host in site 1 needs to access both VPN 1 and VPN 2. Other hosts in site 1 only need to access VPN 1. To configure the multirole host feature, configure PE 1 as follows: •...
Page 219
Figure 62 Basic architecture of HoVPN As shown in Figure 62, UPEs and SPEs play the following different roles: • A UPE is directly connected to CEs. It provides user access. It maintains the routes of directly connected VPN sites. It does not maintain the routes of the remote sites in the VPN, or it only maintains their summary routes.
Figure 63 Recursion of HoPEs Figure 63 shows a three-level HoPE. The PE in the middle is called the middle-level PE (MPE). MP-BGP runs between SPE and MPE, and between MPE and UPE. MP-BGP advertises the following routes: • All the VPN routes of UPEs to the SPEs. •...
Page 221
Figure 64 Network diagram for BGP/OSPF interaction As shown in Figure 64, CE 11, CE 21, and CE 22 belong to the same VPN and the same OSPF domain. Before domain ID configuration, VPN 1 routes are advertised from CE 11 to CE 21 and CE 22 by using the following process: PE 1 redistributes OSPF routes from CE 11 into BGP, and advertises the VPN routes to PE 2 through BGP.
As shown in Figure 65, Site 1 is connected to two PEs. When a PE advertises VPN routes learned from MP-BGP to Site 1 through OSPF, the routes might be received by the other PE. This results in a routing loop. OSPF VPN extension uses the following tags to avoid routing loops: •...
The BGP AS number substitution feature allows geographically different CEs to use the same AS number. If the AS_PATH of a route contains the AS number of a CE, the PE replaces the AS number with its own AS number before advertising the route to that CE. After you enable the BGP AS number substitution feature, the PE performs BGP AS number substitution for all routes and re-advertises them to connected CEs in the peer group.
Page 224
Figure 68 Network diagram Configure BFD for LSPs or MPLS TE tunnels on PE 1 to detect the connectivity of the public tunnel from PE 1 to PE 2. When the tunnel PE 1—PE 2 operates correctly, traffic from CE 1 to CE 2 goes through the path CE 1—PE 1—PE 2—CE 2.
for VPN 1 connected to CE 2), PE 1 uses the VPNv4 route as the primary link, and the IPv4 route as the backup link. Figure 70 Network diagram PE 1 MPLS VPN 1 VPN 1 backbone CE 1 CE 2 Primary link Backup link PE 2...
Tasks at a glance (Optional.) Enabling SNMP notifications for MPLS L3VPN Configuring basic MPLS L3VPN Tasks at a glance Configuring VPN instances: (Required.) Creating a VPN instance (Required.) Associating a VPN instance with an interface (Optional.) Configuring route related attributes for a VPN instance (Required.) Configuring routing between a PE and a CE (Required.)
Page 227
Step Command Remarks (Optional.) Configure a VPN By default, no VPN ID is vpn-id vpn-id ID for the VPN instance. configured for a VPN instance. (Optional.) Configure an snmp context-name By default, no SNMP context is SNMP context for the VPN context-name configured.
Step Command Remarks By default, the maximum number of active routes for a VPN instance is 1000100. Set the maximum routing-table limit number Setting the maximum number of number of active routes. { warn-threshold | simply-alert } active routes for a VPN instance can prevent the PE from learning too many routes.
Page 229
Configuring RIP between a PE and a CE A RIP process belongs to the public network or a single VPN instance. If you create a RIP process without binding it to a VPN instance, the process belongs to the public network. To configure RIP between a PE and a CE: Step Command...
Page 230
Step Command Remarks The defaults are as follows: • 0x0005 for Domain ID. ext-community-type Configure the type codes of • 0x0107 for Router ID. { domain-id type-code1 | OSPF extended community • router-id type-code2 | route-type 0x0306 for Route Type. attributes.
Page 231
Step Command Remarks Create the BGP-VPN IPv4 By default, the BGP-VPN IPv4 unicast family and enter its address-family ipv4 [ unicast ] unicast family is not created. view. Enable IPv4 unicast route By default, BGP does not exchange with the peer { group-name | ip-address exchange IPv4 unicast routes specified peer or peer...
Page 232
Configuring IBGP between a PE and a CE Use IBGP between PE and CE only in a basic MPLS L3VPN network. In networks such as Hub&Spoke, Extranet, inter-AS VPN, carrier's carrier, nested VPN, and HoVPN, you cannot use IBGP between PE and CE. Configure the PE: Step Command...
Configuring routing between PEs Step Command Remarks Enter system view. system-view bgp as-number [ instance Enter BGP instance view. instance-name ] peer { group-name | ip-address Configure the remote PE as [ mask-length ] } as-number By default, no BGP peers exist. a BGP peer.
Page 234
Step Command Remarks Filter routes received from or peer { group-name | ipv4-address advertised to a peer or peer [ mask-length ] } as-path-acl By default, no AS filtering list is group based on an AS_PATH aspath-filter-number { import | applied to a peer or peer group.
Step Command Remarks By default, route target filtering is enabled for received VPNv4 routes. Only VPNv4 routes whose 21. Enable route target filtering policy vpn-target export route target attribute of received VPNv4 routes. matches local import route target attribute are added to the routing table.
Enable MPLS capability on the interface connected to the ASBR in another AS. There is no need to configure a label distribution protocol, for example, LDP. An ASBR always sets itself as the next hop of VPNv4 routes advertised to an MP-IBGP peer regardless of the peer next-hop-local command.
Page 237
Execute the peer ebgp-max-hop command to enable the local router to establish an EBGP session to an indirectly-connected peer, because the PEs are not directly connected. Specify the ASBR in the same AS as an IBGP peer, and enable BGP to exchange labeled IPv4 unicast routes with the ASBR.
Page 238
Step Command Remarks By default, the device uses its address as the next hop of routes 11. (Optional.) Configure the PE advertised to peers. peer { group-name | ipv4-address to not change the next hop of [ mask-length ] } Configure this command on the routes advertised to the next-hop-invariable...
Step Command Remarks bgp as-number [ instance 13. Enter BGP instance view. instance-name ] peer { group-name | ipv4-address 14. Configure the PE in the same [ mask-length ] } as-number By default, no BGP peers exist. AS as an IBGP peer. as-number 15.
• The address spaces of sub-VPNs of a VPN cannot overlap. • Do not assign nested VPN peers addresses that public network peers use. • Nested VPN does not support multihop EBGP. A provider PE and a provider CE must use the addresses of the directly connected interfaces to establish a neighbor relationship.
Step Command Remarks By default, no match criterion is configured. All packets match the Configure match criteria for See Layer 3—IP Routing criteria for the node. the node. Configuration Guide. This step matches packets from the multirole host. By default, no VPN instance is specified.
Associating an interface with a VPN instance is not required on the SPE because no interface on the SPE is directly connected to the customer network. As a best practice, do not configure the peer default-route-advertise vpn-instance and peer upe route-policy commands at the same time.
• Configure OSPF in the LAN where customer CEs reside. Configuring a loopback interface Step Command Remarks Enter system view. system-view Create a loopback interface interface loopback By default, no loopback interfaces and enter loopback interface interface-number exist. view. Associate the loopback ip binding vpn-instance By default, the interface is interface with a VPN...
Step Command Remarks Enter BGP-VPN instance ip vpn-instance view. vpn-instance-name peer { ipv4-address Enable the BGP AS number By default, BGP AS number [ mask-length ] | group-name } substitution feature. substitution is disabled. substitute-as Enter BGP-VPN IPv4 unicast address-family ipv4 [ unicast ] address family view.
Page 246
Step Command Remarks • Configure BFD to test the connectivity of the LSP for the specified FEC: mpls bfd dest-addr By default, BFD is not configured to mask-length [ nexthop test the connectivity of the LSP or nexthop-address MPLS TE tunnel. [ discriminator local local-id remote remote-id ] ] [ template This step is required for VPNv4...
Step Command Remarks By default, MPLS L3VPN FRR is disabled. Method 1 might result in routing • (Method 1) Enable MPLS loops. Use it with caution. L3VPN FRR for the address By default, no routing policy is family: used. 12. Enable MPLS L3VPN •...
Step Command Remarks Enter system view. system-view Enter VPN instance view. ip vpn-instance vpn-instance-name Enter IPv4 VPN view. address-family ipv4 route-replicate from { public | vpn-instance vpn-instance-name } protocol bgp as-number Enable the VPN instance By default, a VPN instance [ route-policy route-policy-name ] to replicate routes from cannot replicate routes from the...
Task Command Display the routing table for a VPN display ip routing-table vpn-instance vpn-instance-name instance. [ statistics | verbose ] Display information about a specified display ip vpn-instance [ instance-name vpn-instance-name ] or all VPN instances. Display the FIB of a VPN instance. display fib vpn-instance vpn-instance-name Display FIB entries that match the display fib vpn-instance vpn-instance-name ip-address [ mask |...
Page 250
PEs use OSPF to communicate with each other and use MP-IBGP to exchange VPN routing information. Figure 71 Network diagram Table 13 Interface and IP address assignment Device Interface IP address Device Interface IP address CE 1 GE1/1/1 10.1.1.1/24 Loop0 2.2.2.9/32 PE 1 Loop0...
Page 251
[PE1-ospf-1-area-0.0.0.0] quit [PE1-ospf-1] quit # Configure the P device. <P> system-view [P] interface loopback 0 [P-LoopBack0] ip address 2.2.2.9 32 [P-LoopBack0] quit [P] interface pos 1/1/0 [P-Pos1/1/0] ip address 172.1.1.2 24 [P-Pos1/1/0] quit [P] interface pos 1/1/1 [P-Pos1/1/1] ip address 172.2.1.1 24 [P-Pos1/1/1] quit [P] ospf [P-ospf-1] area 0...
Page 253
[PE2-vpn-instance-vpn2] quit [PE2] interface gigabitethernet 1/1/1 [PE2-GigabitEthernet1/1/1] ip binding vpn-instance vpn1 [PE2-GigabitEthernet1/1/1] ip address 10.3.1.2 24 [PE2-GigabitEthernet1/1/1] quit [PE2] interface gigabitethernet 1/1/2 [PE2-GigabitEthernet1/1/2] ip binding vpn-instance vpn2 [PE2-GigabitEthernet1/1/2] ip address 10.4.1.2 24 [PE2-GigabitEthernet1/1/2] quit # Configure IP addresses for the CEs according to Figure 71.
Page 254
[PE1-bgp-default-ipv4-vpn1] quit [PE1-bgp-default-vpn1] quit [PE1-bgp-default] ip vpn-instance vpn2 [PE1-bgp-default-vpn2] peer 10.2.1.1 as-number 65420 [PE1-bgp-default-vpn2] address-family ipv4 unicast [PE1-bgp-default-ipv4-vpn2] peer 10.2.1.1 enable [PE1-bgp-default-ipv4-vpn2] quit [PE1-bgp-default-vpn1] quit [PE1-bgp-default] quit # Configure PE 2 in the same way that PE 1 is configured. (Details not shown.) # Execute the display bgp peer ipv4 vpn-instance command on the PEs to verify that a BGP peer relationship in Established state has been established between a PE and a CE.
127.255.255.255/32 Direct 0 127.0.0.1 InLoop0 224.0.0.0/4 Direct 0 0.0.0.0 NULL0 224.0.0.0/24 Direct 0 0.0.0.0 NULL0 255.255.255.255/32 Direct 0 127.0.0.1 InLoop0 The output shows that PE 1 has a route to the remote CE. Output on PE 2 is similar. # Verify that CEs of the same VPN can ping each other, whereas those of different VPNs cannot. For example, CE 1 can ping CE 3 (10.3.1.1), but it cannot ping CE 4 (10.4.1.1).
Page 256
This example uses OSPF. (Details not shown.) # Execute the display ospf peer command to verify that OSPF adjacencies in Full state have been established between PE 1, P, and PE 2. Execute the display ip routing-table command to verify that the PEs have learned the loopback route of each other. (Details not shown.) Configure basic MPLS on the PEs: # Configure PE 1.
Page 257
[CE2-GigabitEthernet1/1/1] quit # Execute the display ip vpn-instance command on the PEs to display the configuration of the VPN instance, for example, on PE 1. [PE1] display ip vpn-instance Total VPN-Instances configured : 1 VPN-Instance Name Create time vpn1 100:1 2012/02/13 15:59:50 # Use the ping command on the PEs to verify that the PEs can ping their attached CEs, for example, on PE 1.
[PE1-bgp-default] peer 2.2.2.9 connect-interface loopback 0 [PE1-bgp-default] address-family vpnv4 [PE1-bgp-default-vpnv4] peer 2.2.2.9 enable [PE1-bgp-default-vpnv4] quit [PE1-bgp-default] quit # Configure PE 2 in the same way that PE 1 is configured. (Details not shown.) # Execute the display bgp peer vpnv4 command on the PEs to verify that a BGP peer relationship in Established state has been established between the PEs.
Configuring a hub-spoke network Network requirements The Spoke-CEs cannot communicate directly. They can communicate only through Hub-CE. Configure EBGP between the Spoke-CEs and Spoke-PEs and between Hub-CE and Hub-PE to exchange VPN routing information. Configure OSPF between the Spoke-PEs and Hub-PE to implement communication between the PEs, and configure MP-IBGP between them to exchange VPN routing information.
Page 264
[Hub-PE-bgp-default-ipv4-vpn1-in] quit [Hub-PE-bgp-default-vpn1-in] quit [Hub-PE-bgp-default] ip vpn-instance vpn1-out [Hub-PE-bgp-default-vpn1-out] peer 10.4.1.1 as-number 65430 [Hub-PE-bgp-default-vpn1-out] address-family ipv4 [Hub-PE-bgp-default-ipv4-vpn1-out] peer 10.4.1.1 enable [Hub-PE-bgp-default-ipv4-vpn1-out] peer 10.4.1.1 allow-as-loop 2 [Hub-PE-bgp-default-ipv4-vpn1-out] quit [Hub-PE-bgp-default-vpn1-out] quit [Hub-PE-bgp-default] quit # Execute the display bgp peer ipv4 vpn-instance command on the PEs to verify that a BGP peer relationship in Established state has been established between a PE and a CE.
Page 271
Figure 75 Network diagram MPLS backbone Loop0 Loop0 MPLS backbone AS 100 AS 600 Ser1/1/1 Ser1/1/1 Ser1/1/0 Ser1/1/0 ASBR-PE 1 ASBR-PE 2 Loop0 Loop0 Ser1/1/0 Ser1/1/0 PE 2 PE 1 GE1/1/1 GE1/1/1 Site 2 Site 1 CE 1 CE 2 AS 65001 AS 65002 Table 17 Interface and IP address assignment...
Page 272
# Configure interface Loopback 0, and enable IS-IS on it. [PE1] interface loopback 0 [PE1-LoopBack0] ip address 2.2.2.9 32 [PE1-LoopBack0] isis enable 1 [PE1-LoopBack0] quit # Create VPN instance vpn1, and configure the RD and route target attributes. [PE1] ip vpn-instance vpn1 [PE1-vpn-instance-vpn1] route-distinguisher 11:11 [PE1-vpn-instance-vpn1] vpn-target 1:1 2:2 3:3 import-extcommunity [PE1-vpn-instance-vpn1] vpn-target 3:3 export-extcommunity...
Page 273
# Configure interface Serial 1/1/1, and enable MPLS. [ASBR-PE1] interface serial 1/1/1 [ASBR-PE1-Serial1/1/1] ip address 11.0.0.2 255.0.0.0 [ASBR-PE1-Serial1/1/1] mpls enable [ASBR-PE1-Serial1/1/1] quit # Configure interface Loopback 0, and enable IS-IS on it. [ASBR-PE1] interface loopback 0 [ASBR-PE1-LoopBack0] ip address 3.3.3.9 32 [ASBR-PE1-LoopBack0] isis enable 1 [ASBR-PE1-LoopBack0] quit # Enable BGP on ASBR-PE 1.
Page 274
[ASBR-PE2-LoopBack0] ip address 4.4.4.9 32 [ASBR-PE2-LoopBack0] isis enable 1 [ASBR-PE2-LoopBack0] quit # Enable BGP on ASBR-PE 2. [ASBR-PE2] bgp 600 [ASBR-PE2-bgp-default] peer 11.0.0.2 as-number 100 [ASBR-PE2-bgp-default] peer 11.0.0.2 connect-interface serial 1/1/1 [ASBR-PE2-bgp-default] peer 5.5.5.9 as-number 600 [ASBR-PE2-bgp-default] peer 5.5.5.9 connect-interface loopback 0 # Disable route target based filtering of received VPNv4 routes.
[CE2-GigabitEthernet1/1/1] ip address 20.0.0.2 24 [CE2-GigabitEthernet1/1/1] quit # Establish an EBGP peer relationship with PE 2, and redistribute VPN routes. [CE2] bgp 65002 [CE2-bgp-default] peer 20.0.0.1 as-number 600 [CE2-bgp-default] address-family ipv4 unicast [CE2-bgp-default-ipv4] peer 20.0.0.1 enable [CE2-bgp-default-ipv4] import-route direct [CE2-bgp-default-ipv4] quit [CE2-bgp-default] quit Verifying the configuration # Execute the display ip routing table command on CE 1 and CE 2 to verify that CE 1 and CE 2...
Page 283
Figure 77 Network diagram Table 19 Interface and IP address assignment Device Interface IP address Device Interface IP address CE 3 GE1/1/1 100.1.1.1/24 CE 4 GE1/1/1 120.1.1.1/24 PE 3 Loop0 1.1.1.9/32 PE 4 Loop0 6.6.6.9/32 GE1/1/1 100.1.1.2/24 GE1/1/1 120.1.1.2/24 POS1/1/1 10.1.1.1/24 POS1/1/1 20.1.1.2/24...
Page 287
[PE3-bgp-default] quit # Configure PE 4 and CE 4 in the same way that PE 3 and CE 3 are configured. (Details not shown.) Configure an MP-IBGP peer relationship between the PEs of the customer carrier to exchange the VPN routes of the end customers: # Configure PE 3.
Page 288
5.5.5.9/32 255 10 4.4.4.9 POS1/1/1 6.6.6.9/32 255 20 4.4.4.9 POS1/1/1 10.1.1.0/24 IS_L1 11.1.1.1 POS1/1/0 11.1.1.0/24 Direct 11.1.1.2 POS1/1/0 11.1.1.0/32 Direct 11.1.1.2 POS1/1/0 11.1.1.2/32 Direct 127.0.0.1 InLoop0 11.1.1.255/32 Direct 11.1.1.2 POS1/1/0 20.1.1.0/24 255 20 4.4.4.9 POS1/1/1 127.0.0.0/8 Direct 127.0.0.1 InLoop0 127.0.0.0/32 Direct 127.0.0.1 InLoop0...
Destinations : 18 Routes : 18 Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/32 Direct 127.0.0.1 InLoop0 1.1.1.9/32 Direct 127.0.0.1 InLoop0 2.2.2.9/32 IS_L1 10.1.1.2 POS1/1/1 5.5.5.9/32 IS_L2 10.1.1.2 POS1/1/1 6.6.6.9/32 IS_L2 10.1.1.2 POS1/1/1 10.1.1.0/24 Direct 10.1.1.1 POS1/1/1 10.1.1.0/32 Direct 10.1.1.1 POS1/1/1 10.1.1.1/32 Direct 127.0.0.1...
Page 290
• PE 1 and PE 2 are the provider carrier's PE routers. They provide VPN services for the customer carrier. • CE 1 and CE 2 are the customer carrier's routers. They are connected to the provider carrier's backbone as CE routers. •...
Page 291
Configuration procedure Configure MPLS L3VPN on the provider carrier backbone. Enable IS-IS as the IGP, enable LDP between PE 1 and PE 2, and establish an MP-IBGP peer relationship between the PEs: # Configure PE 1. <PE1> system-view [PE1] interface loopback 0 [PE1-LoopBack0] ip address 3.3.3.9 32 [PE1-LoopBack0] quit [PE1] mpls lsr-id 3.3.3.9...
Page 294
[CE3-bgp-default-ipv4] peer 100.1.1.2 enable [CE3-bgp-default-ipv4] import-route direct [CE3-bgp-default-ipv4] quit [CE3-bgp-default] quit # Configure PE 3. [PE3] ip vpn-instance vpn1 [PE3-vpn-instance-vpn1] route-distinguisher 100:1 [PE3-vpn-instance-vpn1] vpn-target 1:1 [PE3-vpn-instance-vpn1] quit [PE3] interface gigabitethernet 1/1/1 [PE3-GigabitEthernet1/1/1] ip binding vpn-instance vpn1 [PE3-GigabitEthernet1/1/1] ip address 100.1.1.2 24 [PE3-GigabitEthernet1/1/1] quit [PE3] bgp 100 [PE3-bgp-default] ip vpn-instance vpn1...
Page 295
30.1.1.0/24 Direct 30.1.1.1 POS1/1/1 30.1.1.0/32 Direct 30.1.1.1 POS1/1/1 30.1.1.1/32 Direct 127.0.0.1 InLoop0 30.1.1.255/32 Direct 30.1.1.1 POS1/1/1 127.0.0.0/8 Direct 127.0.0.1 InLoop0 127.0.0.0/32 Direct 127.0.0.1 InLoop0 127.0.0.1/32 Direct 127.0.0.1 InLoop0 127.255.255.255/32 Direct 127.0.0.1 InLoop0 224.0.0.0/4 Direct 0.0.0.0 NULL0 224.0.0.0/24 Direct 0.0.0.0 NULL0 255.255.255.255/32 Direct 127.0.0.1 InLoop0...
Page 296
11.1.1.0/24 Direct 11.1.1.1 POS1/1/1 11.1.1.0/32 Direct 11.1.1.1 POS1/1/1 11.1.1.1/32 Direct 127.0.0.1 InLoop0 11.1.1.255/32 Direct 11.1.1.1 POS1/1/1 127.0.0.0/8 Direct 127.0.0.1 InLoop0 127.0.0.0/32 Direct 127.0.0.1 InLoop0 127.0.0.1/32 Direct 127.0.0.1 InLoop0 127.255.255.255/32 Direct 127.0.0.1 InLoop0 224.0.0.0/4 Direct 0.0.0.0 NULL0 224.0.0.0/24 Direct 0.0.0.0 NULL0 255.255.255.255/32 Direct 127.0.0.1 InLoop0...
127.0.0.1/32 Direct 127.0.0.1 InLoop0 127.255.255.255/32 Direct 127.0.0.1 InLoop0 120.1.1.0/24 255 0 6.6.6.9 POS1/1/1 224.0.0.0/4 Direct 0.0.0.0 NULL0 224.0.0.0/24 Direct 0.0.0.0 NULL0 255.255.255.255/32 Direct 127.0.0.1 InLoop0 Verify that PE 3 and PE 4 can ping each other. (Details not shown.) Verify that CE 3 and CE 4 can ping each other. (Details not shown.) Configuring nested VPN Network requirements The service provider provides nested VPN services for users, as shown in...
Page 298
Table 21 Interface and IP address assignment Device Interface IP address Device Interface IP address CE 1 Loop0 2.2.2.9/32 CE 2 Loop0 5.5.5.9/32 POS1/1/0 10.1.1.2/24 POS1/1/0 21.1.1.2/24 POS1/1/1 11.1.1.1/24 POS1/1/1 20.1.1.1/24 CE 3 GE1/1/1 100.1.1.1/24 CE 4 GE1/1/1 120.1.1.1/24 CE 5 GE1/1/1 110.1.1.1/24 CE 6...
Page 299
[PE1-bgp-default-vpnv4] quit [PE1-bgp-default] quit # Configure PE 2 in the same way that PE 1 is configured. (Details not shown.) # On PE 1 or PE 2, execute the following commands: Execute the display mpls ldp peer command to verify that an LDP session in Operational state has been established between PE 1 and PE 2.
Page 300
[CE1-Pos1/1/0] isis enable 2 [CE1-Pos1/1/0] mpls enable [CE1-Pos1/1/0] mpls ldp enable [CE1-Pos1/1/0] quit An LDP session and IS-IS neighbor relationship can be established between PE 3 and CE 1. # Configure PE 4 and CE 2 in the same way that PE 3 and CE 1 are configured. (Details not shown.) Connect CE 1 and CE 2 to service provider PEs: # Configure PE 1.
Page 302
# Configure PE 4, CE 4 and CE 6 in the same way that PE 3, CE 3, and CE 5 are configured. (Details not shown.) Establish MP-EBGP peer relationship between service provider PEs and their CEs to exchange user VPNv4 routes: # On PE 1, enable nested VPN, and enable VPNv4 route exchange with CE 1.
Page 303
# Configure PE 4 and CE 2 in the same way that PE 3 and CE 1 are configured. (Details not shown.) Verifying the configuration Display the public routing table and VPN routing table on the provider PEs, for example, on PE # Verify that the public routing table contains only routes on the service provider network.
Page 304
# Verify that the VPNv4 routing table on the customer VPN contains internal sub-VPN routes. [CE1] display bgp routing-table vpnv4 BGP local router ID is 2.2.2.9 Status codes: * - valid, > - best, d - dampened, h - history, s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete Total number of routes from all PEs: 4...
Page 305
100.1.1.0/32 Direct 100.1.1.2 GE1/1/1 100.1.1.2/32 Direct 127.0.0.1 InLoop0 100.1.1.255/32 Direct 100.1.1.2 GE1/1/1 120.1.1.0/24 255 0 2.2.2.9 POS1/1/1 127.0.0.0/8 Direct 127.0.0.1 InLoop0 127.0.0.0/32 Direct 127.0.0.1 InLoop0 127.0.0.1/32 Direct 127.0.0.1 InLoop0 127.255.255.255/32 Direct 127.0.0.1 InLoop0 224.0.0.0/4 Direct 0.0.0.0 NULL0 224.0.0.0/24 Direct 0.0.0.0 NULL0 255.255.255.255/32 Direct 127.0.0.1...
224.0.0.0/4 Direct 0.0.0.0 NULL0 224.0.0.0/24 Direct 0.0.0.0 NULL0 255.255.255.255/32 Direct 127.0.0.1 InLoop0 Verify that CE 3 and CE 4 can ping each other. (Details not shown.) Verify that CE 5 and CE 6 can ping each other. (Details not shown.) Verify that CE 3 and CE 6 cannot ping each other.
[PE1-vpn-instance-vpn1] vpn-target 100:1 both [PE1-vpn-instance-vpn1] quit [PE1] ip vpn-instance vpn2 [PE1-vpn-instance-vpn2] route-distinguisher 100:2 [PE1-vpn-instance-vpn2] vpn-target 100:2 both [PE1-vpn-instance-vpn2] quit # Associate VPN instance vpn1 with Serial 1/1/1 (the interface connected to CE 1). [PE1] interface serial 1/1/1 [PE1-Serial1/1/1] ip binding vpn-instance vpn1 [PE1-Serial1/1/1] ip address 1.1.1.1 255.255.255.0 [PE1-Serial1/1/1] quit # Configure a static route for VPN 2 to reach Host A and redistribute the route to BGP.
Page 308
• SPEs advertise routes permitted by routing policies to UPEs, permitting CE 1 and CE 3 in VPN 1 to communicate with each other and forbidding CE 2 and CE 4 in VPN 2 from communicating with each other. Figure 81 Network diagram Loop0 Loop0 GE1/1/2...
Page 309
[UPE1-GigabitEthernet1/1/3] quit # Configure the IGP protocol (OSPF, in this example). [UPE1] ospf [UPE1-ospf-1] area 0 [UPE1-ospf-1-area-0.0.0.0] network 172.1.1.0 0.0.0.255 [UPE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0 [UPE1-ospf-1-area-0.0.0.0] quit [UPE1-ospf-1] quit # Configure VPN instances vpn1 and vpn2, allowing CE 1 and CE 2 to access UPE 1. [UPE1] ip vpn-instance vpn1 [UPE1-vpn-instance-vpn1] route-distinguisher 100:1 [UPE1-vpn-instance-vpn1] vpn-target 100:1 both...
Configuring an OSPF sham link Network requirements As shown in Figure 82, CE 1 and CE 2 belong to VPN 1. Configure an OSPF sham link between PE 1 and PE 2 so traffic between the CEs is forwarded through the MPLS backbone instead of the backdoor link.
Page 316
[PE1-LoopBack0] ip address 1.1.1.9 32 [PE1-LoopBack0] quit [PE1] mpls lsr-id 1.1.1.9 [PE1] mpls ldp [PE1-ldp] quit [PE1] interface serial 1/1/1 [PE1-Serial1/1/1] ip address 10.1.1.1 24 [PE1-Serial1/1/1] mpls enable [PE1-Serial1/1/1] mpls ldp enable [PE1-Serial1/1/1] quit # Configure PE 1 to take PE 2 as an MP-IBGP peer. [PE1] bgp 100 [PE1-bgp-default] peer 2.2.2.9 as-number 100 [PE1-bgp-default] peer 2.2.2.9 connect-interface loopback 0...
Page 317
[PE2-ospf-1] area 0 [PE2-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0 [PE2-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255 [PE2-ospf-1-area-0.0.0.0] quit [PE2-ospf-1] quit Configure PEs to allow CE access: # Configure PE 1. [PE1] ip vpn-instance vpn1 [PE1-vpn-instance-vpn1] route-distinguisher 100:1 [PE1-vpn-instance-vpn1] vpn-target 1:1 [PE1-vpn-instance-vpn1] quit [PE1] interface gigabitethernet 1/1/1 [PE1-GigabitEthernet1/1/1] ip binding vpn-instance vpn1 [PE1-GigabitEthernet1/1/1] ip address 100.1.1.2 24 [PE1-GigabitEthernet1/1/1] quit...
Page 318
[PE2-bgp-default-ipv4-vpn1] import-route direct [PE2-bgp-default-ipv4-vpn1] quit [PE2-bgp-default-vpn1] quit [PE2-bgp-default] quit # Execute the display ip routing-table vpn-instance command on the PEs. Verify that the path to the peer CE is along the OSPF route across the customer networks, instead of the BGP route across the backbone.
Sham link: 3.3.3.3 --> 5.5.5.5 Neighbor ID: 120.1.1.2 State: Full Area: 0.0.0.1 Cost: 1 State: P-2-P Type: Sham Timers: Hello 10, Dead 40, Retransmit 5, Transmit Delay 1 Request list: 0 Retransmit list: 0 Configuring BGP AS number substitution Network requirements As shown in Figure 83, CE 1 and CE 2 belong to VPN 1 and are connected to PE 1 and PE 2,...
Page 320
Configure OSPF on the MPLS backbone to allow the PEs and P device to learn the routes of the loopback interfaces from each other. Configure basic MPLS and MPLS LDP on the MPLS backbone to establish LDP LSPs. Establish MP-IBGP peer relationship between the PEs to advertise VPN IPv4 routes. Configure the VPN instance of VPN 1 on PE 2 to allow CE 2 to access the network.
Page 321
100.1.1.0/24 1.1.1.9 GE1/1/2 127.0.0.0/8 Direct 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 127.0.0.1 InLoop0 127.255.255.255/32 Direct 0 127.0.0.1 InLoop0 200.1.1.0/24 10.2.1.1 GE1/1/1 224.0.0.0/4 Direct 0 0.0.0.0 NULL0 224.0.0.0/24 Direct 0 0.0.0.0 NULL0 255.255.255.255/32 Direct 0 127.0.0.1 InLoop0 # Enable BGP update packet debugging on PE 2.
Page 322
Verifying the configuration # The output shows that among the routes advertised by PE 2 to CE 2, the AS_PATH of 100.1.1.0/24 has changed from 100 600 to 100 100. *Jun 13 16:15:59:456 2012 PE2 BGP/7/DEBUG: -MDC=1; BGP.vpn1: Send UPDATE to peer 10.2.1.1 for following destinations: Origin : Incomplete AS Path...
# After you also configure BGP AS substitution on PE 1, verify that the GigabitEthernet interfaces of CE 1 and CE 2 can ping each other. (Details not shown.) Configuring BGP AS number substitution and SoO attribute Network requirements CE 1, CE 2, and CE 3 belong to VPN 1, and are connected to PE1, PE 2, and PE 3, respectively. CE 1 and CE 2 reside in the same site.
Page 324
Configure OSPF on the MPLS backbone to allow the PEs and P device to learn the routes of the loopback interfaces from each other. Configure basic MPLS and MPLS LDP on the MPLS backbone to establish LDP LSPs. Establish MP-IBGP peer relationship between the PEs to advertise VPN IPv4 routes. Configure the VPN instance of VPN 1 on PE 1 to allow CE 1 to access the network.
Verifying the configuration # PE 2 does not advertise routes received from CE 1 to CE 2 because the same SoO attribute has been configured for the CEs. Display the routing table of CE 2. The output shows that the route 100.1.1.1/32 has been removed.
Page 326
Figure 85 Network diagram Loop0 PE 2 GE1/1/1 GE1/1/2 VPN 1 PE 1 GE1/1/1 VPN 1 MPLS GE1/1/2 GE1/1/1 Loop0 Loop0 backbone GE1/1/3 GE1/1/1 CE 2 CE 1 GE1/1/2 Loop0 GE1/1/1 GE1/1/2 Primary link PE 3 Backup link Loop0 Table 26 Interface and IP address assignment Device Interface IP address...
[PE1-bgp-default-vpn1] address-family ipv4 unicast [PE1-bgp-default-ipv4-vpn1] fast-reroute route-policy frr [PE1-bgp-default-ipv4-vpn1] quit [PE1-bgp-default-vpn1] quit # Specify the preferred value as 100 for routes received from PE 2. This value is greater than the preferred value (0) for routes from PE 3, so PE 1 prefers the routes from PE 2. [PE1-bgp-default] address-family vpnv4 [PE1-bgp-default-vpnv4] peer 2.2.2.2 preferred-value 100 [PE1-bgp-default-vpnv4] quit...
Page 328
Configure MPLS L3VPN FRR on PE 2 to achieve the following purposes: • When the link PE 2—CE 2 operates correctly, traffic from CE 1 to CE 2 goes through the path CE 1—PE 1—PE 2—CE 2. • When BFD detects that the link between PE 2 and CE 2 fails, traffic from CE 1 to CE 2 goes through the path CE 1—PE 1—PE 2—PE 3—CE 2.
[PE2-route-policy] if-match ip address prefix-list abc [PE2-route-policy] apply fast-reroute backup-nexthop 3.3.3.3 [PE2-route-policy] quit # Use echo-mode BFD to detect the primary route connectivity. [PE2] bgp 100 [PE2-bgp-default] primary-path-detect bfd echo # Configure FRR for VPN instance vpn1 to use routing policy frr. [PE2-bgp-default] ip vpn-instance vpn1 [PE2-bgp-default-vpn1] address-family ipv4 unicast [PE2-bgp-default-ipv4-vpn1] fast-reroute route-policy frr...
Page 330
Configure OSPF to ensure connectivity between PEs, and configure MP-IBGP to exchange VPNv4 routing information between PEs. Configure MPLS L3VPN FRR on PE 1 to achieve the following purposes: • When the link PE 1—PE 2 operates correctly, traffic from CE 1 to CE 2 goes through the path CE 1—PE 1—PE 2—CE 2.
Page 331
[PE1-route-policy] apply fast-reroute backup-nexthop 10.1.1.1 [PE1-route-policy] quit # Configure FRR for VPN instance vpn1 to use routing policy frr. [PE1] bgp 100 [PE1-bgp-default] ip vpn-instance vpn1 [PE1-bgp-default-vpn1] address-family ipv4 unicast [PE1-bgp-default-ipv4-vpn1] fast-reroute route-policy frr [PE1-bgp-default-ipv4-vpn1] quit [PE1-bgp-default-vpn1] quit # Specify the preferred value as 200 for BGP VPNv4 routes received from PE 2. This value is greater than the preferred value (0) for IPv4 unicast routes from CE 2, so PE 1 prefers the routes from PE 2.
Configuring IPv6 MPLS L3VPN Overview IPv6 MPLS L3VPN uses BGP to advertise IPv6 VPN routes and uses MPLS to forward IPv6 VPN packets on the service provider backbone. Figure 88 shows a typical IPv6 MPLS L3VPN model. The service provider backbone in the IPv6 MPLS L3VPN model is an IPv4 network.
Based on the inbound interface and destination address of the packet, PE 1 finds a matching entry from the routing table of the VPN instance, labels the packet with both a private network label (inner label) and a public network label (outer label), and forwards the packet out. The MPLS backbone transmits the packet to PE 2 by outer label.
Protocols and standards • RFC 4659, BGP-MPLS IP Virtual Private Network (VPN) Extension for IPv6 VPN • RFC 6565, OSPFv3 as a Provider Edge to Customer Edge (PE-CE) Routing Protocol IPv6 MPLS L3VPN configuration task list Tasks at a glance (Required.) Configuring basic IPv6 MPLS L3VPN (Optional.)
Page 335
Creating a VPN instance A VPN instance is a collection of the VPN membership and routing rules of its associated site. A VPN instance might correspond to more than one VPN. To create and configure a VPN instance: Step Command Remarks Enter system view.
Page 336
Configuring route related attributes for a VPN instance Step Command Remarks Enter system view. system-view • Enter VPN instance view: Configurations made in VPN ip vpn-instance instance view apply to both IPv4 vpn-instance-name VPN and IPv6 VPN. Enter VPN instance view or •...
Configuring routing between a PE and a CE You can configure IPv6 static routing, RIPng, OSPFv3, IPv6 IS-IS, EBGP, or IBGP between a PE and a CE. Configuring IPv6 static routing between a PE and a CE Step Command Remarks Enter system view.
Page 338
Step Command Remarks Perform this configuration on the The maximum number of OSPFv3 Create an OSPFv3 process ospfv3 [ process-id ] processes for a VPN instance is for a VPN instance and enter vpn-instance vpn-instance-name OSPFv3 view. Deleting a VPN instance also deletes all related OSPFv3 processes.
Page 339
Step Command Remarks By default, if BGP runs within an MPLS backbone, and the BGP AS number is not greater than 65535, the first two octets of the external route tag are 0xD000. The last two (Optional.) Configure an octets are the local BGP AS external route tag for route-tag tag-value number.
Page 340
Step Command Remarks Enter system view. system-view Create an IPv6 IS-IS process Perform this configuration on the isis [ process-id ] vpn-instance for a VPN instance and enter PE. On the CE, create a common vpn-instance-name IS-IS view. IPv6 IS-IS process. Configure a network entity network-entity net By default, no NET is configured.
Page 341
Step Command Remarks Enter system view. system-view bgp as-number [ instance Enter BGP instance view. instance-name ] peer { group-name | Configure the PE as an ipv6-address [ prefix-length ] } By default, no BGP peers exist. EBGP peer. as-number as-number Create the BGP IPv6 By default, the BGP IPv6 unicast address family and...
Step Command Remarks peer { group-name | Configure the PE as an ipv6-address [ prefix-length ] } By default, no BGP peers exist. IBGP peer. as-number as-number Create the BGP IPv6 By default, the BGP IPv6 unicast family and enter its address-family ipv6 [ unicast ] unicast family is not created.
Page 343
Step Command Remarks Enter BGP VPNv6 address address-family vpnv6 family view. filter-policy { ipv6-acl-number | Configure filtering of By default, BGP does not filter prefix-list ipv6-prefix-name } advertised routes. advertised routes. export [ protocol process-id ] filter-policy { ipv6-acl-number | Configure filtering of By default, BGP does not filter prefix-list ipv6-prefix-name }...
Step Command Remarks peer { group-name | ipv4-address [ mask-length ] } route-limit 15. Set the maximum number of By default, the number of routes prefix-number [ { alert-only | routes BGP can receive from that BGP can receive from a peer discard | reconnect a peer or peer group.
For more configuration information, see "Configuring basic IPv6 MPLS L3VPN." In the inter-AS IPv6 VPN option A solution, for the same IPv6 VPN, the route targets configured on the PEs must match those configured on the ASBRs in the same AS. This makes sure VPN routes sent by the PEs (or ASBRs) can be received by the ASBRs (or PEs).
Step Command Remarks 11. Enter BGP VPNv6 address address-family vpnv6 family view. 12. Enable BGP to exchange By default, BGP cannot exchange VPNv6 routes with the PE in peer { group-name | ipv4-address VPNv6 routing information with a the same AS and the ASBR [ mask-length ] } enable peer.
Step Command Remarks By default, the device uses its address as the next hop of routes advertised to peers. 11. (Optional.) Configure the PE peer { group-name | ipv4-address to not change the next hop of [ mask-length ] } Configure this command on the routes advertised to the peer.
Step Command Remarks By default, no VPN instance is specified. You must specify multiple VPN instances for the node. The first one is the VPN instance to which the Specify the VPN multirole host belongs, and others apply access-vpn vpn-instance instances for forwarding are the VPN instances to be vpn-instance-name&<1-n>...
Step Command Remarks Associate the loopback By default, the interface is ip binding vpn-instance interface with a VPN associated with no VPN vpn-instance-name instance. instance. By default, no IPv6 address is Configure an IPv6 address For configuration details, see Layer configured for the loopback for the loopback interface.
For more information about the BGP AS number substitution feature and the SoO attribute, see "BGP AS number substitution and SoO attribute." To configure BGP AS number substitution and SoO attribute: Step Command Remarks Enter system view. system-view bgp as-number [ instance Enter BGP instance view.
Page 355
[PE2] interface gigabitethernet 1/1/1 [PE2-GigabitEthernet1/1/1] ip binding vpn-instance vpn1 [PE2-GigabitEthernet1/1/1] ipv6 address 2001:3::2 96 [PE2-GigabitEthernet1/1/1] quit [PE2] interface gigabitethernet 1/1/2 [PE2-GigabitEthernet1/1/2] ip binding vpn-instance vpn2 [PE2-GigabitEthernet1/1/2] ipv6 address 2001:4::2 96 [PE2-GigabitEthernet1/1/2] quit # Configure IP addresses for the CEs according to Figure 90.
Page 356
[PE1-bgp-default-ipv6-vpn1] quit [PE1-bgp-default-vpn1] quit [PE1-bgp-default] ip vpn-instance vpn2 [PE1-bgp-default-vpn2] peer 2001:2::1 as-number 65420 [PE1-bgp-default-vpn2] address-family ipv6 unicast [PE1-bgp-default-ipv6-vpn2] peer 2001:2::1 enable [PE1-bgp-default-ipv6-vpn2] quit [PE1-bgp-default-vpn2] quit [PE1-bgp-default] quit # Configure PE 2 in the same way that PE 1 is configured. (Details not shown.) # Execute the display bgp peer ipv6 vpn-instance command on the PEs to verify that a BGP peer relationship in Established state has been established between a PE and a CE.
Configuring an IPv6 MPLS L3VPN over a GRE tunnel Network requirements CE 1 and CE 2 belong to VPN 1. The PEs support MPLS, while the P router does not support MPLS and provides only IP features. On the backbone, use a GRE tunnel to encapsulate and forward packets for IPv6 MPLS L3VPN. Configure tunnel policies on the PEs, and specify the tunnel type for VPN traffic as GRE.
Page 359
[PE1] mpls lsr-id 1.1.1.9 # Configure PE 2. <PE2> system-view [PE2] mpls lsr-id 2.2.2.9 Configure VPN instances on the PEs to allow CE access, and apply tunnel policies to the VPN instances to use a GRE tunnel for VPN packet forwarding: # Configure PE 1.
Page 360
# Use the ping command on the PEs to verify that the PEs can ping their attached CEs, for example, on PE 1. [PE1] ping ipv6 -vpn-instance vpn1 2001:1::1 Ping6(56 bytes) 2001:1::2 --> 2001:1::1, press CTRL_C to break 56 bytes from 2001:1::1, icmp_seq=0 hlim=64 time=0.000 ms 56 bytes from 2001:1::1, icmp_seq=1 hlim=64 time=1.000 ms 56 bytes from 2001:1::1, icmp_seq=2 hlim=64 time=0.000 ms 56 bytes from 2001:1::1, icmp_seq=3 hlim=64 time=1.000 ms...
Configure a GRE tunnel: # Configure PE 1. [PE1] interface tunnel 0 mode gre [PE1-Tunnel0] source loopback 0 [PE1-Tunnel0] destination 2.2.2.9 [PE1-Tunnel0] ip address 20.1.1.1 24 [PE1-Tunnel0] mpls enable [PE1-Tunnel0] quit # Configure PE 2. [PE2] interface tunnel 0 mode gre [PE2-Tunnel0] source loopback 0 [PE2-Tunnel0] destination 1.1.1.9 [PE2-Tunnel0] ip address 20.1.1.2 24...
Page 362
Table 31 Interface and IP address assignment Device Interface IP address Device Interface IP address CE 1 GE1/1/1 2001:1::1/96 CE 2 GE1/1/1 2001:2::1/96 PE 1 Loop0 1.1.1.9/32 PE 2 Loop0 4.4.4.9/32 GE1/1/1 2001:1::2/96 GE1/1/1 2001:2::2/96 POS1/1/0 172.1.1.2/24 POS1/1/0 162.1.1.2/24 ASBR-PE1 Loop0 2.2.2.9/32 ASBR-PE2...
Page 363
[ASBR-PE2] interface pos 1/1/0 [ASBR-PE2-Pos1/1/0] mpls enable [ASBR-PE2-Pos1/1/0] mpls ldp enable [ASBR-PE2-Pos1/1/0] quit # Configure basic MPLS on PE 2, and enable MPLS LDP for both PE 2 and the interface connected to ASBR-PE 2. <PE2> system-view [PE2] mpls lsr-id 4.4.4.9 [PE2] mpls ldp [PE2-ldp] quit [PE2] interface pos 1/1/0...
Page 364
# On ASBR-PE 1, create a VPN instance, and bind the VPN instance to the interface connected to ASBR-PE 2. ASBR-PE 1 considers ASBR-PE 2 to be its attached CE. [ASBR-PE1] ip vpn-instance vpn1 [ASBR-PE1-vpn-vpn1] route-distinguisher 100:1 [ASBR-PE1-vpn-vpn1] vpn-target 100:1 both [ASBR-PE1-vpn-vpn1] quit [ASBR-PE1] interface pos 1/1/1 [ASBR-PE1-Pos1/1/1] ip binding vpn-instance vpn1...
Page 365
[CE2-bgp-default] quit # Configure PE 2. [PE2] bgp 200 [PE2-bgp-default] ip vpn-instance vpn1 [PE2-bgp-default-vpn1] peer 2001:2::1 as-number 65002 [PE2-bgp-default-vpn1] address-family ipv6 unicast [PE2-bgp-default-ipv6-vpn1] peer 2001:2::1 enable [PE2-bgp-default-ipv6-vpn1] quit [PE2-bgp-default-vpn1] quit [PE2-bgp-default] quit Establish an IBGP peer relationship between each PE and the ASBR-PE in the same AS and an EBGP peer relationship between the ASBR-PEs: # Configure PE 1.
# Configure PE 2. [PE2] bgp 200 [PE2-bgp-default] peer 3.3.3.9 as-number 200 [PE2-bgp-default] peer 3.3.3.9 connect-interface loopback 0 [PE2-bgp-default] address-family vpnv6 [PE2-bgp-default-vpnv6] peer 3.3.3.9 enable [PE2-bgp-default-vpnv6] quit [PE2-bgp-default] quit Verifying the configuration # Verify that the CEs can learn the route to each other and can ping each other. (Details not shown.) Configuring IPv6 MPLS L3VPN inter-AS option B Network requirements Site 1 and Site 2 belong to the same VPN.
Page 367
Device Interface IP address Device Interface IP address ASBR-PE 1 Loop0 3.3.3.9/32 ASBR-PE 2 Loop0 4.4.4.9/32 Ser1/1/0 1.1.1.1/8 Ser1/1/0 9.1.1.1/8 Ser1/1/1 11.0.0.2/8 Ser1/1/1 11.0.0.1/8 Configuration procedure Configure PE 1: # Configure IS-IS on PE 1. <PE1> system-view [PE1] isis 1 [PE1-isis-1] network-entity 10.111.111.111.111.00 [PE1-isis-1] quit # Configure LSR ID, and enable MPLS and LDP.
Page 368
[PE1-bgp-default-vpnv6] quit # Redistribute direct routes to the VPN routing table of vpn1. [PE1-bgp-default] ip vpn-instance vpn1 [PE1-bgp-default-vpn1] address-family ipv6 unicast [PE1-bgp-default-ipv6-vpn1] import-route direct [PE1-bgp-default-ipv6-vpn1] quit [PE1-bgp-default-vpn1] quit [PE1-bgp-default] quit Configure ASBR-PE 1: # Enable IS-IS on ASBR-PE 1. <ASBR-PE1> system-view [ASBR-PE1] isis 1 [ASBR-PE1-isis-1] network-entity 10.222.222.222.222.00 [ASBR-PE1-isis-1] quit...
Page 369
[ASBR-PE1-bgp-default-vpnv6] quit Configure ASBR-PE 2: # Enable IS-IS on ASBR-PE 2. <ASBR-PE2> system-view [ASBR-PE2] isis 1 [ASBR-PE2-isis-1] network-entity 10.222.222.222.222.00 [ASBR-PE2-isis-1] quit # Configure LSR ID, and enable MPLS and LDP. [ASBR-PE2] mpls lsr-id 4.4.4.9 [ASBR-PE2] mpls ldp [ASBR-PE2-ldp] quit # Configure interface Serial 1/1/0, and enable IS-IS, MPLS, and LDP on the interface. [ASBR-PE2] interface serial 1/1/0 [ASBR-PE2-Serial1/1/0] ip address 9.1.1.1 255.0.0.0 [ASBR-PE2-Serial1/1/0] isis enable 1...
Page 370
[PE2-isis-1] quit # Configure the LSR ID, and enable MPLS and LDP. [PE2] mpls lsr-id 5.5.5.9 [PE2] mpls ldp [PE2-ldp] quit # Configure interface Serial 1/1/0, and enable IS-IS, MPLS, and LDP on the interface. [PE2] interface serial 1/1/0 [PE2-Serial1/1/0] ip address 9.1.1.2 255.0.0.0 [PE2-Serial1/1/0] isis enable 1 [PE2-Serial1/1/0] mpls enable [PE2-Serial1/1/0] mpls ldp enable...
56 bytes from 20::1: icmp_seq=0 hlim=64 time=1.208 ms 56 bytes from 20::1: icmp_seq=1 hlim=64 time=0.867 ms 56 bytes from 20::1: icmp_seq=2 hlim=64 time=0.551 ms 56 bytes from 20::1: icmp_seq=3 hlim=64 time=0.566 ms 56 bytes from 20::1: icmp_seq=4 hlim=64 time=0.570 ms --- Ping6 statistics for 20::1 in VPN instance vpn1--- 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.551/0.752/1.208/0.257 ms...
Page 372
Device Interface IP address Device Interface IP address CE 1 GE1/1/1 2001::2/64 CE 1 GE1/1/1 2002::2/64 Configuration procedure Configure CE 1: # Configure an IPv6 address for GigabitEthernet 1/1/1. <CE1> system-view [CE1] interface gigabitethernet 1/1/1 [CE1-GigabitEthernet1/1/1] ipv6 address 2001::2 64 [CE1-GigabitEthernet1/1/1] quit # Establish an EBGP peer relationship with PE 1, and redistribute VPN routes.
Page 373
# Associate interface GigabitEthernet 1/1/1 with VPN instance vpn1, and specify the IPv6 address for the interface. [PE1] interface gigabitethernet 1/1/1 [PE1-GigabitEthernet1/1/1] ip binding vpn-instance vpn1 [PE1-GigabitEthernet1/1/1] ipv6 address 2001::1 64 [PE1-GigabitEthernet1/1/1] quit # Start BGP on PE 1. [PE1] bgp 100 # Enable the capability to advertise labeled routes to and receive labeled routes from IBGP peer 3.3.3.9.
Page 374
[ASBR-PE1-Serial1/1/0] mpls ldp enable [ASBR-PE1-Serial1/1/0] quit # Configure interface Serial 1/1/1, and enable MPLS on it. [ASBR-PE1] interface serial 1/1/1 [ASBR-PE1-Serial1/1/1] ip address 11.0.0.2 255.0.0.0 [ASBR-PE1-Serial1/1/1] mpls enable [ASBR-PE1-Serial1/1/1] quit # Configure interface Loopback 0, and start IS-IS on it. [ASBR-PE1] interface loopback 0 [ASBR-PE1-LoopBack0] ip address 3.3.3.9 32 [ASBR-PE1-LoopBack0] isis enable 1...
Page 375
[ASBR-PE2-isis-1] network-entity 10.333.333.333.333.00 [ASBR-PE2-isis-1] quit # Configure an LSR ID, and enable MPLS and LDP. [ASBR-PE2] mpls lsr-id 4.4.4.9 [ASBR-PE2] mpls ldp [ASBR-PE2-ldp] quit # Configure interface Serial 1/1/0, and enable IS-IS, MPLS, and LDP on the interface. [ASBR-PE2] interface serial 1/1/0 [ASBR-PE2-Serial1/1/0] ip address 9.1.1.1 255.0.0.0 [ASBR-PE2-Serial1/1/0] isis enable 1 [ASBR-PE2-Serial1/1/0] mpls enable...
Page 376
[ASBR-PE2-bgp-default-ipv4] peer 11.0.0.2 route-policy policy1 export # Enable the capability to advertise labeled routes to and receive labeled routes from EBGP peer 11.0.0.2. [ASBR-PE2-bgp-default-ipv4] peer 11.0.0.2 label-route-capability [ASBR-PE2-bgp-default-ipv4] quit [ASBR-PE2-bgp-default] quit Configure PE 2: # Start IS-IS on PE 2. <PE2>...
[PE2-bgp-default-ipv4] peer 4.4.4.9 label-route-capability [PE2-bgp-default-ipv4] quit # Configure the maximum hop count from PE 2 to EBGP peer 2.2.2.9 as 10. [PE2-bgp-default] peer 2.2.2.9 as-number 100 [PE2-bgp-default] peer 2.2.2.9 connect-interface loopback 0 [PE2-bgp-default] peer 2.2.2.9 ebgp-max-hop 10 # Configure peer 2.2.2.9 as a VPNv6 peer. [PE2-bgp-default] address-family vpnv6 [PE2-bgp-default-af-vpnv6] peer 2.2.2.9 enable [PE2-bgp-default-af-vpnv6] quit...
Page 378
• PE 3 and PE 4 are the customer carrier's PE routers. They provide IPv6 MPLS L3VPN services to end customers. • CE 3 and CE 4 are customers of the customer carrier. • The customer carrier and the provider carrier reside in the same AS. The key to the carrier's carrier deployment is to configure exchange of two kinds of routes: •...
Page 382
[PE3-GigabitEthernet1/1/1] ipv6 address 2001:1::2 96 [PE3-GigabitEthernet1/1/1] quit [PE3] bgp 100 [PE3-bgp-default] ip vpn-instance vpn1 [PE3-bgp-default-vpn1] peer 2001:1::1 as-number 65410 [PE3-bgp-default-vpn1] address-family ipv6 unicast [PE3-bgp-default-ipv6-vpn1] peer 2001:1::1 enable [PE3-bgp-default-ipv6-vpn1] quit [PE3-bgp-default-vpn1] quit [PE3-bgp-default] quit # Configure PE 4 and CE 4 in the same way that PE 3 and CE 3 are configured. (Details not shown.) Configure an MP-IBGP peer relationship between the PEs of the customer carrier to exchange the VPN routes of the end customers:...
Page 384
224.0.0.0/4 Direct 0.0.0.0 NULL0 224.0.0.0/24 Direct 0.0.0.0 NULL0 255.255.255.255/32 Direct 127.0.0.1 InLoop0 Display the public network routing table and VPN routing table on the customer carrier PEs, for example, on PE 3: # Verify that the public network routing table contains the internal routes of the customer carrier network.
NextHop : ::FFFF:6.6.6.9 Preference: 255 Interface : POS1/1/1 Cost Destination: FE80::/10 Protocol : Direct NextHop : :: Preference: 0 Interface : InLoop0 Cost Destination: FF00::/8 Protocol : Direct NextHop : :: Preference: 0 Interface : NULL0 Cost Verify that PE 3 and PE 4 can ping each other. (Details not shown.) Verify that CE 3 and CE 4 can ping each other.
Page 386
Configure PE 1: # Create VPN instances vpn1 and vpn2 for VPN 1 and VPN 2, respectively, and configure different RDs and route targets for the VPN instances. <PE1> system-view [PE1] ip vpn-instance vpn1 [PE1-vpn-instance-vpn1] route-distinguisher 100:1 [PE1-vpn-instance-vpn1] vpn-target 100:1 both [PE1-vpn-instance-vpn1] quit [PE1] ip vpn-instance vpn2 [PE1-vpn-instance-vpn2] route-distinguisher 100:2...
Configuring an OSPFv3 sham link Network requirements As shown in Figure 97, CE 1 and CE 2 belong to VPN 1. Configure an OSPFv3 sham link between PE 1 and PE 2 so traffic between the CEs is forwarded through the MPLS backbone instead of the backdoor link.
Page 388
[PE1-LoopBack0] ip address 1.1.1.9 32 [PE1-LoopBack0] quit [PE1] mpls lsr-id 1.1.1.9 [PE1] mpls ldp [PE1-ldp] quit [PE1] interface serial 1/1/1 [PE1-Serial1/1/1] ip address 10.1.1.1 24 [PE1-Serial1/1/1] mpls enable [PE1-Serial1/1/1] mpls ldp enable [PE1-Serial1/1/1] quit # Configure PE 1 to take PE 2 as an MP-IBGP peer. [PE1] bgp 100 [PE1-bgp-default] peer 2.2.2.9 as-number 100 [PE1-bgp-default] peer 2.2.2.9 connect-interface loopback 0...
Page 389
[PE2-ospf-1] area 0 [PE2-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0 [PE2-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255 [PE2-ospf-1-area-0.0.0.0] quit [PE2-ospf-1] quit Configure PEs to allow CE access: # Configure PE 1. [PE1] ip vpn-instance vpn1 [PE1-vpn-instance-vpn1] route-distinguisher 100:1 [PE1-vpn-instance-vpn1] vpn-target 1:1 [PE1-vpn-instance-vpn1] quit [PE1] interface gigabitethernet 1/1/1 [PE1-GigabitEthernet1/1/1] ip binding vpn-instance vpn1 [PE1-GigabitEthernet1/1/1] ipv6 address 100::2 64 [PE1-GigabitEthernet1/1/1] ospfv3 100 area 1...
Page 390
[PE2-bgp-default-vpn1] quit [PE2-bgp-default] quit # Execute the display ipv6 routing-table vpn-instance command on the PEs. Verify that the path to the peer CE is along the OSPFv3 route across the customer networks, instead of the IPv6 BGP route across the backbone. (Details not shown.) Configure a sham link: # Configure PE 1.
Page 392
Configure OSPF on the MPLS backbone to allow the PEs and P device to learn the routes of the loopback interfaces from each other. Configure basic MPLS and MPLS LDP on the MPLS backbone to establish LDP LSPs. Establish an MP-IBGP peer relationship between the PEs to advertise VPN IPv6 routes. Configure the VPN instance of VPN 1 on PE 1 to allow CE 1 to access the network.
Page 394
<PE1> system-view [PE1] bgp 100 [PE1-bgp-default] ip vpn-instance vpn1 [PE1-bgp-default-vpn1] peer 10:1::2 substitute-as [PE1-bgp-default-vpn1] quit [PE1-bgp-default] quit # Configure BGP AS number substitution on PE 2. <PE2> system-view [PE2] bgp 100 [PE2-bgp-default] ip vpn-instance vpn1 [PE2-bgp-default-vpn1] peer 10:2::2 substitute-as [PE2-bgp-default-vpn1] quit [PE2-bgp-default] quit Verifying the configuration # The output shows that among the routes advertised by PE 2 to CE 2, the AS_PATH of 100::/96 has...
Page 396
Figure 99 Network diagram CE 1 Loop0 GE1/1/1 MPLS backbone GE1/1/1 AS 100 Loop0 Loop0 Loop0 GE1/1/3 GE1/1/1 PE 1 GE1/1/2 VPN 1 GE1/1/2 AS 600 GE1/1/3 GE1/1/1 PE 2 GE1/1/3 GE1/1/2 PE 3 Loop0 CE 3 GE1/1/2 GE1/1/1 Loop0 GE1/1/1 CE 2 VPN 1...
Page 397
Configure BGP AS number substitution: # Configure BGP AS number substitution on PE 1, PE 2, and PE 3. For more information about the configuration, see "Configuring BGP AS number substitution." # Display routing information on CE 2. The output shows that CE 2 has learned the route 100::/96 from CE 1.
Configuring MPLS L2VPN MPLS L2VPN provides point-to-point and point-to-multipoint connections. This chapter describes only the MPLS L2VPN technologies that provide point-to-point connections. For information about the MPLS L2VPN technologies that provide point-to-multipoint connections, see "Configuring VPLS." Overview MPLS L2VPN is an implementation of Pseudo Wire Emulation Edge-to-Edge (PWE3). It offers Layer 2 VPN services over an MPLS or IP backbone.
For example, a VPN has 10 sites, and a PE assigns the first label block LB1/0/10 to the VPN. When another 15 sites are added, the PE keeps the first label block and assigns the second label block LB2/10/15 to extend the network. LB1 and LB2 are the initial label values that are randomly selected by the PE.
Remote connection establishment To set up a remote MPLS L2VPN connection: Set up a public tunnel to carry one or more PWs between PEs: The public tunnel can be an LSP, MPLS TE, or GRE tunnel. If multiple public tunnels exist between two PEs, you can configure a tunnel policy to control tunnel selection.
Bind the AC to the PW: Bind the Layer 3 physical interface or Layer 3 subinterface to the PW, so the PE forwards packets between the AC and the PW. Local connection establishment To set up a local MPLS L2VPN connection between two CEs: Set up ACs: Configure the link layer protocol to set up an AC between the PE and each CE.
Page 403
P-tag, the PE adds a null label (the label value is 0) into the packet, and then encapsulates the packet. − If the peer PE requires the ingress to rewrite the P-tag, the PE changes the P-tag to the expected VLAN tag (the tag value might be 0), and then adds a PW label and an outer tag into the packet.
Control word The control word field is between the MPLS label stack and the Layer 2 data. It carries control information for the Layer 2 frame, for example, the sequence number. The control word feature has the following functions: • Avoids fragment disorder.
establish Layer 2 connections with the PEs. For example, CE 2 and PE 2 must perform PPP negotiation to establish a PPP connection. PW redundancy PW redundancy provides redundant links between PEs so that the customer networks can communicate when the path over one PW fails. As shown in Figure 104, PE 1 establishes two PWs (one primary and one backup).
Page 406
Figure 105 Multi-segment PW MPLS or IP backbone PE 3 PE 2 PW 2 PE 1 PE 4 CE 1 CE 2 Multi-segment PWs include intra-domain multi-segment PWs and inter-domain multi-segment PWs. Intra-domain multi-segment PW An intra-domain multi-segment PW has concatenated PWs within an AS. You can create an intra-domain multi-segment PW between two PEs that have no public tunnel to each other.
• Concatenate PW 2 and PW 3 on ASBR 2. Figure 107 Inter-domain multi-segment PW VCCV Virtual Circuit Connectivity Verification (VCCV) is an OAM feature for L2VPN. It verifies the connectivity of PWs on the data plane. VCCV includes the following modes: •...
Tasks at a glance Remarks (Required.) Enabling L2VPN For multi-segment PWs, (Required.) Configuring an AC skip this task. (Required.) Configuring a cross-connect Configuring a Choose a PW configuration • (Optional.) Configuring a PW class method depending on the • (Required.) Choose either of the following tasks to configure a PW: MPLS L2VPN Configuring a static PW implementation.
Ethernet subinterface, both the default PW data encapsulation type and default access mode are VLAN. The PW data encapsulation type and AC access mode determine how the VLAN tag is processed by a PE. Therefore, the PW data encapsulation types and AC access modes on the local PE and the peer PE must match.
Step Command Remarks (Optional.) Enable the By default, the cross-connect undo shutdown cross-connect group. group is enabled. Create a cross-connect and By default, no cross-connects connection connection-name enter cross-connect view. exist. The default MTU is 1500 bytes. The two PEs on an LDP PW must Set an MTU for the PW.
Configuring an LDP PW Before you configure an LDP PW, enable global and interface MPLS LDP on the PE. For information about MPLS LDP configuration, see "Configuring LDP." To configure an LDP PW: Step Command Remarks Enter system view. system-view Enter cross-connect group xconnect-group group-name view.
Page 412
Step Command Remarks (Optional.) Permit the local AS By default, the local AS number to appear in routes peer { group-name | ip-address number is not allowed in from the specified peer or peer [ mask-length ] } allow-as-loop routes from a peer or peer group and specify the [ number ] group.
Step Command Remarks vpn-target vpn-target&<1-8> By default, no route targets are Configure route targets for [ both | export-extcommunity | configured for the cross-connect the cross-connect group. import-extcommunity ] group. (Optional.) Specify a PW By default, no PW class is class for the auto-discovery pw-class class-name specified.
Step Command Remarks By default, no remote CCC connections exist. Use the out-interface keyword to specify the outgoing interface ccc in-label in-label-value out-label only on a point-to-point link. On out-label-value { nexthop nexthop | Create a remote CCC other types of interfaces such as out-interface interface-type connection.
Step Command Remarks Enter auto-discovery auto-discovery bgp cross-connect group view. site site-id [ range range-value ] Enter site view. [ default-offset default-offset-value ] Enter auto-discovery connection remote-site-id cross-connect view. remote-site-id ac interface interface-type By default, no Layer 3 interface Bind the Layer 3 interface to interface-number [ track is bound to the BGP the BGP cross-connect.
Configuring LDP PW redundancy Step Command Remarks Enter system view. system-view Enter cross-connect group xconnect-group group-name view. Enter cross-connect view. connection connection-name (Optional.) Specify the By default, the switchover mode is switchover mode and set the revertive { wtr wtr-time | never } revertive and the switchover wait wait time for the switchover.
use the reset arp command to clear the ARP entries on the CE before the CE can learn new ARP entries. • When a CE is connected to a PE through a PPP link: If the PE's interface connected to the CE has an IP address, the IPCP negotiation is performed. If the interface does not have an IP address, perform one of the following operations: Use the ppp ipcp ignore local-ip command to configure the PE to support IPCP negotiation without an IP address.
[CE1] interface gigabitethernet 1/1/1 [CE1-GigabitEthernet1/1/1] ip address 100.1.1.1 24 [CE1-GigabitEthernet1/1/1] quit Configure CE 2. <CE2> system-view [CE2] interface gigabitethernet 1/1/1 [CE2-GigabitEthernet1/1/1] ip address 100.1.1.2 24 [CE2-GigabitEthernet1/1/1] quit Configure PE: # Enable L2VPN. <PE> system-view [PE] l2vpn enable # Create a cross-connect group named vpn1, create a cross-connect named vpn1 in the group, and bind GigabitEthernet 1/1/1 and GigabitEthernet 1/1/2 to the cross-connect.
Page 420
Figure 109 Network diagram Configuration procedure Configure CE 1. <CE1> system-view [CE1] interface gigabitethernet 1/1/1 [CE1-GigabitEthernet1/1/1] ip address 10.1.1.1 24 [CE1-GigabitEthernet1/1/1] quit Configure CE 2. <CE2> system-view [CE2] interface serial 1/1/0 [CE2-Serial1/1/0] link-protocol ppp [CE2-Serial1/1/0] ip address 10.1.1.2 24 [CE2-Serial1/1/0] quit Configure PE: # Enable L2VPN.
[PE-xcg-vpn1] quit Verifying the configuration # Verify that two AC forwarding entries exist on the PE. [PE] display l2vpn forwarding ac Total number of cross-connections: 1 Total number of ACs: 2 Xconnect-group Name Link ID GE1/1/1 vpn1 Ser1/1/0 vpn1 # Verify that CE 1 and CE 2 can ping each other. (Details not shown.) Configuring a static PW Network requirements Create a static PW between PE 1 and PE 2 over the backbone to allow communication between CE...
Page 422
[CE1-GigabitEthernet1/1/1] quit Configure PE 1: # Configure an LSR ID. <PE1> system-view [PE1] interface loopback 0 [PE1-LoopBack0] ip address 192.2.2.2 32 [PE1-LoopBack0] quit [PE1] mpls lsr-id 192.2.2.2 # Enable L2VPN. [PE1] l2vpn enable # Enable global LDP. [PE1] mpls ldp [PE1-ldp] quit # Configure GigabitEthernet 1/1/2 (the interface connected to the P device), and enable LDP on the interface.
Page 423
# Configure GigabitEthernet 1/1/1 (the interface connected to PE 1), and enable LDP on the interface. [P] interface gigabitethernet 1/1/1 [P-GigabitEthernet1/1/1] ip address 10.1.1.2 24 [P-GigabitEthernet1/1/1] mpls enable [P-GigabitEthernet1/1/1] mpls ldp enable [P-GigabitEthernet1/1/1] quit # Configure GigabitEthernet 1/1/2 (the interface connected to PE 2), and enable LDP on the interface.
# Create a cross-connect group named vpna, create a cross-connect named svc in the group, and bind GigabitEthernet 1/1/1 to the cross-connect. [PE2] xconnect-group vpna [PE2-xcg-vpna] connection svc [PE2-xcg-vpna-svc] ac interface gigabitethernet 1/1/1 # Create a static PW for the cross-connect to bind the AC to the PW. [PE2-xcg-vpna-svc] peer 192.2.2.2 pw-id 3 in-label 200 out-label 100 [PE2-xcg-vpna-svc-192.2.2.2-3] quit [PE2-xcg-vpna-svc] quit...
Page 425
Figure 111 Network diagram Table 40 Interface and IP address assignment Device Interface IP address Device Interface IP address CE 1 GE1/1/1 100.1.1.1/24 Loop0 192.4.4.4/32 PE 1 Loop0 192.2.2.2/32 GE1/1/1 10.1.1.2/24 GE1/1/1 GE1/1/2 10.2.2.2/24 GE1/1/2 10.1.1.1/24 PE 2 Loop0 192.3.3.3/32 CE 2 GE1/1/1 100.1.1.2/24...
Page 426
[PE1-GigabitEthernet1/1/2] mpls ldp enable [PE1-GigabitEthernet1/1/2] quit # Configure OSPF for LDP to create LSPs. [PE1] ospf [PE1-ospf-1] area 0 [PE1-ospf-1-area-0.0.0.0] network 10.1.1.1 0.0.0.255 [PE1-ospf-1-area-0.0.0.0] network 192.2.2.2 0.0.0.0 [PE1-ospf-1-area-0.0.0.0] quit [PE1-ospf-1] quit # Create a cross-connect group named vpna, create a cross-connect named ldp in the group, and bind GigabitEthernet 1/1/1 to the cross-connect.
Page 427
[P-ospf-1-area-0.0.0.0] network 192.4.4.4 0.0.0.0 [P-ospf-1-area-0.0.0.0] quit [P-ospf-1] quit Configure PE 2: # Configure an LSR ID. <PE2> system-view [PE2] interface loopback 0 [PE2-LoopBack0] ip address 192.3.3.3 32 [PE2-LoopBack0] quit [PE2] mpls lsr-id 192.3.3.3 # Enable L2VPN. [PE2] l2vpn enable # Enable global LDP. [PE2] mpls ldp [PE2-ldp] quit # Configure GigabitEthernet 1/1/2 (the interface connected to the P device), and enable LDP on...
Flags: M - main, B - backup, BY - bypass, H - hub link, S - spoke link, N - no split horizon Total number of PWs: 1 1 up, 0 blocked, 0 down, 0 defect, 0 idle, 0 duplicate Xconnect-group Name: vpna Peer PW ID/Rmt Site...
Page 429
Device Interface IP address Device Interface IP address GE1/1/1 10.2.2.1/24 Configuration procedure Configure CE 1. <CE1> system-view [CE1] interface gigabitethernet 1/1/1 [CE1-GigabitEthernet1/1/1] ip address 100.1.1.1 24 [CE1-GigabitEthernet1/1/1] quit Configure PE 1: # Configure an LSR ID. <PE1> system-view [PE1] interface loopback 0 [PE1-LoopBack0] ip address 192.2.2.2 32 [PE1-LoopBack0] quit [PE1] mpls lsr-id 192.2.2.2...
Page 430
[PE1-xcg-vpna-ldp] peer 192.3.3.3 pw-id 3 [PE1-xcg-vpna-ldp-192.3.3.3-3] quit [PE1-xcg-vpna-ldp] quit [PE1-xcg-vpna] quit Configure the P device: # Configure an LSR ID. <P> system-view [P] interface loopback 0 [P-LoopBack0] ip address 192.4.4.4 32 [P-LoopBack0] quit [P] mpls lsr-id 192.4.4.4 # Enable global LDP. [P] mpls ldp [P-ldp] quit # Configure GigabitEthernet 1/1/1 (the interface connected to PE 1), and enable LDP on the...
Page 431
# Configure GigabitEthernet 1/1/1 (the interface connected to the P device), and enable LDP on the interface. [PE2] interface gigabitethernet 1/1/1 [PE2-GigabitEthernet1/1/1] ip address 10.2.2.1 24 [PE2-GigabitEthernet1/1/1] mpls enable [PE2-GigabitEthernet1/1/1] mpls ldp enable [PE2-GigabitEthernet1/1/1] quit # Configure OSPF for LDP to create LSPs. [PE2] ospf [PE2-ospf-1] area 0 [PE2-ospf-1-area-0.0.0.0] network 192.3.3.3 0.0.0.0...
Xconnect-group Name: vpnb Peer PW ID/Rmt Site In/Out Label Proto Flag Link ID State 192.2.2.2 1025/1036 # Verify that CE 1 and CE 2 can ping each other. (Details not shown.) Configuring a remote CCC connection Network requirements Create a remote CCC connection between PE 1 and PE 2 to allow communication between CE 1 and CE 2.
Page 437
# Enable L2VPN. [PE1] l2vpn enable # Configure GigabitEthernet 1/1/2 (the interface connected to the P device), and enable MPLS on the interface. [PE1] interface gigabitethernet 1/1/2 [PE1-GigabitEthernet1/1/2] ip address 10.1.1.1 24 [PE1-GigabitEthernet1/1/2] mpls enable [PE1-GigabitEthernet1/1/2] quit # Configure OSPF. [PE1] ospf [PE1-ospf-1] area 0 [PE1-ospf-1-area-0.0.0.0] network 10.1.1.1 0.0.0.255...
Total number of PWs: 1 1 up, 0 blocked, 0 down, 0 defect, 0 idle, 0 duplicate Xconnect-group Name: ccc Peer PW ID/Rmt Site In/Out Label Proto Flag Link ID State 10.1.1.2 101/201 Static # Verify that a remote CCC connection has been established on PE 2. [PE2] display l2vpn pw Flags: M - main, B - backup, BY - bypass, H - hub link, S - spoke link, N - no split horizon Total number of PWs: 1...
Page 440
Configuration procedure Configure CE 1. <CE1> system-view [CE1] interface gigabitethernet 1/1/1 [CE1-GigabitEthernet1/1/1] ip address 100.1.1.1 24 [CE1-GigabitEthernet1/1/1] quit Configure PE 1: # Configure an LSR ID. <PE1> system-view [PE1] interface loopback 0 [PE1-LoopBack0] ip address 192.2.2.2 32 [PE1-LoopBack0] quit [PE1] mpls lsr-id 192.2.2.2 # Enable L2VPN.
Page 441
# Configure MPLS TE to establish an MPLS TE tunnel between PE 1 and P, and between P and PE 2. For more information, see "Configuring MPLS TE." # Create a cross-connect group named vpn1, create a cross-connect named ldpsvc in the group, and create an LDP PW and a static PW for the cross-connect to form a multi-segment [P] xconnect-group vpn1 [P-xcg-vpn1] connection ldpsvc...
192.2.2.2 1000 1279/1150 192.3.3.3 1000 100/200 Static M # Verify that a PW has been created on PE 1. [PE1] display l2vpn pw Flags: M - main, B - backup, BY - bypass, H - hub link, S - spoke link, N - no split horizon Total number of PWs: 1 1 up, 0 blocked, 0 down, 0 defect, 0 idle, 0 duplicate Xconnect-group Name: vpn1...
Page 443
Figure 116 Network diagram Table 45 Interface and IP address assignment Device Interface IP address Device Interface IP address CE 1 GE1/1/1 100.1.1.1/24 ASBR 1 Loop0 192.2.2.2/32 PE 1 Loop0 192.1.1.1/32 GE1/1/2 23.1.1.2/24 GE1/1/2 23.1.1.1/24 GE1/1/1 26.2.2.2/24 PE 2 Loop0 192.4.4.4/32 ASBR 2 Loop0...
Page 444
[PE1-GigabitEthernet1/1/2] mpls ldp enable [PE1-GigabitEthernet1/1/2] quit # Configure OSPF for LDP to create LSPs. [PE1] ospf [PE1-ospf-1] area 0 [PE1-ospf-1-area-0.0.0.0] network 23.1.1.1 0.0.0.255 [PE1-ospf-1-area-0.0.0.0] network 192.1.1.1 0.0.0.0 [PE1-ospf-1-area-0.0.0.0] quit [PE1-ospf-1] quit # Create a cross-connect group named vpn1, create a cross-connect named ldp in the group, and bind GigabitEthernet 1/1/1 to the cross-connect.
Page 446
[ASBR2-GigabitEthernet1/1/1] ip address 26.2.2.3 24 [ASBR2-GigabitEthernet1/1/1] mpls enable [ASBR2-GigabitEthernet1/1/1] quit # Configure OSPF for LDP to create LSPs. [ASBR2] ospf [ASBR2-ospf-1] area 0 [ASBR2-ospf-1-area-0.0.0.0] network 22.2.2.3 0.0.0.255 [ASBR2-ospf-1-area-0.0.0.0] network 192.3.3.3 0.0.0.0 [ASBR2-ospf-1-area-0.0.0.0] quit [ASBR2-ospf-1] quit # Configure BGP to advertise labeled routes on ASBR 2. [ASBR2] bgp 200 [ASBR2-bgp-default] peer 26.2.2.2 as-number 100 [ASBR2-bgp-default] address-family ipv4 unicast...
Page 447
[PE2-GigabitEthernet1/1/2] ip address 22.2.2.1 24 [PE2-GigabitEthernet1/1/2] mpls enable [PE2-GigabitEthernet1/1/2] mpls ldp enable [PE2-GigabitEthernet1/1/2] quit # Configure OSPF for LDP to create LSPs. [PE2] ospf [PE2-ospf-1] area 0 [PE2-ospf-1-area-0.0.0.0] network 192.4.4.4 0.0.0.0 [PE2-ospf-1-area-0.0.0.0] network 22.2.2.1 0.0.0.255 [PE2-ospf-1-area-0.0.0.0] quit [PE2-ospf-1] quit # Create a cross-connect group named vpn1, create a cross-connect named ldp in the group, and bind GigabitEthernet 1/1/1 to the cross-connect.
Page 448
[ASBR2] display l2vpn pw Flags: M - main, B - backup, BY - bypass, H - hub link, S - spoke link, N - no split horizon Total number of PWs: 2 2 up, 0 blocked, 0 down, 0 defect, 0 idle, 0 duplicate Xconnect-group Name: vpn1 Peer PW ID/Rmt Site...
Configuring VPLS Overview Virtual Private LAN Service (VPLS) delivers a point-to-multipoint L2VPN service over an MPLS or IP backbone. The provider backbone emulates a switch to connect all geographically dispersed sites of each customer network. The backbone is transparent to the customer sites. The sites can communicate with each other as if they were on the same LAN.
to create a single Layer 2 VPN, which is referred to as a VPLS instance. Sites in different VPLS instances cannot communicate with each other at Layer 2. • VSI—A virtual switch instance provides Layer 2 switching services for a VPLS instance on a PE. A VSI acts as a virtual switch that has all the functions of a conventional Ethernet switch, including source MAC address learning, MAC address aging, and flooding.
Page 451
Figure 118 Source MAC address learning on a PE The MAC address table uses an aging timer for each dynamic MAC address entry. If no packet is received from a MAC address before the aging timer expires, VPLS deletes the MAC address. When an AC or a PW goes down, the PE deletes MAC addresses on the AC or PW.
PW full mesh and split horizon A Layer 2 network requires a loop prevention protocol such as STP to avoid loops. However, a loop prevention protocol on PEs brings management and maintenance difficulties. Therefore, VPLS uses the following methods to prevent loops: •...
Page 453
Figure 120 H-VPLS using Ethernet access As shown in Figure 120, the edge domain is an Ethernet network. The UPE and NPE 1 establish a point-to-point Ethernet QinQ connection in between. After the UPE receives a packet from a CE, it adds an outer VLAN tag into the packet and forwards the packet to NPE 1.
• A primary and backup U-PW switchover is triggered by a command. Hub-spoke networking The hub-spoke network model has one hub site and multiple spoke sites. The spoke sites cannot directly communicate with each other. Traffic between spoke sites must travel through the hub site, so the hub site can implement centralized traffic management.
• Configure VPLS on PEs. For example, configure a VSI, establish a PW, and associate an AC and a VSI. This chapter describes only VPLS configurations on a PE. For information about other configurations, see relevant configuration guides. To configure VPLS on a PE, perform the following tasks: Tasks at a glance Remarks (Required.)
NOTE: When VLANs are globally unique, packets with the same VLAN ID are forwarded by the same VSI regardless of the receiving interfaces. If VLANs are unique on a per interface basis, packets with the same VLAN ID from different interfaces can be forwarded by different VSIs. Configuring a Layer 3 interface To create a Layer 2 link between a PE and a CE, configure the Layer 3 interface that connects the PE to the CE.
Step Command Remarks (Optional.) Specify the PW By default, the PW data pw-type { ethernet | vlan } data encapsulation type. encapsulation type is VLAN. Configuring a static PW Step Command Remarks Enter system view. system-view Enter VSI view. vsi vsi-name [ hub-spoke ] Specify static signaling By default, no PW signaling protocol is for PWs, and enter VSI...
Step Command Remarks By default, no LDP PWs exist. If both the default PW ID in the default-pw-id command and a PW ID in the peer command are configured, the PW ID in the peer command is used. If only the default PW ID is configured, the default PW ID is used.
Page 459
Step Command Remarks (Optional.) Permit the local AS number to appear in By default, the local AS peer { group-name | ip-address routes from the specified number is not allowed in [ mask-length ] } allow-as-loop peer or peer group and routes from a peer or peer [ number ] specify the appearance...
Step Command Remarks (Optional.) Specify a PW By default, no PW class is class for the auto-discovery pw-class class-name specified. VSI. (Optional.) Specify a tunnel By default, no tunnel policy is policy for the auto-discovery tunnel-policy tunnel-policy-name specified. VSI. Use BGP to create a PW to an automatically discovered By default, no signaling protocol is remote PE and enter...
Page 461
Step Command Remarks (Optional.) Configure the router as an RR and specify a peer { group-name | ip-address By default, no RR or client is peer or peer group as its [ mask-length ] } reflect-client configured. client. 10. (Optional.) Enable L2VPN By default, L2VPN information information reflection reflect between-clients...
Step Command Remarks Use LDP to create a PW to an automatically discovered By default, no signaling protocol is remote PE and enter signaling-protocol ldp specified. auto-discovery VSI LDP signaling view. Configure a VPLS ID for the By default, no VPLS ID is vpls-id vpls-id VSI.
• Perform a manual PW switchover. Configuring static PW redundancy Step Command Remarks Enter system view. system-view Enter VSI view. vsi vsi-name [ hub-spoke ] Specify static signaling for By default, no PW signaling PWs, and enter VSI static pwsignaling static protocol is specified for the VSI.
VPLS configuration examples Static PW configuration example Network requirements CEs are connected to the PEs through Layer 3 Ethernet interfaces (GigabitEthernet 1/1/1). Configure a VSI on each PE, and establish static PWs between the PEs to interconnect the CEs. Figure 123 Network diagram Configuration procedure This task includes the following configurations: •...
Page 467
[PE1-GigabitEthernet1/1/2] quit # Configure GigabitEthernet 1/1/3 (the interface connected to PE 3), and enable LDP on the interface. [PE1] interface gigabitethernet 1/1/3 [PE1-GigabitEthernet1/1/3] ip address 30.1.1.1 24 [PE1-GigabitEthernet1/1/3] mpls enable [PE1-GigabitEthernet1/1/3] mpls ldp enable [PE1-GigabitEthernet1/1/3] quit # Configure OSPF for LDP to create LSPs. [PE1] ospf [PE1-ospf-1] area 0 [PE1-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255...
Page 468
# Configure GigabitEthernet 1/1/3 (the interface connected to PE 3), and enable LDP on the interface. [PE2] interface gigabitethernet 1/1/3 [PE2-GigabitEthernet1/1/3] ip address 40.1.1.2 24 [PE2-GigabitEthernet1/1/3] mpls enable [PE2-GigabitEthernet1/1/3] mpls ldp enable [PE2-GigabitEthernet1/1/3] quit # Configure OSPF for LDP to create LSPs. [PE2] ospf [PE2-ospf-1] area 0 [PE2-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255...
Page 469
# Configure GigabitEthernet 1/1/3 (the interface connected to PE 2), and enable LDP on the interface. [PE3] interface gigabitethernet 1/1/3 [PE3-GigabitEthernet1/1/3] ip address 40.1.1.3 24 [PE3-GigabitEthernet1/1/3] mpls enable [PE3-GigabitEthernet1/1/3] mpls ldp enable [PE3-GigabitEthernet1/1/3] quit # Configure OSPF for LDP to create LSPs. [PE3] ospf [PE3-ospf-1] area 0 [PE3-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255...
VCCV CC VCCV BFD Tunnel Group ID : 0x260000002 Tunnel NHLFE IDs : 1028 LDP PW configuration example Network requirements CEs are connected to the PEs through Layer 3 Ethernet interfaces (GigabitEthernet 1/1/1). Configure a VSI on each PE, and establish LDP PWs between the PEs to interconnect the CEs. Figure 124 Network diagram Configuration procedure Configure an IGP and public tunnels on each PE.
[PE3-vsi-aaa-ldp] peer 2.2.2.9 pw-id 500 [PE3-vsi-aaa-ldp-2.2.2.9-500] quit [PE3-vsi-aaa-ldp] quit [PE3-vsi-aaa] quit # Bind Layer 3 Ethernet interface GigabitEthernet 1/1/1 to VSI aaa. [PE3] interface gigabitethernet 1/1/1 [PE3-GigabitEthernet1/1/1] xconnect vsi aaa [PE2-GigabitEthernet1/1/1] quit Verifying the configuration # Verify that two LDP PWs in up state have been established on PE 1. [PE1] display l2vpn pw verbose VSI Name: aaa Peer: 2.2.2.9...
Page 473
Figure 125 Network diagram Configuration procedure Configure an IGP and public tunnels on each PE. (Details not shown.) Configure PE 1: # Configure basic MPLS. <PE1> system-view [PE1] interface loopback 0 [PE1-LoopBack0] ip address 1.1.1.9 32 [PE1-LoopBack0] quit [PE1] mpls lsr-id 1.1.1.9 [PE1] mpls ldp [PE1-ldp] quit # Establish IBGP connections to PE 2 and PE 3, and use BGP to advertise VPLS label block...
Signaling Protocol : BGP Link ID : 10 PW State : Up In Label : 1296 Out Label: 1025 : 1500 PW Attributes : Main VCCV CC VCCV BFD Tunnel Group ID : 0x800000060000000 Tunnel NHLFE IDs : 1026 # Display VPLS label block information received from PE 2 and PE 3 on PE 1. [PE1] display l2vpn bgp verbose VSI Name: aaa Remote Site ID...
Page 477
Figure 126 Network diagram Configuration procedure Configure an IGP and public tunnels on each PE. (Details not shown.) Configure PE 1: # Configure basic MPLS. <PE1> system-view [PE1] interface loopback 0 [PE1-LoopBack0] ip address 1.1.1.9 32 [PE1-LoopBack0] quit [PE1] mpls lsr-id 1.1.1.9 [PE1] mpls ldp [PE1-ldp] quit # Establish IBGP connections to PE 1 and PE 2, and use BGP to advertise VPLS PE...
Page 479
<PE3> system-view [PE3] interface loopback 0 [PE3-LoopBack0] ip address 3.3.3.9 32 [PE3-LoopBack0] quit [PE3] mpls lsr-id 3.3.3.9 [PE3] mpls ldp [PE3-ldp] quit # Establish IBGP connections to PE 1 and PE 2, and use BGP to advertise VPLS PE information. [PE3] bgp 100 [PE3-bgp-default] peer 1.1.1.9 as-number 100 [PE3-bgp-default] peer 1.1.1.9 connect-interface loopback 0...
Page 480
Tunnel Group ID : 0x800000060000000 Tunnel NHLFE IDs : 1029 Peer: 3.3.3.9 VPLS ID: 100:100 Signaling Protocol : LDP Link ID PW State : Up In Label : 1554 Out Label: 1416 : 1500 PW Attributes : Main VCCV CC VCCV BFD Tunnel Group ID : 0x800000160000001...
H-VPLS using MPLS access configuration example Network requirements Configure an H-VPLS network using MPLS access to avoid full-mesh PW configuration. The H-VPLS uses LDP as the PW signaling protocol. Figure 127 Network diagram Configuration procedure Configure an IGP and public tunnels on each PE. (Details not shown.) Configure UPE: # Configure basic MPLS.
Page 482
# Configure basic MPLS. <NPE1> system-view [NPE1] interface loopback 0 [NPE1-LoopBack0] ip address 2.2.2.9 32 [NPE1-LoopBack0] quit [NPE1] mpls lsr-id 2.2.2.9 [NPE1] mpls ldp [NPE1–ldp] quit # Enable L2VPN. [NPE1] l2vpn enable # Configure VSI aaa that uses LDP as the PW signaling protocol, establish a U-PW to the UPE, and establish N-PWs to NPE 2 and NPE 3.
Page 483
# Configure basic MPLS. <NPE3> system-view [NPE3] interface loopback 0 [NPE3-LoopBack0] ip address 4.4.4.9 32 [NPE3-LoopBack0] quit [NPE3] mpls lsr-id 4.4.4.9 [NPE3] mpls ldp [NPE3–ldp] quit # Enable L2VPN. [NPE3] l2vpn enable # Configure VSI aaa that uses LDP as the PW signaling protocol, and establish N-PWs to NPE 1 and NPE 2.
Page 484
Tunnel Group ID : 0x460000000 Tunnel NHLFE IDs : 1030 Peer: 3.3.3.9 PW ID: 500 Signaling Protocol : LDP Link ID PW State : Up In Label : 1276 Out Label: 1275 : 1500 PW Attributes : Main VCCV CC VCCV BFD Tunnel Group ID : 0x560000001...
Link ID PW State : Up In Label : 1279 Out Label: 1278 : 1500 PW Attributes : Main VCCV CC VCCV BFD Tunnel Group ID : 0x660000000 Tunnel NHLFE IDs : 1031 Peer: 3.3.3.9 PW ID: 500 Signaling Protocol : LDP Link ID PW State : Up...
Page 486
Configure UPE: # Configure basic MPLS. <UPE> system-view [UPE] interface loopback 0 [UPE-LoopBack0] ip address 1.1.1.1 32 [UPE-LoopBack0] quit [UPE] mpls lsr-id 1.1.1.1 [UPE] mpls ldp [UPE-ldp] quit # Enable L2VPN. [UPE] l2vpn enable # Configure VSI aaa that uses LDP as the PW signaling protocol, and establish the primary PW to NPE 1 and the backup PW to NPE 2.
Page 488
# Bind Layer 3 Ethernet interface GigabitEthernet 1/1/1 to VSI aaa. [NPE3] interface gigabitethernet 1/1/1 [NPE3-GigabitEthernet1/1/1] xconnect vsi aaa [NPE3-GigabitEthernet1/1/1] quit Verifying the configuration # Verify that PWs in up state have been established on each PE. [UPE] display l2vpn pw verbose VSI Name: aaa Peer: 2.2.2.2 PW ID: 500...
Page 489
VCCV BFD Tunnel Group ID : 0x160000005 Tunnel NHLFE IDs : 1027 Peer: 4.4.4.4 PW ID: 500 Signaling Protocol : LDP Link ID : 10 PW State : Up In Label : 1278 Out Label: 1279 : 1500 PW Attributes : Main VCCV CC VCCV BFD...
Page 490
Signaling Protocol : LDP Link ID PW State : Up In Label : 1279 Out Label: 1278 : 1500 PW Attributes : Main VCCV CC VCCV BFD Tunnel Group ID : 0x60000000 Tunnel NHLFE IDs : 1026 Peer: 3.3.3.3 PW ID: 500 Signaling Protocol : LDP Link ID...
Configuring L2VPN access to L3VPN or IP backbone Both MPLS L2VPN and VPLS support the L2VPN access to L3VPN or IP backbone feature. MPLS L2VPN provides point-to-point connections, and VPLS provides point-to-multipoint connections. Unless otherwise specified, the term "MPLS L2VPN" in this document refers to both MPLS L2VPN and VPLS.
Figure 129 Network diagram In the conventional networking mode, two devices are required to connect the MPLS L2VPN and the MPLS L3VPN or IP backbone (PE 2 and PE 3 in this example). One (PE 2) is required for terminating the MPLS L2VPN, and the other (PE 3) is required for accessing the MPLS L3VPN or IP backbone.
Figure 130 Network diagram Packet processing in PE-agg Input interface Output interface VE-L2VPN VE-L3VPN MPLS L2VPN MPLS L3VPN/ access network IP backbone PE 1 PE 4 PE-agg VPN 1 VPN 1 Site 1 Site 2 CE 1 CE 2 The PE-agg connects the MPLS L2VPN and the backbone through the L2VE interface and the L3VE interface.
• Configure MPLS L3VPN or IP routes. For more information about MPLS L3VPN configuration, see "Configuring MPLS L3VPN." Configuring an L2VE interface Step Command Remarks Enter system view. system-view By default, no L2VE interfaces exist. Create an L2VE interface ve-l2vpn interface and enter its You can create a maximum of 8192 interface-number...
Displaying and maintaining L2VPN access to L3VPN or IP backbone Execute display commands in any view and reset commands in user view. Task Command Display information about L2VE display interface [ ve-l2vpn interface-number | ve-l3vpn interface-number ] [ brief [ description | down ] ] interfaces or L3VE interfaces.
Page 496
Figure 131 Network diagram Table 46 Interface and IP address assignment Device Interface IP address Device Interface IP address CE 1 Ser1/1/0 100.1.1.1/24 PE-agg Loop0 3.3.3.9/32 PE 1 Loop0 1.1.1.9/32 POS1/1/0 10.2.2.2/24 POS1/1/0 10.2.1.1/24 POS1/1/1 10.3.3.1/24 Loop0 2.2.2.9/32 VE-L3VPN1 100.1.1.2/24 POS1/1/0 10.2.1.2/24 PE 2...
Page 498
c. Enable L2VPN on PE 1 and PE-agg: # Configure PE 1. [PE1] l2vpn enable # Configure PE-agg. [PEagg] l2vpn enable d. Configure the AC interfaces of PE 1 and PE-agg, create PWs that support interworking, and bind the interface to the PWs: # On Serial 1/1/0 of PE 1, configure PPP to support IPCP negotiation without IP address.
Page 499
[PEagg-LoopBack0] quit # Configure PE 2. [PE2] isis 1 [PE2-isis-1] network-entity 10.0000.0000.0002.00 [PE2-isis-1] quit [PE2] interface pos 1/1/0 [PE2-Pos1/1/0] isis enable 1 [PE2-Pos1/1/0] quit [PE2] interface loopback 0 [PE2-LoopBack0] isis enable 1 [PE2-LoopBack0] quit b. Configure basic MPLS and MPLS LDP on PE-agg and PE 2: # Configure PE-agg.
Page 500
<CE1> system-view [CE1] bgp 65010 [CE1-bgp] peer 100.1.1.2 as-number 100 [CE1-bgp] address-family ipv4 [CE1-bgp-ipv4] peer 100.1.1.2 enable [CE1-bgp-ipv4] import-route direct [CE1-bgp-ipv4] quit [CE1-bgp] quit # Configure PE-agg and specify CE 1 as the peer. [PEagg] bgp 100 [PEagg-bgp] ip vpn-instance VPN1 [PEagg-bgp-VPN1] peer 100.1.1.1 as-number 65010 [PEagg-bgp-VPN1] address-family ipv4 [PEagg-bgp-ipv4-VPN1] peer 100.1.1.1 enable...
[PE2-bgp] peer 3.3.3.9 connect-interface loopback 0 [PE2-bgp] address-family vpnv4 [PE2-bgp-vpnv4] peer 3.3.3.9 enable [PE2-bgp-vpnv4] quit [PE2-bgp] quit The default MTU value varies by interface type. To avoid packet fragmentation, set the MTU value for each POS interface on each device to 1500 bytes. The following shows the MTU configuration on PE 1.
Page 502
Table 47 Interface and IP address assignment Device Interface IP address Device Interface IP address CE 1 GE1/1/1 100.1.1.1/24 PE-agg Loop0 3.3.3.9/32 PE 1 Loop0 1.1.1.9/32 POS1/1/0 10.2.2.2/24 POS1/1/0 10.2.1.1/24 POS1/1/1 10.3.3.1/24 Loop0 2.2.2.9/32 VE-L3VPN1 100.1.1.2/24 POS1/1/0 10.2.1.2/24 PE 2 POS1/1/0 10.3.3.2/24 POS1/1/1...
Page 503
[PEagg-ospf-1-area-0.0.0.0] quit [PEagg-ospf-1] quit b. Configure basic MPLS and MPLS LDP on PE 1, P, and PE-agg: # Configure PE 1. [PE1] mpls lsr-id 1.1.1.9 [PE1] mpls ldp [PE1-ldp] lsp-trigger all [PE1-ldp] quit [PE1] interface pos 1/1/0 [PE1-Pos1/1/0] mpls enable [PE1-Pos1/1/0] mpls ldp enable [PE1-Pos1/1/0] quit # Configure the P device.
Page 504
[PE1-vsi-vpna] quit # On PE-agg, create VSI vpna, and specify the PW signaling protocol for the VSI as LDP. [PEagg] vsi vpna [PEagg-vsi-vpna] pwsignaling ldp # On PE-agg, create an LDP PW: specify the peer PE address as 1.1.1.9, and set the PW ID to 500.
Page 505
The default MTU value varies by interface type. To avoid packet fragmentation, set the MTU value for each POS interface on each device to 1500 bytes. The following shows the MTU configuration on PE 1. [PE1] int pos 1/1/0 [PE1-Pos1/1/0] mtu 1500 [PE1-Pos1/1/0] shutdown [PE1-Pos1/1/0] undo shutdown Verifying the configuration...
Configuring MPLS OAM Overview MPLS Operation, Administration, and Maintenance (OAM) provides fault management tools for the following purposes: • MPLS data plane connectivity verification. • Data plane and control plane consistency verification. • Fault locating. These fault management tools include the following types: •...
• Static mode—You manually specify the local and remote discriminators through command lines to establish the BFD session. • Dynamic mode—The system automatically runs MPLS ping to negotiate the discriminators to establish the BFD session. In static mode, the egress node returns a BFD control packet to the ingress node through the reverse tunnel.
To configure BFD for LSPs: Step Command Remarks Enter system view. system-view By default, BFD for MPLS is Enable BFD for MPLS. mpls bfd enable disabled. By default, the device sends BFD packets carrying the Router Alert option to detect an LSP. Execute this command on the (Optional.) Remove the local device if the peer device...
Configuring MPLS tracert for MPLS TE tunnels Perform the following task in any view: Task Command tracert mpls [ -a source-ip | -exp exp-value | -h ttl-value | -r Use MPLS tracert to trace an MPLS reply-mode | -rtos tos-value | -t time-out | -v | fec-check ] * te TE tunnel.
Step Command Remarks Configure BFD to verify mpls bfd [ discriminator local By default, BFD is not configured MPLS TE tunnel local-id remote remote-id ] to verify MPLS TE tunnel connectivity. [ template template-name ] connectivity. Configuring MPLS OAM for a PW Virtual Circuit Connectivity Verification (VCCV) is an L2VPN PW OAM feature to verify PW connectivity in data plane.
Page 512
Create the PW, and use the PW class created in the previous step for the PW. If both PEs of the PW have configured BFD and use the same BFD packet encapsulation type, the PEs use the specified encapsulation type to verify PW connectivity. Otherwise, the PEs do not use BFD to verify PW connectivity.
Page 513
Step Command Remarks By default, no local and remote discriminators are configured. 12. (Optional.) Set the local and Make sure the local discriminator remote discriminators for bfd discriminator local local-id and remote discriminator the BFD session used to remote remote-id configured on the local PE are the verify the connectivity of the same as the remote discriminator...
Page 514
Step Command Remarks By default, no local and remote discriminators are set. 12. (Optional.) Set the local and Make sure the local discriminator remote discriminators for bfd discriminator local local-id and remote discriminator the BFD session used to remote remote-id configured on the local PE are the verify the connectivity of the same as the remote discriminator...
Step Command Remarks By default, no local and remote discriminators are set. 12. (Optional.) Set the local and Make sure the local discriminator remote discriminators for bfd discriminator local local-id and remote discriminator the BFD session used to remote remote-id configured on the local PE are the verify the connectivity of the same as the remote discriminator...
[RouterA] mpls bfd 3.3.3.9 32 # Configure Router C. [RouterC] mpls bfd enable [RouterC] mpls bfd 1.1.1.9 32 Verifying the configuration # Display BFD information for LSPs on Router A and Router C, for example, on Router A. [RouterA] display mpls bfd Total number of sessions: 2, 2 up, 0 down, 0 init FEC Type: LSP FEC Info:...
Configuring MCE This chapter describes MCE configuration. MPLS L3VPN overview MPLS L3VPN is a L3VPN technology used to interconnect geographically dispersed VPN sites. MPLS L3VPN uses BGP to advertise VPN routes and uses MPLS to forward VPN packets over a service provider backbone.
Page 519
• The classification of a site depends on the topology relationship of the devices, rather than the geographical positions. However, the devices at a site are, in most cases, adjacent to each other geographically. • The devices at a site can belong to multiple VPNs, which means that a site can belong to multiple VPNs.
• When the Type field is 2, the Administrator subfield occupies four bytes, the Assigned number subfield occupies two bytes, and the RD format is 32-bit AS number:16-bit user-defined number, where the minimum value of the AS number is 65536. For example, 65536:1. To guarantee global uniqueness for a VPN-IPv4 address, do not set the Administrator subfield to any private AS number or private IP address.
Figure 136 Network diagram for the MCE feature You can configure static routes, RIP, OSPF, IS-IS, EBGP, or IBGP between an MCE and a VPN site and between an MCE and a PE. NOTE: To implement dynamic IP assignment for DHCP clients in private networks, you can configure DHCP server or DHCP relay agent on the MCE.
Creating a VPN instance A VPN instance is a collection of the VPN membership and routing rules of its associated site. A VPN instance might correspond to more than one VPN. To create and configure a VPN instance: Step Command Remarks Enter system view.
Step Command Remarks • Enter VPN instance view: Configurations made in VPN ip vpn-instance instance view apply to both IPv4 vpn-instance-name VPN and IPv6 VPN. Enter VPN instance • Enter IPv4 VPN view: IPv4 VPN prefers the view or IPv4 VPN view a.
Before you configure routing on an MCE, configure VPN instances, and bind the VPN instances to the interfaces connected to the VPN sites and the PE. Configuring routing between an MCE and a VPN site You can configure static routing, RIP, OSPF, IS-IS, EBGP or IBGP between an MCE and a VPN site. Configuring static routing between an MCE and a VPN site An MCE can reach a VPN site through a static route.
Page 525
Binding OSPF processes to VPN instances can isolate routes of different VPNs. For more information about OSPF, see Layer 3—IP Routing Configuration Guide. To configure OSPF between an MCE and a VPN site: Step Command Remarks Enter system view. system-view Perform this configuration on the MCE.
Page 526
Step Command Remarks By default, IS-IS does not import-route protocol redistribute routes from any other [ process-id | all-processes | routing protocol. Redistribute remote site allow-ibgp ] [ allow-direct | cost If you do not specify the route routes advertised by the PE cost-value | cost-type { external | level in the command, the into IS-IS.
Page 527
Step Command Remarks Enter system view. system-view bgp as-number [ instance Enter BGP instance view. By default, BGP is not enabled. instance-name ] peer { group-name | Configure the MCE as an By default, no BGP peers or ipv4-address [ mask-length ] } EBGP peer.
Step Command Remarks import-route protocol Redistribute remote site [ process-id | all-processes ] By default, no routes are routes advertised by the [ allow-direct | med med-value redistributed into BGP. PE into BGP. | route-policy route-policy-name ] * Configure a VPN site: Step Command Remarks...
Page 529
Step Command Remarks (Optional.) Set the ip route-static default-preference The default default preference for default-preference preference is 60. static routes. Configuring RIP between an MCE and a PE Step Command Remarks Enter system view. system-view Create a RIP process for rip [ process-id ] vpn-instance a VPN instance and enter vpn-instance-name...
Page 530
Step Command Remarks Create an IS-IS process for a VPN isis [ process-id ] vpn-instance instance and enter vpn-instance-name IS-IS view. Configure a network network-entity net By default, no NET is configured. entity title. Create the IS-IS IPv4 By default, the IS-IS IPv4 unicast unicast address family address-family ipv4 [ unicast ] address family is not created.
Step Command Remarks Enter BGP-VPN instance ip vpn-instance vpn-instance-name view. peer { group-name | ipv4-address Configure the PE as an IBGP By default, no BGP peers or [ mask-length ] } as-number peer. peer groups exist. as-number Enter BGP-VPN IPv4 unicast address-family ipv4 [ unicast ] address family view.
Figure 137 Network diagram VPN 2 Site 1 PE 2 PE 1 GE1/1/3.1 20.1.1.1/24 GE1/1/1.1 20.1.1.2/24 GE1/1/1.2 PE 3 30.1.1.2/24 GE1/1/2 GE1/1/3.2 VPN 1 10.214.10.2/24 30.1.1.1/24 192.168.0.0/24 GE1/1/1 GE1/1/1 VPN 1 10.214.10.3/24 192.168.0.1/24 GE1/1/2 VR 1 Site 2 10.214.20.3/24 GE1/1/2 10.214.20.2/24 VR 2 GE1/1/1...
Page 533
[MCE-GigabitEthernet1/1/1] ip address 10.214.10.3 24 [MCE-GigabitEthernet1/1/1] quit # Bind interface GigabitEthernet 1/1/2 to VPN instance vpn2, and configure an IP address for the interface. [MCE] interface gigabitethernet 1/1/2 [MCE-GigabitEthernet1/1/2] ip binding vpn-instance vpn2 [MCE-GigabitEthernet1/1/2] ip address 10.214.20.3 24 [MCE-GigabitEthernet1/1/2] quit # On PE 1, configure VPN instances vpn1 and vpn2, and specify an RD and route targets for each VPN instance.
Page 534
Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/32 Direct 127.0.0.1 InLoop0 10.214.10.0/24 Direct 10.214.10.3 GE1/1/1 10.214.10.0/32 Direct 10.214.10.3 GE1/1/1 10.214.10.3/32 Direct 127.0.0.1 InLoop0 10.214.10.255/32 Direct 10.214.10.3 GE1/1/1 127.0.0.0/8 Direct 127.0.0.1 InLoop0 127.0.0.0/32 Direct 127.0.0.1 InLoop0 127.0.0.1/32 Direct 127.0.0.1 InLoop0 127.255.255.255/32 Direct 127.0.0.1 InLoop0 192.168.0.0/24...
Page 535
# Configure the subinterface to terminate VLAN 20. [MCE-GigabitEthernet1/1/3.2] vlan-type dot1q vid 20 # Configure an IP address for the subinterface. [MCE-GigabitEthernet1/1/3.2] ip address 30.1.1.1 24 [MCE-GigabitEthernet1/1/3.2] quit # On PE 1, bind subinterface GigabitEthernet 1/1/1.1 to the VPN instance vpn1. [PE1] interface gigabitethernet 1/1/1.1 [PE1-GigabitEthernet1/1/1.1] ip binding vpn-instance vpn1 # Configure the subinterface to terminate VLAN 10.
Verifying the configuration # Verify that PE 1 has learned the static route of VPN 1 through OSPF. [PE1] display ip routing-table vpn-instance vpn1 Destinations : 13 Routes : 13 Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/32 Direct 127.0.0.1 InLoop0 20.1.1.0/24 Direct 20.1.1.2...
Configuring IPv6 MCE This chapter describes IPv6 MCE configuration. IPv6 MPLS L3VPN overview IPv6 MPLS L3VPN uses BGP to advertise IPv6 VPN routes and uses MPLS to forward IPv6 VPN packets on the service provider backbone. Figure 138 shows a typical IPv6 MPLS L3VPN model. The service provider backbone in the IPv6 MPLS L3VPN model is an IPv4 network.
Tasks at a glance Configuring routing on an MCE: (Required.) Configuring routing between an MCE and a VPN site (Required.) Configuring routing between an MCE and a PE Configuring VPN instances By configuring VPN instances on a PE, you isolate not only VPN routes from public network routes, but also routes between VPNs.
Step Command Remarks By default, an interface is not associated with a VPN instance and belongs to the public network. The ip binding vpn-instance Associate a VPN instance ip binding vpn-instance command clears the IP address of with the interface. vpn-instance-name the interface.
Step Command Remarks By default, only one tunnel is selected (no load balancing) in this order: LSP tunnel, GRE tunnel, and CR-LSP tunnel. Apply a tunnel policy to the tnl-policy tunnel-policy-name The specified tunnel policy must VPN instance. have been created. For information about tunnel policies, see "Configuring tunnel policies."...
Page 541
Step Command Remarks (Optional.) Configure The default ipv6 route-static default-preference the default preference preference for IPv6 default-preference for IPv6 static routes. static routes is 60. Configuring RIPng between an MCE and a VPN site A RIPng process belongs to the public network or a single IPv6 VPN instance. If you create a RIPng process without binding it to an IPv6 VPN instance, the process belongs to the public network.
Page 542
Step Command Remarks import-route protocol [ process-id | all-processes | Redistribute remote site allow-ibgp ] [ allow-direct | cost By default, no routes are routes advertised by the PE. cost-value | nssa-only | redistributed into OSPFv3. route-policy route-policy-name | tag tag | type type ] * Return to system view.
Page 543
Step Command Remarks Enter system view. system-view bgp as-number [ instance Enter BGP instance view. instance-name ] Enter BGP-VPN instance ip vpn-instance view. vpn-instance-name peer { group-name | Specify an IPv6 BGP peer ipv6-address [ prefix-length ] } By default, no BGP peers exist. in an AS.
Page 544
Step Command Remarks Enter BGP-VPN instance ip vpn-instance view. vpn-instance-name peer { group-name | By default, no BGP peers or Configure an IBGP peer. ipv6-address [ prefix-length ] } peer groups exist. as-number as-number Enter BGP-VPN IPv6 unicast address family address-family ipv6 [ unicast ] view.
Configuring routing between an MCE and a PE MCE-PE routing configuration includes the following tasks: • Binding the MCE-PE interfaces to IPv6 VPN instances. • Performing routing configurations. • Redistributing IPv6 VPN routes into the routing protocol running between the MCE and the PE. Perform the following configuration tasks on the MCE.
Page 546
Step Command Remarks By default, routing loop detection is enabled. On an MCE network, you must Disable routing loop disable routing loop detection for vpn-instance-capability simple detection. a VPN OSPFv3 process. Otherwise, the MCE does not receive OSPFv3 routes from the import-route protocol [ process-id | all-processes | allow-ibgp ] [ allow-direct | cost...
Step Command Remarks Enter BGP-VPN instance ip vpn-instance view. vpn-instance-name peer { group-name | ipv6-address Configure the PE as an [ prefix-length ] } as-number By default, no BGP peers exist. EBGP peer. as-number Enter BGP-VPN IPv6 unicast address-family ipv6 [ unicast ] address family view.
IPv6 MCE configuration example Network requirements As shown in Figure 139, VPN 2 runs RIPng. Configure the MCE device to separate routes from different VPNs and advertise the VPN routes to PE 1 through OSPFv3. Figure 139 Network diagram VPN 2 Site 1 PE 2 PE 1...
Page 549
[MCE-vpn-instance-vpn2] quit # Bind interface GigabitEthernet 1/1/1 to VPN instance vpn1, and configure an IPv6 address for the interface. [MCE] interface gigabitethernet 1/1/1 [MCE-GigabitEthernet1/1/1] ip binding vpn-instance vpn1 [MCE-GigabitEthernet1/1/1] ipv6 address 2001:1::1 64 [MCE-GigabitEthernet1/1/1] quit # Bind interface GigabitEthernet 1/1/2 to VPN instance vpn2, and configure an IPv6 address for the interface.
Page 550
[VR2] interface gigabitethernet 1/1/1 [VR2-GigabitEthernet1/1/1] ripng 20 enable [VR2-GigabitEthernet1/1/1] quit [VR2] interface gigabitethernet 1/1/2 [VR2-GigabitEthernet1/1/2] ripng 20 enable [VR2-GigabitEthernet1/1/2] quit # On the MCE, display the routing tables of the VPN instances vpn1 and vpn2. [MCE] display ipv6 routing-table vpn-instance vpn1 Destinations : 6 Routes : 6 Destination: ::1/128 Protocol...
# Configure an IPv6 address for the subinterface. [PE1-GigabitEthernet1/1/1.2] ipv6 address 2002:2::4 64 [PE1-GigabitEthernet1/1/1.2] quit # Configure the IP address of the interface Loopback 0 as 101.101.10.1 for the MCE and as 100.100.10.1 for PE 1. Specify the loopback interface address as the router ID for the MCE and PE 1.
Page 553
Destination: FE80::/10 Protocol : Direct NextHop : :: Preference: 0 Interface : NULL0 Cost Destination: FF00::/8 Protocol : Direct NextHop : :: Preference: 0 Interface : NULL0 Cost # Verify that PE 1 has learned the private route of VPN 2 through OSPFv3. [PE1] display ipv6 routing-table vpn-instance vpn2 Destinations : 6 Routes : 6 Destination: ::1/128...
Configuring static SR over MPLS Overview About SR and SRLSP Segment Routing (SR) is a source routing technology. The source node selects a path for the packets, and then encodes the path as a list of segments in the packets. Each segment is identified by the segment identifier (SID).
Figure 140 How a static SRLSP forwards a packet (adjacency method) Protocols and standards • draft-ietf-spring-segment-routing-mpls-00 • draft-ietf-spring-segment-routing-02 Static SR over MPLS configuration task list To configure static SR over MPLS, perform the following tasks: Enable MPLS TE on all nodes and enable MPLS on all interfaces that will participate in MPLS TE forwarding.
• Determine the incoming label of each transit node's adjacency to a neighbor. On a device, a static SRLSP, a static LSP, and a static CRLSP cannot use the same incoming label. • Enable MPLS on interfaces that will participate in MPLS forwarding. For information about enabling MPLS, see "Configuring basic MPLS."...
Step Command Remarks Set the MPLS TE tunnel By default, MPLS TE uses establishment mode to mpls te signaling static RSVP-TE to establish a tunnel. static. Bind a static SRLSP to the By default, an MPLS TE tunnel mpls te static-sr-lsp lsp-name MPLS TE tunnel interface.
Figure 141 Network diagram Table 50 Interface and IP address assignment Device Interface IP address Device Interface IP address Router A Loop0 1.1.1.9/32 Router B Loop0 2.2.2.9/32 GE1/1/1 10.1.1.1/24 GE1/1/1 10.1.1.2/24 GE1/1/2 100.1.1.1/24 GE1/1/2 20.1.1.1/24 Router C Loop0 3.3.3.9/32 GE1/1/3 40.1.1.1/24 GE1/1/1 30.1.1.1/24...
Page 559
Execute the display ip routing-table command on each router to verify that the routers have learned the routes to one another, including the routes to the loopback interfaces. (Details not shown.) Configure LSR IDs, and enable MPLS and MPLS TE: # Configure Router A <RouterA>...
Page 560
# Configure Router E. <RouterE> system-view [RouterE] mpls lsr-id 5.5.5.9 [RouterE] mpls te [RouterE-te] quit [RouterE] interface gigabitethernet 1/1/2 [RouterE-GigabitEthernet1/1/2] mpls enable [RouterE-GigabitEthernet1/1/2] quit # Configure Router F. <RouterF> system-view [RouterF] mpls lsr-id 6.6.6.9 [RouterF] mpls te [RouterF-te] quit [RouterF] interface gigabitethernet 1/1/2 [RouterF-GigabitEthernet1/1/2] mpls enable [RouterF-GigabitEthernet1/1/2] quit Configure adjacency path labels on each node:...
[RouterA-Tunnel0] mpls te signaling static [RouterA-Tunnel0] quit # On Router E, establish static MPLS TE tunnel 0 to Router F and specify the tunnel destination address as the LSR ID of Router F. [RouterE] interface tunnel 0 mode mpls-te [RouterE-Tunnel0] ip address 7.1.1.1 255.255.255.0 [RouterE-Tunnel0] destination 6.6.6.9 [RouterE-Tunnel0] mpls te signaling static [RouterE-Tunnel0] quit...
Page 562
Record Route Record Label FRR Flag Backup Bandwidth Flag: - Backup Bandwidth Type: - Backup Bandwidth Route Pinning Retry Limit Retry Interval : 2 sec Reoptimization Reoptimization Freq Backup Type Backup LSP ID Auto Bandwidth Auto Bandwidth Freq Min Bandwidth Max Bandwidth Collected Bandwidth # Display the MPLS TE tunnel information on Router E.
Document conventions and icons Conventions This section describes the conventions used in the documentation. Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown. Italic Italic text represents arguments that you replace with actual values. Square brackets enclose syntax choices (keywords or arguments) that are optional.
Network topology icons Convention Description Represents a generic network device, such as a router, switch, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features.
Hewlett Packard Enterprise Support Center More Information on Access to Support Materials page: www.hpe.com/support/AccessToSupportMaterials IMPORTANT: Access to some updates might require product entitlement when accessed through the Hewlett Packard Enterprise Support Center. You must have an HP Passport set up with relevant entitlements.
Websites Website Link Networking websites Hewlett Packard Enterprise Information Library for www.hpe.com/networking/resourcefinder Networking Hewlett Packard Enterprise Networking website www.hpe.com/info/networking Hewlett Packard Enterprise My Networking website www.hpe.com/networking/support Hewlett Packard Enterprise My Networking Portal www.hpe.com/networking/mynetworking Hewlett Packard Enterprise Networking Warranty www.hpe.com/networking/warranty General websites Hewlett Packard Enterprise Information Library www.hpe.com/info/enterprise/docs Hewlett Packard Enterprise Support Center...
Page 568
part number, edition, and publication date located on the front cover of the document. For online help content, include the product name, product version, help edition, and publication date located on the legal notices page.
Page 598
MPLS L3VPN sham link configuration, static SR over MPLS configuration, 544, 545 MPLS TE attribute advertisement, parameter MPLS TE link attribute advertisement (OSPF LDP keepalive, TE), LDP link hello, OSPF TE LDP session, MPLS TE PCE discovery, LDP targeted hello, OSPFv3 MPLS TE PCEP session, IPv6 MCE-PE OSPFv3,...
Need help?
Do you have a question about the FlexNetwork HSR6600 and is the answer not in the manual?
Questions and answers