H3C SR6600 Command Reference Manual
H3C SR6600 Command Reference Manual

H3C SR6600 Command Reference Manual

Segment routing command reference
Hide thumbs Also See for SR6600:

Advertisement

Quick Links

H3C SR6600[SR6600-X] Routers
Segment Routing Command Reference
New H3C Technologies Co., Ltd.
http://www.h3c.com
Software version: SR6600_SR6600X-CMW710-R7809
Document version: 6W300-20200823

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SR6600 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for H3C SR6600

  • Page 1 H3C SR6600[SR6600-X] Routers Segment Routing Command Reference New H3C Technologies Co., Ltd. http://www.h3c.com Software version: SR6600_SR6600X-CMW710-R7809 Document version: 6W300-20200823...
  • 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.
  • Page 6: Table Of Contents

    Contents Configuring MPLS SR ···················································································· 1 About MPLS SR ················································································································································· 1 MPLS SR characteristics ··························································································································· 1 Basic concepts ··········································································································································· 1 How MPLS SR works ································································································································· 1 Static segment configuration ······················································································································ 2 Dynamic SID allocation ······························································································································ 2 Label forwarding entry installation based on SIDs ····················································································· 2 SRLSP setup ··············································································································································...
  • Page 7: Configuring Mpls Sr

    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.
  • Page 8: Static Segment Configuration

    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.
  • Page 9: Srlsp Setup

    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 ...
  • Page 10: Packet Forwarding In Mpls Sr

    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.
  • Page 12: Mpls Sr And Ldp Interworking

    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...
  • Page 13: Protocols And Standards

    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.
  • Page 14: Configuring Static Segments

    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. •...
  • Page 15: Configuring A Static Prefix Segment

    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.
  • Page 16: Configuring Prefix Sids

    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.
  • Page 17: Enabling Mpls Sr Adjacency Label Allocation For The Igp

    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.
  • Page 18: Configuring The Device To Prefer Srlsps In Traffic Forwarding

    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.
  • Page 19: Configuring An Mpls Te Tunnel To Use Static Srlsps

    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.
  • Page 20: Display And Maintenance Commands For Mpls Sr

    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 26: Example: Configuring Mpls Sr Based On Isis-Advertised Sids

    StaticCR 21/- GE2/0/2 20.1.1.2 Local GE2/0/2 60.1.1.2 Local GE2/0/3 [RouterC] display mpls lsp Proto In/Out Label Interface/Out NHLFE 5.5.5.9/32 StaticCR 16001/- StaticCR 30/- GE2/0/1 StaticCR 31/- GE2/0/3 30.1.1.2 Local GE2/0/1 50.1.1.2 Local GE2/0/3 Example: Configuring MPLS SR based on ISIS-advertised SIDs Network configuration As shown in...
  • Page 27 [RouterA-isis-1] quit [RouterA] interface gigabitethernet 2/0/1 [RouterA-GigabitEthernet2/0/1] isis enable 1 [RouterA-GigabitEthernet2/0/1] quit [RouterA] interface loopback 1 [RouterA-LoopBack1] isis enable 1 [RouterA-LoopBack1] quit # Configure Router B. <RouterB> system-view [RouterB] isis 1 [RouterB-isis-1] network-entity 00.0000.0000.0002.00 [RouterB-isis-1] cost-style wide [RouterB-isis-1] quit [RouterB] interface gigabitethernet 2/0/1 [RouterB-GigabitEthernet2/0/1] isis enable 1 [RouterB-GigabitEthernet2/0/1] quit [RouterB] interface gigabitethernet 2/0/2...
  • Page 28 [RouterD-GigabitEthernet2/0/2] quit [RouterD] interface loopback 1 [RouterD-LoopBack1] isis enable 1 [RouterD-LoopBack1] quit Configure LSR IDs, and enable MPLS and MPLS TE on the routers: # Configure Router A. [RouterA] mpls lsr-id 1.1.1.1 [RouterA] mpls te [RouterA-te] quit [RouterA] interface gigabitethernet 2/0/1 [RouterA-GigabitEthernet2/0/1] mpls enable [RouterA-GigabitEthernet2/0/1] quit # Configure Router B.
  • Page 29 [RouterB] isis 1 [RouterB-isis-1] segment-routing global-block 17000 17999 [RouterB-isis-1] address-family ipv4 [RouterB-isis-1-ipv4] segment-routing mpls [RouterB-isis-1-ipv4] quit [RouterB-isis-1] quit # Configure Router C. [RouterC] isis 1 [RouterC-isis-1] segment-routing global-block 18000 18999 [RouterC-isis-1] address-family ipv4 [RouterC-isis-1-ipv4] segment-routing mpls [RouterC-isis-1-ipv4] quit [RouterC-isis-1] quit # Configure Router D.
  • Page 30 [RouterA] ip route-static 100.1.2.0 24 tunnel 1 preference 1 Verifying the configuration # Display IS-IS process information on Router A. [RouterA] display isis IS-IS(1) Protocol Information Network entity : 00.0000.0000.0001.00 IS level : level-1 Cost style : Wide Fast reroute : Disabled Preference : 15...
  • Page 31 MPLS TE status : L1 Disabled Disabled IPv4 BFD : Disabled IPv6 BFD : Disabled IPv4 FRR LFA backup : Enabled IPv6 FRR LFA backup : Enabled IPv4 prefix suppression : Disabled IPv6 prefix suppression : Disabled IPv4 tag IPv6 tag Prefix-SID type : Index Value...
  • Page 32 10.0.0.2 GE2/0/1 0x00000102 Nib ID : 0x14000004 OutLabel : 4294967295 OutLabelFlag: - IPv4 Dest : 12.0.0.0/24 Int. Cost : 30 Ext. Cost : NULL Admin Tag : - Src Count Flag : R/-/- InLabel : 4294967295 InLabel Flag: -/-/-/-/-/- NextHop Interface ExitIndex 10.0.0.2...
  • Page 33: Example: Configuring Mpls Sr Based On Ospf-Advertised Sids

    1.1.1.1/32 ISIS 16010/- 2.2.2.2/32 ISIS 16020/3 GE2/0/1 2.2.2.2/32 ISIS GE2/0/1 3.3.3.3/32 ISIS 16030/17030 GE2/0/1 3.3.3.3/32 ISIS -/17030 GE2/0/1 4.4.4.4/32 ISIS 16040/17040 GE2/0/1 4.4.4.4/32 ISIS -/17040 GE2/0/1 Example: Configuring MPLS SR based on OSPF-advertised SIDs Network configuration As shown in Figure 9, Router A, Router B, Router C and Router D are running OSPF.
  • Page 34 [RouterA-LoopBack1] ospf 1 area 0 [RouterA-LoopBack1] quit # Configure Router B. <RouterB> system-view [RouterB] ospf 1 router-id 2.2.2.2 [RouterB-ospf-1] quit [RouterB] interface gigabitethernet 2/0/1 [RouterB-GigabitEthernet2/0/1] ospf 1 area 0 [RouterB-GigabitEthernet2/0/1] quit [RouterB] interface gigabitethernet 2/0/2 [RouterB-GigabitEthernet2/0/2] ospf 1 area 0 [RouterB-GigabitEthernet2/0/2] quit [RouterB] interface loopback 1 [RouterB-LoopBack1] ospf 1 area 0...
  • Page 35 [RouterA-GigabitEthernet2/0/1] quit # Configure Router B. [RouterB] mpls lsr-id 2.2.2.2 [RouterB] mpls te [RouterB-te] quit [RouterB] interface gigabitethernet 2/0/1 [RouterB-GigabitEthernet2/0/1] mpls enable [RouterB-GigabitEthernet2/0/1] quit [RouterB] interface gigabitethernet 2/0/2 [RouterB-GigabitEthernet2/0/2] mpls enable [RouterB-GigabitEthernet2/0/2] quit # Configure Router C. [RouterC] mpls lsr-id 3.3.3.3 [RouterC] mpls te [RouterC-te] quit [RouterC] interface gigabitethernet 2/0/1...
  • Page 36 [RouterD-ospf-1] quit Configure OSPF prefix SIDs by specifying relative values on the routers: # Configure Router A. [RouterA] interface loopback 1 [RouterA-LoopBack1] ospf 1 prefix-sid index 10 [RouterA-LoopBack1] quit # Configure Router B. [RouterB] interface loopback 1 [RouterB-LoopBack1] ospf 1 prefix-sid index 20 # Configure Router C.
  • Page 37 Transmit pacing: Interval: 20 Count: 3 Default ASE parameters: Metric: 1 Tag: 1 Type: 2 Route preference: 10 ASE route preference: 150 SPF calculation count: 16 RFC 1583 compatible Graceful restart interval: 120 SNMP trap rate limit interval: 10 Count: 7 Area count: 1 NSSA area count: 0 ExChange/Loading neighbors: 0...
  • 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...
  • Page 39 AdvRouter: 3.3.3.3 Area: 0.0.0.0 SubProtoID: 0x1 Preference: 10 NextHop: 10.0.0.2 BkNextHop: N/A IfType: Broadcast BkIfType: N/A Interface: GE2/0/1 BkInterface: N/A NibID: 0x13000005 Status: Normal Cost: 2 InLabel: 16030 OutLabel: 17030 OutLabel flag: N Destination: 2.2.2.2/32 Priority: Medium Type: Stub AdvRouter: 2.2.2.2 Area: 0.0.0.0 SubProtoID: 0x1 Preference: 10...
  • Page 40: Example: Configuring Mpls Sr And Ldp Interworking

    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. •...
  • Page 41 [RouterA] interface gigabitethernet 2/0/1 [RouterA-GigabitEthernet2/0/1] isis enable 1 [RouterA-GigabitEthernet2/0/1] quit [RouterA] interface loopback 1 [RouterA-LoopBack1] isis enable 1 [RouterA-LoopBack1] quit # Configure Router B. <RouterB> system-view [RouterB] isis 1 [RouterB-isis-1] network-entity 00.0000.0000.0002.00 [RouterB-isis-1] cost-style wide [RouterB-isis-1] quit [RouterB] interface gigabitethernet 2/0/1 [RouterB-GigabitEthernet2/0/1] isis enable 1 [RouterB-GigabitEthernet2/0/1] quit [RouterB] interface gigabitethernet 2/0/2...
  • Page 42 [RouterD] interface loopback 1 [RouterD-LoopBack1] isis enable 1 [RouterD-LoopBack1] quit # Configure Router E. <RouterE> system-view [RouterE] isis 1 [RouterE-isis-1] network-entity 00.0000.0000.0005.00 [RouterE-isis-1] cost-style wide [RouterE-isis-1] quit [RouterE] interface gigabitethernet 2/0/1 [RouterE-GigabitEthernet2/0/1] isis enable 1 [RouterE-GigabitEthernet2/0/1] quit [RouterE] interface loopback 1 [RouterE-LoopBack1] isis enable 1 [RouterE-LoopBack1] quit Configure LSR IDs on the routers:...
  • Page 43 [RouterD-ldp] quit [RouterD] interface gigabitethernet 2/0/1 [RouterD-GigabitEthernet2/0/1] mpls enable [RouterD-GigabitEthernet2/0/1] mpls ldp enable [RouterD-GigabitEthernet2/0/1] quit Enable MPLS SR on Router A, Router B, Router D, and Router E: # Configure Router A. [RouterA] isis 1 [RouterA-isis-1] address-family ipv4 [RouterA-isis-1-ipv4] segment-routing mpls [RouterA-isis-1-ipv4] quit # Configure Router B.
  • Page 44 [RouterB-LoopBack1] quit # Configure Router D. [RouterD] interface loopback 1 [RouterD-LoopBack1] isis prefix-sid index 40 [RouterD-LoopBack1] quit # Configure Router E. [RouterE] interface loopback 1 [RouterE-LoopBack1] isis prefix-sid index 50 [RouterE-LoopBack1] quit Verifying the configuration # Display LDP LSP information on Router B. [RouterB] display mpls ldp lsp Status Flags: * - stale, L - liberal, B - backup, N/A - unavailable FECs: 5...

This manual is also suitable for:

Sr6600-x

Table of Contents