hp msr router seriesh20628. · hp msr router series layer 3 - ip routing configuration guide(v7)...

584
HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V7) Part number: 5998-7722b Software version: CMW710-R0304 Document version: 6PW104-20150914

Upload: others

Post on 07-Jun-2020

36 views

Category:

Documents


1 download

TRANSCRIPT

  • HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V7)

    Part number: 5998-7722b

    Software version: CMW710-R0304

    Document version: 6PW104-20150914

  • i

    Legal and notice information

    © Copyright 2015 Hewlett-Packard Development Company, L.P.

    No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P.

    The information contained herein is subject to change without notice.

    HEWLETT-PACKARD COMPANY MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Hewlett-Packard shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing, performance, or use of this material.

    The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein.

  • i

    Contents

    Configuring basic IP routing ········································································································································ 1 Routing table ······································································································································································ 1 Dynamic routing protocols ··············································································································································· 2 Route preference ······························································································································································· 2 Load sharing ······································································································································································ 3 Route backup ····································································································································································· 3 Route recursion ·································································································································································· 3 Route redistribution ··························································································································································· 4 Extension attribute redistribution······································································································································ 4 Configuring the maximum lifetime for routes and labels in the RIB ············································································· 4 Configuring the maximum lifetime for routes in the FIB ································································································ 5 Configuring RIB NSR ························································································································································ 5 

    Configuring IPv4 RIB NSR ······································································································································· 6 Configuring IPv6 RIB NSR ······································································································································· 6 

    Displaying and maintaining a routing table ·················································································································· 6 

    Configuring static routing ············································································································································ 8 Configuring a static route ················································································································································· 8 Configuring BFD for static routes ····································································································································· 9 

    Bidirectional control mode ······································································································································ 9 Single-hop echo mode ·········································································································································· 10 

    Configuring static route FRR ·········································································································································· 11 Configuration guidelines ······································································································································ 11 Configuration procedure ······································································································································ 12 

    Displaying and maintaining static routes ···················································································································· 13 Static route configuration examples ····························································································································· 13 

    Basic static route configuration example ············································································································ 13 BFD for static routes configuration example (direct next hop) ·········································································· 15 BFD for static routes configuration example (indirect next hop) ······································································· 17 Static route FRR configuration example ·············································································································· 20 

    Configuring a default route ······································································································································· 23 

    Configuring RIP ·························································································································································· 24 Overview ········································································································································································· 24 

    RIP route entries ····················································································································································· 24 Routing loop prevention ········································································································································ 24 RIP operation ·························································································································································· 24 RIP versions ···························································································································································· 25 TRIP ········································································································································································· 25 Protocols and standards ······································································································································· 26 

    RIP configuration task list ··············································································································································· 26 Configuring basic RIP ···················································································································································· 27 

    Enabling RIP ··························································································································································· 27 Controlling RIP reception and advertisement on interfaces ·············································································· 28 Configuring a RIP version ····································································································································· 28 

    Configuring RIP route control ········································································································································ 29 Configuring an additional routing metric ··········································································································· 29 Configuring RIPv2 route summarization·············································································································· 30 Disabling host route reception ····························································································································· 31 

  • ii

    Advertising a default route ··································································································································· 31 Configuring received/redistributed route filtering ····························································································· 32 Configuring a preference for RIP ························································································································· 32 Configuring RIP route redistribution ····················································································································· 32 

    Tuning and optimizing RIP networks ···························································································································· 33 Configuration prerequisites ·································································································································· 33 Setting RIP timers ··················································································································································· 33 Configuring split horizon and poison reverse ···································································································· 34 Configuring the maximum number of ECMP routes ·························································································· 34 Enabling zero field check on incoming RIPv1 messages ·················································································· 35 Enabling source IP address check on incoming RIP updates ············································································ 35 Configuring RIPv2 message authentication ········································································································ 36 Configuring the RIP triggered update interval ···································································································· 36 Specifying a RIP neighbor ···································································································································· 37 Configuring TRIP ···················································································································································· 37 Configuring RIP network management ················································································································ 38 Configuring the RIP packet sending rate ············································································································ 38 Setting the maximum length of RIP packets ········································································································ 39 

    Configuring RIP GR ························································································································································ 39 Enabling RIP NSR ··························································································································································· 40 Configuring BFD for RIP ················································································································································· 41 

    Configuring single-hop echo detection (for a directly connected RIP neighbor) ············································ 41 Configuring single-hop echo detection (for a specific destination) ·································································· 42 Configuring bidirectional control detection ········································································································ 42 

    Configuring RIP FRR ······················································································································································· 43 Configuration restrictions and guidelines ··········································································································· 43 Configuration prerequisites ·································································································································· 43 Configuration procedure ······································································································································ 43 

    Displaying and maintaining RIP ··································································································································· 44 RIP configuration examples ··········································································································································· 45 

    Configuring basic RIP ··········································································································································· 45 Configuring RIP route redistribution ····················································································································· 48 Configuring an additional metric for a RIP interface ························································································· 50 Configuring RIP to advertise a summary route ··································································································· 51 Configuring RIP GR ··············································································································································· 54 Configuring RIP NSR ············································································································································· 55 Configuring BFD for RIP (single-hop echo detection for a directly connected neighbor) ······························ 57 Configuring BFD for RIP (single-hop echo detection for a specific destination)·············································· 59 Configuring BFD for RIP (bidirectional control detection) ················································································· 62 Configuring RIP FRR ·············································································································································· 66 

    Configuring OSPF ······················································································································································ 70 Overview ········································································································································································· 70 

    OSPF packets ························································································································································· 70 LSA types ································································································································································ 70 OSPF areas ···························································································································································· 71 Router types ···························································································································································· 74 Route types ····························································································································································· 74 Route calculation ··················································································································································· 75 OSPF network types ·············································································································································· 75 DR and BDR ··························································································································································· 75 Protocols and standards ······································································································································· 77 

    OSPF configuration task list ·········································································································································· 77 Enabling OSPF ······························································································································································· 78 

    Configuration prerequisites ·································································································································· 78 

  • iii

    Configuration guidelines ······································································································································ 78 Enabling OSPF on a network ······························································································································· 79 Enabling OSPF on an interface ··························································································································· 80 

    Configuring OSPF areas ··············································································································································· 80 Configuring a stub area ······································································································································· 80 Configuring an NSSA area ·································································································································· 81 Configuring a virtual link ······································································································································ 81 

    Configuring OSPF network types ································································································································· 82 Configuration prerequisites ·································································································································· 82 Configuring the broadcast network type for an interface ················································································· 83 Configuring the NBMA network type for an interface ······················································································ 83 Configuring the P2MP network type for an interface ························································································ 84 Configuring the P2P network type for an interface ··························································································· 84 

    Configuring OSPF route control ··································································································································· 85 Configuration prerequisites ·································································································································· 85 Configuring OSPF route summarization ············································································································· 85 Configuring received OSPF route filtering ·········································································································· 86 Configuring Type-3 LSA filtering ·························································································································· 86 Configuring an OSPF cost for an interface ········································································································ 87 Setting the maximum number of ECMP routes ··································································································· 87 Configuring OSPF preference ······························································································································ 88 Configuring discard routes for summary networks ···························································································· 88 Configuring OSPF route redistribution ················································································································ 89 Advertising a host route ········································································································································ 90 

    Tuning and optimizing OSPF networks ························································································································ 90 Configuration prerequisites ·································································································································· 90 Setting OSPF timers ··············································································································································· 91 Setting LSA transmission delay ···························································································································· 92 Setting SPF calculation interval ···························································································································· 92 Setting the LSA arrival interval ····························································································································· 92 Setting the LSA generation interval······················································································································ 93 Disabling interfaces from receiving and sending OSPF packets ······································································ 93 Configuring stub routers ······································································································································· 94 Configuring OSPF authentication ························································································································ 94 Adding the interface MTU into DD packets ········································································································ 95 Configuring a DSCP value for OSPF packets ····································································································· 96 Setting the maximum number of external LSAs in LSDB ···················································································· 96 Setting OSPF exit overflow interval ····················································································································· 96 Enabling compatibility with RFC 1583 ··············································································································· 97 Logging neighbor state changes ·························································································································· 97 Configuring OSPF network management ··········································································································· 97 Configuring the LSU transmit rate ························································································································ 98 Enabling OSPF ISPF ·············································································································································· 99 Configuring prefix suppression ···························································································································· 99 Configuring prefix prioritization ························································································································ 100 Configuring OSPF PIC ········································································································································ 100 Setting the number of OSPF logs ······················································································································· 101 

    Configuring OSPF GR ················································································································································· 101 Configuring OSPF GR restarter ·························································································································· 102 Configuring OSPF GR helper ····························································································································· 103 Triggering OSPF GR ··········································································································································· 103 

    Configuring OSPF NSR ··············································································································································· 104 Configuring BFD for OSPF ·········································································································································· 104 

    Configuring bidirectional control detection ······································································································ 105 

  • iv

    Configuring single-hop echo detection ············································································································· 105 Configuring OSPF FRR ················································································································································· 105 

    Configuration prerequisites ································································································································ 106 Configuration guidelines ···································································································································· 106 Configuration procedure ···································································································································· 106 

    Displaying and maintaining OSPF ····························································································································· 107 OSPF configuration examples ···································································································································· 108 

    Basic OSPF configuration example ··················································································································· 108 OSPF route redistribution configuration example ···························································································· 111 OSPF route summarization configuration example ························································································· 113 OSPF stub area configuration example ············································································································ 116 OSPF NSSA area configuration example ········································································································ 118 OSPF DR election configuration example ········································································································· 120 OSPF virtual link configuration example ··········································································································· 125 OSPF GR configuration example ······················································································································· 127 OSPF NSR configuration example ···················································································································· 129 BFD for OSPF configuration example ··············································································································· 131 OSPF FRR configuration example ······················································································································ 134 

    Configuring IS-IS ····················································································································································· 138 Overview ······································································································································································· 138 

    Terminology ························································································································································· 138 IS-IS address format ············································································································································· 138 NET ······································································································································································· 139 IS-IS area ······························································································································································ 140 IS-IS network types ·············································································································································· 142 IS-IS PDUs ····························································································································································· 143 Protocols and standards ····································································································································· 144 

    IS-IS configuration task list ··········································································································································· 145 Configuring basic IS-IS ················································································································································ 146 

    Configuration prerequisites ································································································································ 146 Enabling IS-IS ······················································································································································· 147 Configuring the IS level and circuit level ·········································································································· 147 Configuring P2P network type for an interface ································································································ 147 

    Configuring IS-IS route control ···································································································································· 148 Configuration prerequisites ································································································································ 148 Configuring IS-IS link cost ··································································································································· 148 Specifying a preference for IS-IS ······················································································································· 150 Configuring the maximum number of ECMP routes ························································································ 150 Configuring IS-IS route summarization ·············································································································· 151 Advertising a default route ································································································································· 152 Configuring IS-IS route redistribution ················································································································ 152 Configuring IS-IS route filtering ·························································································································· 153 Configuring IS-IS route leaking ·························································································································· 155 

    Tuning and optimizing IS-IS networks ························································································································ 155 Configuration prerequisites ································································································································ 155 Specifying the interval for sending IS-IS hello packets ···················································································· 155 Specifying the IS-IS hello multiplier ···················································································································· 156 Specifying the interval for sending IS-IS CSNP packets ·················································································· 156 Configuring a DIS priority for an interface ······································································································· 157 Enabling source address check for hello packets on a PPP interface ···························································· 157 Disabling an interface from sending/receiving IS-IS packets ········································································· 157 Enabling an interface to send small hello packets ··························································································· 158 Configuring LSP parameters ······························································································································· 158 Controlling SPF calculation interval ··················································································································· 161 

  • v

    Configuring convergence priorities for specific routes ···················································································· 162 Setting the LSDB overload bit ····························································································································· 163 Configuring the ATT bit ······································································································································· 163 Configuring the tag value for an interface ······································································································· 164 Configuring system ID to host name mappings ································································································ 164 Enabling the logging of neighbor state changes ····························································································· 165 Enabling IS-IS ISPF ··············································································································································· 166 Enabling prefix suppression ······························································································································· 166 Configuring IS-IS network management ············································································································ 167 Configuring IS-IS PIC ··········································································································································· 168 

    Enhancing IS-IS network security ································································································································ 168 Configuration prerequisites ································································································································ 168 Configuring neighbor relationship authentication ··························································································· 169 Configuring area authentication ························································································································ 169 Configuring routing domain authentication ······································································································ 170 

    Configuring IS-IS GR ···················································································································································· 170 Configuring IS-IS NSR ·················································································································································· 171 Configuring BFD for IS-IS············································································································································· 172 Configuring IS-IS FRR ··················································································································································· 173 

    Configuration prerequisites ································································································································ 173 Configuration guidelines ···································································································································· 173 Configuration procedure ···································································································································· 173 

    Configuring IS-IS MTR ·················································································································································· 176 Displaying and maintaining IS-IS ······························································································································· 177 IS-IS configuration examples ······································································································································· 179 

    Basic IS-IS configuration example ····················································································································· 179 DIS election configuration example ··················································································································· 183 IS-IS route redistribution configuration example ······························································································ 187 IS-IS authentication configuration example······································································································· 191 IS-IS GR configuration example ························································································································· 194 IS-IS NSR configuration example ······················································································································· 195 BFD for IS-IS configuration example ·················································································································· 198 IS-IS FRR configuration example ························································································································ 201 

    Configuring BGP ····················································································································································· 205 Overview ······································································································································································· 205 

    BGP speaker and BGP peer ······························································································································· 205 BGP message types ············································································································································· 205 BGP path attributes ············································································································································· 206 BGP route selection ············································································································································· 210 BGP route advertisement rules ··························································································································· 210 BGP load balancing ············································································································································ 211 Settlements for problems in large-scale BGP networks ···················································································· 212 MP-BGP ································································································································································· 215 BGP configuration views ···································································································································· 216 Protocols and standards ····································································································································· 217 

    BGP configuration task list ·········································································································································· 218 Configuring basic BGP ················································································································································ 221 

    Enabling BGP ······················································································································································· 221 Configuring a BGP peer ····································································································································· 222 Configuring dynamic BGP peers ······················································································································· 224 Configuring a BGP peer group ·························································································································· 226 Specifying the source address of TCP connections ························································································· 236 

    Generating BGP routes ················································································································································ 237 Injecting a local network ···································································································································· 238 

  • vi

    Redistributing IGP routes····································································································································· 239 Controlling route distribution and reception ············································································································· 241 

    Configuring BGP route summarization ············································································································· 241 Advertising optimal routes in the IP routing table ···························································································· 243 Advertising a default route to a peer or peer group ······················································································· 244 Limiting routes received from a peer or peer group ························································································ 245 Configuring BGP route filtering policies ··········································································································· 247 Configuring BGP route dampening ··················································································································· 252 

    Controlling BGP path selection ··································································································································· 254 Specifying a preferred value for routes received ····························································································· 254 Configuring preferences for BGP routes ··········································································································· 255 Configuring the default local preference ·········································································································· 257 Configuring the MED attribute ··························································································································· 258 Configuring the NEXT_HOP attribute ················································································································ 263 Configuring the AS_PATH attribute ··················································································································· 266 Configuring the SoO attribute ···························································································································· 272 

    Tuning and optimizing BGP networks ························································································································ 274 Configuring the keepalive interval and hold time ···························································································· 274 Configuring the interval for sending updates for the same route ··································································· 275 Enabling BGP to establish an EBGP session over multiple hops ···································································· 276 Enabling immediate re-establishment of direct EBGP connections upon link failure ···································· 277 Enabling 4-byte AS number suppression ·········································································································· 277 Enabling MD5 authentication for BGP peers ··································································································· 278 Configuring BGP load balancing ······················································································································ 279 Configuring IPsec for IPv6 BGP ························································································································· 280 Disabling BGP to establish a session to a peer or peer group ······································································ 281 Configuring GTSM for BGP ······························································································································· 281 Configuring BGP soft-reset·································································································································· 282 Protecting an EBGP peer when memory usage reaches level 2 threshold ···················································· 286 Configuring an update delay for local MPLS labels ························································································ 287 

    Configuring a large-scale BGP network ···················································································································· 288 Configuring BGP community ······························································································································ 288 Configuring BGP route reflection ······················································································································· 290 Configuring a BGP confederation ····················································································································· 292 

    Configuring BGP GR ··················································································································································· 293 Configuring BGP NSR ················································································································································· 294 Enabling SNMP notifications for BGP························································································································ 295 Enabling logging of session state changes ··············································································································· 295 Configuring BFD for BGP ············································································································································ 296 Configuring BGP FRR ··················································································································································· 297 Configuring BGP policy accounting ··························································································································· 300 Configuring 6PE ··························································································································································· 301 

    Configuring basic 6PE ········································································································································ 301 Configuring optional 6PE capabilities ·············································································································· 302 

    Displaying and maintaining BGP ······························································································································· 304 Displaying BGP ···················································································································································· 304 Resetting BGP sessions ········································································································································ 307 Clearing BGP information ·································································································································· 307 

    IPv4 BGP configuration examples ····························································································································