Page 2
The information in this document is subject to change without notice. All contents in this document, including statements, information, and recommendations, are believed to be accurate, but they are presented without warranty of any kind, express or implied. H3C shall not be liable for technical or editorial errors or omissions contained herein.
Page 3
Preface This configuration guide describes segment routing fundamentals and configuration procedures. This preface includes the following topics about the documentation: • Audience. • Conventions. • Documentation feedback. Audience This documentation is intended for: • Network planners. • Field technical support and servicing engineers. •...
Page 4
Symbols Convention Description An alert that calls attention to important information that if not understood or followed WARNING! can result in personal injury. An alert that calls attention to important information that if not understood or followed CAUTION: can result in data loss, data corruption, or damage to hardware or software. An alert that calls attention to essential information.
Page 5
Documentation feedback You can e-mail your comments about product documentation to info@h3c.com. We appreciate your comments.
Configuring MPLS SR About MPLS SR Segment Routing (SR) is a source routing technology. The source node selects a path for the packets, and then encodes the path in the packet header as an ordered list of segments. Each segment is identified by the segment identifier (SID). The SR nodes along the path forward the packets based on the SIDs in the packets.
Label forwarding entry installation based on SIDs. All MPLS SR devices in the SR domain use the allocated labels to create label forwarding entries. SRLSP setup. You can manually configure SRLSPs, or use an IGP or a controller to dynamically create SRLSPs. When the ingress node of an SRLSP receives a packet, it adds labels to the packet and forwards the packet to the egress node through the SRLSP.
flooded information, the other devices in the domain calculates their local label forwarding entries by using the following rules: Incoming label = Local SRGB base value + Index Outgoing label = SRGB base value of the next hop + Index ...
To configure an SRLSP, you must specify the label stack for packets to be forwarded along the SRLSP on the ingress node. Each label in the stack corresponds to a prefix SID or adjacency SID. The system can look for the outgoing label and next hop based on the prefix SID or adjacency SID.
Page 11
Adjacency SID-based packet forwarding Figure 4 shows how a packet is forwarded along the SRLSP from Device A to Device E based on adjacency SIDs. In this example, the label stack for the packet is configured as (200, 201, 202, and 203) on Device A.
Figure 5 Prefix and adjacency SID-based packet forwarding 17001 16001 IP data IP data IP data IP data Device E Device B Device D Device A Device C In Label Nexthop Out Label In Label In Label Nexthop 18001 Device B 17001 16001 Device E...
are running LDP. They allocate labels to destination address 3.3.3.3/32 to generate the LDP label forwarding entries. A packet that Device A sends to Device E will be forwarded as follows: Ingress node Device A encapsulates label 18201 to the packet and forwards the packet to transit node Device B.
Configuring an MPLS TE tunnel to use static SRLSPs Configuring static segments Prerequisites Before you configure static segments for a static SRLSP, perform the following tasks: • Determine the ingress node, transit nodes, and egress node of the static SRLSP. •...
Configuring a static prefix segment Restrictions and guidelines This task is required on all nodes of a static SRLSP. Multiple static SRLSPs to the same destination can share a prefix segment. A prefix segment must use the next hop or output interface of the optimal route to the destination address of the prefix segment.
Configuring IS-IS to support MPLS SR Enter system view. system-view Enter IS-IS view. isis process-id Enter IS-IS IPv4 unicast address family view. address-family ipv4 Enable MPLS SR. segment-routing mpls By default, MPLS SR is disabled. Configuring OSPF to support MPLS SR Enter system view.
Configuring an OSPF prefix SID Enter system view. system-view Enter loopback interface view. interface loopback interface-number Configure an OSPF prefix SID. ospf process-id prefix-sid { absolute absolute-value | index index-value } [ n-flag-clear ] [ explicit-null ] By default, no OSPF prefix SID is configured. Enabling MPLS SR adjacency label allocation for the IGP Restrictions and guidelines For this feature to take effect, you must enable MPLS SR.
isis process-id Configure the MPLS SRGB. segment-routing global-block minivalue maxivalue By default, the minimum label value is 16000, and the maximum label value is 24000. Configuring the MPLS SRGB for OSPF Enter system view. system-view Enter OSPF view. ospf process-id Configure the MPLS SRGB.
Configuring an MPLS TE tunnel to use static SRLSPs Tasks at a glance Enable MPLS TE. Perform this task on all nodes that the MPLS TE tunnel traverses. For more information, see MPLS TE configuration in MPLS Configuration Guide. Configuring a static SRLSP Perform this task on the ingress node of the MPLS TE tunnel.
Display and maintenance commands for MPLS Execute display commands in any view. Task Command Display IS-IS SR adjacency display isis segment-routing adjacency [ process-id ] segment information. display isis segment-routing global-block [ level-1 | Display IS-IS SRGB information. level-2 ] [ process-id ] Display static SRLSP and display mpls static-sr-mpls { lsp [ lsp-name ] | adjacency segment information.
Page 21
Figure 7 Network diagram IP network GE2/0/1 IP network GE2/0/2 Router D Loop0 Loop0 GE2/0/1 GE2/0/1 GE2/0/2 GE2/0/2 GE2/0/2 GE2/0/1 GE2/0/3 GE2/0/4 GE2/0/3 Router A Router C Router B Router E GE2/0/2 GE2/0/1 IP network Table 1 Interface and IP address assignment Device Interface IP address...
Page 22
Configure IS-IS to advertise interface addresses, including the loopback interface addresses. (Details not shown.) 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.
Page 23
[RouterD] mpls te [RouterD-te] quit [RouterD] interface gigabitethernet 2/0/2 [RouterD-GigabitEthernet2/0/2] mpls enable [RouterD-GigabitEthernet2/0/2] quit # Configure Router E. <RouterE> system-view [RouterE] mpls lsr-id 5.5.5.9 [RouterE] mpls te [RouterE-te] quit [RouterE] interface gigabitethernet 2/0/2 [RouterE-GigabitEthernet2/0/2] mpls enable [RouterE-GigabitEthernet2/0/2] quit Configure adjacency and prefix segments on the nodes: # On Router A, create adjacency segment adjacency-1, and bind incoming label 16 to next hop address 10.1.1.2.
Page 24
[RouterA-Tunnel1] mpls te signaling static [RouterA-Tunnel1] mpls te static-sr-mpls static-sr-lsp-1 [RouterA-Tunnel1] quit # Establish static MPLS TE tunnel 2 to Router E and specify the LSR ID of Router E as the tunnel destination address. Bind static SRLSP static-sr-lsp-2 to MPLS TE tunnel interface 2. [RouterA] interface tunnel 2 mode mpls-te [RouterA-Tunnel2] ip address 7.1.1.1 255.255.255.0 [RouterA-Tunnel2] destination 5.5.5.9...
Page 25
Collected Bandwidth Tunnel Name : Tunnel 2 Tunnel State : Up (Main CRLSP up) Tunnel Attributes LSP ID Tunnel ID Admin State : Normal Ingress LSR ID : 1.1.1.9 Egress LSR ID : 5.5.5.9 Signaling : Static Static CRLSP Name Static SRLSP Name : static-sr-lsp-2/- Resv Style...
Page 38
# Display detailed OSPF routing information on Router A to view information about routes bound with labels. [RouterA] display ospf routing verbose OSPF Process 1 with Router ID 1.1.1.1 Routing Table Topology base (MTID 0) Routing for network Destination: 11.0.0.0/24 Priority: Low Type: Transit AdvRouter: 3.3.3.3...
Example: Configuring MPLS SR and LDP interworking Network configuration As shown in Figure 10, complete the following tasks so the two SR networks can communicate across the LDP network: • Configure Router A, Router B, Router C, Router D, and Router E to run IS-IS. •...
Need help?
Do you have a question about the SR6600 and is the answer not in the manual?
Questions and answers