Configuration Guide - IP Routing(V600R003C00_02)

  • Upload
    okie11

  • View
    259

  • Download
    0

Embed Size (px)

Citation preview

  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    1/833

    HUAWEI NetEngine80E/40E Router

    V600R003C00

    Configuration Guide - IP Routing

    Issue 02

    Date 2011-09-10

    HUAWEI TECHNOLOGIES CO., LTD.

  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    2/833

    Copyright Huawei Technologies Co., Ltd. 2011. All rights reserved.

    No part of this document may be reproduced or transmitted in any form or by any means without prior writtenconsent of Huawei Technologies Co., Ltd. Trademarks and Permissions

    and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd. All other trademarks and trade names mentioned in this document are the property of their respective holders. Notice

    The purchased products, services and features are stipulated by the contract made between Huawei and thecustomer. All or part of the products, services and features described in this document may not be within the

    purchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information,and recommendations in this document are provided "AS IS" without warranties, guarantees or representationsof any kind, either express or implied.

    The information in this document is subject to change without notice. Every effort has been made in thepreparation of this document to ensure accuracy of the contents, but all statements, information, andrecommendations in this document do not constitute the warranty of any kind, express or implied.

    Huawei Technologies Co., Ltd. Address: Huawei Industrial Base

    Bantian, LonggangShenzhen 518129People's Republic of China

    Website: http://www.huawei.com

    Email: [email protected]

    Issue 02 (2011-09-10) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    i

    http://www.huawei.com/
  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    3/833

    About This Document

    PurposeThis document is a guide to configuring IP routing for the NE80E/40E. It describes routingfeatures and the basic principles of routing protocols, detailed configuration procedures for

    different scenarios, and provides examples.

    NOTE

    l This document takes interface numbers and link types of the NE40E-X8 as an example. In workingsituations, the actual interface numbers and link types may be different from those used in thisdocument.

    l In NE80E/40E series (except for the NE40E-X1/X2), line processing boards are called Line ProcessingUnits (LPUs) and switching fabric boards are called Switching Fabric Units (SFUs). The NE40E-X1/X2 has no LPU and SFU, and packet switching and forwarding are centrally performed by the Network Processing Unit (NPU).

    Related VersionsThe following table lists the product versions related to this document.

    Product Name Version

    HUAWEI NetEngine80E/40ERouter

    V600R003C00

    Intended AudienceThis document is intended for:

    l Commissioning Engineer l Data Configuration Engineer l Network Monitoring Engineer l System Maintenance Engineer

    HUAWEI NetEngine80E/40E Router Configuration Guide - IP Routing About This Document

    Issue 02 (2011-09-10) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    ii

  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    4/833

    Symbol ConventionsThe symbols that may be found in this document are defined as follows.

    Symbol Description

    DANGER

    Alerts you to a high risk hazard that could, if not avoided,result in serious injury or death.

    WARNING

    Alerts you to a medium or low risk hazard that could, if not avoided, result in moderate or minor injury.

    CAUTION

    Alerts you to a potentially hazardous situation that could,if not avoided, result in equipment damage, data loss,

    performance deterioration, or unanticipated results.

    TIP Provides a tip that may help you solve a problem or savetime.

    NOTE Provides additional information to emphasize or supplement important points in the main text.

    Command ConventionsThe command conventions that may be found in this document are defined as follows.

    Convention Description

    Boldface The keywords of a command line are in boldface .

    Italic Command arguments are in italics .

    [ ] Items (keywords or arguments) in brackets [ ] are optional.

    { x | y | ... } Optional items are grouped in braces and separated byvertical bars. One item is selected.

    [ x | y | ... ] Optional items are grouped in brackets and separated byvertical bars. One item is selected or no item is selected.

    { x | y | ... } * Optional items are grouped in braces and separated byvertical bars. A minimum of one item or a maximum of allitems can be selected.

    [ x | y | ... ] * Optional items are grouped in brackets and separated byvertical bars. Several items or no item can be selected.

    & The parameter before the & sign can be repeated 1 to n times.

    # A line starting with the # sign is comments.

    HUAWEI NetEngine80E/40E Router Configuration Guide - IP Routing About This Document

    Issue 02 (2011-09-10) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    iii

  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    5/833

    Change HistoryChanges between document issues are cumulative. The latest document issue contains all thechanges made in earlier issues.

    Changes in Issue 02 (2011-09-10)

    Second commercial release.

    Changes in Issue 01 (2011-06-30)

    Initial commercial release.

    HUAWEI NetEngine80E/40E Router Configuration Guide - IP Routing About This Document

    Issue 02 (2011-09-10) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    iv

  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    6/833

    Contents

    About This Document.....................................................................................................................ii

    1 IP Routing Ov erview....................................................................................................................11.1 Routing Mana gement.........................................................................................................................................2

    1.1.1 Displayi ng of the Routing Table...............................................................................................................21.1.2 Displayi ng of the Routing Management Module......................................................................................2

    1.1.3 FRR Pri nciple............................................................................................................................................3

    1.2 Configuri ng IPv4 Multi-Topology.....................................................................................................................4

    1.2.1 Establis hing the Configuration Task.........................................................................................................4

    1.2.2 Creating an IPv4 Topology Instance.........................................................................................................5

    1.2.3 Binding an Interface to an IPv4 Topology Instance..................................................................................6

    1.2.4 Checkin g the Configuration.......................................................................................................................6

    1.3 Configuri ng IPv6 Multi-Topology.....................................................................................................................7

    1.3.1 Establis hing the Configuration Task.........................................................................................................7

    1.3.2 Creating an IPv6 Topology Instance.........................................................................................................8

    1.3.3 Binding an Interface to an IPv6 Topology Instance..................................................................................9

    1.3.4 Checkin g the Configuration.....................................................................................................................10

    1.4 Configuri ng IP FRR on the Public Network....................................................................................................10

    1.4.1 Establis hing the Configuration Task.......................................................................................................10

    1.4.2 Configu ring a Route-Policy.....................................................................................................................11

    1.4.3 Enablin g IP FRR on the Public Network.................................................................................................12

    1.4.4 Checkin g the Configuration.....................................................................................................................12

    1.5 Configuri ng VRRP for Direct Routes..............................................................................................................13

    1.5.1 Establis hing the Configuration Task.......................................................................................................13

    1.5.2 Configu ring a VRRP Backup Group.......................................................................................................14

    1.5.3 Associat ing an Interface with a VRRP Backup Group............................................................................15

    1.5.4 Chec king the Configuration.....................................................................................................................16

    1.6 Co nfiguration Example.....................................................................................................................................17

    1.6.1 Example for Configuring IP FRR on the Public Network.......................................................................17

    1.6.2 Example for Configuring VRRP for Direct Routes.................................................................................20

    2 IP Static Route Configuration...................................................................................................282.1 Introduction of IP Static Route.........................................................................................................................29

    2.1.1 Static Route..............................................................................................................................................29

    HUAWEI NetEngine80E/40E Router Configuration Guide - IP Routing Contents

    Issue 02 (2011-09-10) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    v

  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    7/833

    2.1.2 Static Routing Features Supported by the NE80E/40E...........................................................................29

    2.2 Configuring an IPv4 Static Route.....................................................................................................................30

    2.2.1 Establishing the Configuration Task.......................................................................................................30

    2.2.2 Configuring an IPv4 Static Route............................................................................................................32

    2.2.3 (Optional) Setting the Default Preference for IPv4 Static Routes...........................................................32

    2.2.4 (Optiona l) Configuring Static Route Selection Based on Relay Depth...................................................33

    2.2.5 (Opt ional) Configuring Permanent Advertisement of IPv4 Static Routes..............................................33

    2.2.6 Configuring Static IPv4 Routes in a Topology Instance.........................................................................34

    2.2.7 Checking the Configuration.....................................................................................................................35

    2.3 Configuring an IPv6 Static Route.....................................................................................................................35

    2.3.1 Establishing the Configuration Task.......................................................................................................35

    2.3.2 Configuring an IPv6 Static Route............................................................................................................36

    2.3.3 (Optional) Setting the Default Preference for IPv6 Static Routes...........................................................36

    2.3.4 Configuring Static IPv6 Routes in a Topology Instance.........................................................................372.3.5 Checking the Configuration.....................................................................................................................38

    2.4 Configuring BFD for IPv4 Static Routes on the Public Network....................................................................38

    2.4.1 Establishing the Configuration Task.......................................................................................................38

    2.4.2 Configuring an IPv4 Static Route............................................................................................................39

    2.4.3 Configuring a BFD Session.....................................................................................................................39

    2.4.4 Binding a Static Route to a BFD Session................................................................................................39

    2.4.5 Checking the Configuration.....................................................................................................................40

    2.5 Configuring BFD for IPv6 Static Routes on the Public Network....................................................................41

    2.5.1 Establishing the Configuration Task.......................................................................................................412.5.2 Configuring an IPv6 Static Route............................................................................................................41

    2.5.3 Configuring a BFD Session.....................................................................................................................42

    2.5.4 Binding a Static Route to a BFD Session................................................................................................42

    2.5.5 Checking the Configuration.....................................................................................................................43

    2.6 Configuring NQA for IPv4 Static Routes.........................................................................................................43

    2.6.1 Establishing the Configuration Task.......................................................................................................43

    2.6.2 Configuring an ICMP Type NQA Test Instance.....................................................................................44

    2.6.3 Binding an IPv4 Static Route to an NQA Test Instance..........................................................................46

    2.6.4 Checking the Configuration.....................................................................................................................47

    2.7 Configuration Examples...................................................................................................................................48

    2.7.1 Example for Configuring IPv4 Static Routes..........................................................................................48

    2.7.2 Example for Configuring IPv6 Static Routes..........................................................................................51

    2.7.3 Example for Configuring BFD for IPv4 Static Routes............................................................................54

    2.7.4 Example for Configuring BFD for IPv6 Static Routes............................................................................57

    2.7.5 Example for Configuring NQA for IPv4 Static Routes...........................................................................60

    2.7.6 Example for Configuring Permanent Advertisement of IPv4 Static Routes...........................................67

    3 RIP Configuratio n.......................................................................................................................733.1 Introduction t o RIP...........................................................................................................................................75

    3.1.1 Overvie w of RIP......................................................................................................................................75

    HUAWEI NetEngine80E/40E Router Configuration Guide - IP Routing Contents

    Issue 02 (2011-09-10) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    vi

  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    8/833

    3.1.2 RIP Features Supported by the NE80E/40E............................................................................................76

    3.2 Configuring Basic RIP Functions.....................................................................................................................76

    3.2.1 Establishing the Configuration Task.......................................................................................................76

    3.2.2 Enabling RIP............................................................................................................................................77

    3.2.3 Enabling RIP on the Specified Network Segment...................................................................................77

    3.2.4 Configu ring RIP Version Number...........................................................................................................78

    3.2.5 Checkin g the Configuration.....................................................................................................................79

    3.3 Configuri ng RIP Route Attributes....................................................................................................................81

    3.3.1 Establis hing the Configuration Task.......................................................................................................81

    3.3.2 Configu ring Additional Metrics of an Interface......................................................................................82

    3.3.3 Configu ring RIP Preference....................................................................................................................83

    3.3.4 Setting t he Maximum Number of Equal-Cost Routes.............................................................................83

    3.3.5 Checkin g the Configuration.....................................................................................................................84

    3.4 Controlling th e Advertising of RIP Routing Information................................................................................853.4.1 Establis hing the Configuration Task.......................................................................................................85

    3.4.2 Configu ring RIP to Advertise Default Routes.........................................................................................85

    3.4.3 Disa bling an Interface from Sending Update Packets.............................................................................86

    3.4.4 Configu ring RIP to Import External Routes............................................................................................87

    3.4.5 Checkin g the Configuration.....................................................................................................................88

    3.5 Controlling th e Receiving of RIP Routing Information...................................................................................89

    3.5.1 Establis hing the Configuration Task.......................................................................................................89

    3.5.2 Disa bling an Interface from Receiving RIP Update Packets...................................................................89

    3.5.3 Disablin g RIP from Receiving Host Routes............................................................................................903.5.4 Configu ring RIP to Filter the Received Routes.......................................................................................91

    3.5.5 Checkin g the Configuration.....................................................................................................................91

    3.6 Configuring R IP-2 Features..............................................................................................................................92

    3.6.1 Establis hing the Configuration Task.......................................................................................................92

    3.6.2 Conf iguring RIP-2 Route Summarization...............................................................................................93

    3.6.3 Configu ring Packet Authentication of RIP-2..........................................................................................94

    3.6.4 Checkin g the Configuration.....................................................................................................................95

    3.7 Optimizing a RIP Network...............................................................................................................................95

    3.7.1 Establis hing the Configuration Task.......................................................................................................95

    3.7.2 Configu ring RIP Timers..........................................................................................................................96

    3.7.3 Setti ng the Interval for Sending Packets and the Maximum Number of the Sent Packets......................97

    3.7.4 Configu ring Split Horizon and Poison Reverse......................................................................................98

    3.7.5 Enablin g replay-protect Function............................................................................................................99

    3.7.6 Configu ring RIP to Check the Validity of Update Packets...................................................................100

    3.7.7 Configu ring RIP Neighbors...................................................................................................................101

    3.7.8 Checkin g the Configuration...................................................................................................................101

    3.8 Configuri ng RIP GR.......................................................................................................................................102

    3.8.1 Establis hing the Configuration Task.....................................................................................................102

    3.8.2 Enablin g RIP GR...................................................................................................................................103

    HUAWEI NetEngine80E/40E Router Configuration Guide - IP Routing Contents

    Issue 02 (2011-09-10) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    vii

  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    9/833

    3.8.3 Checking the Configuration...................................................................................................................103

    3.9 Configuring the Network Management Function in RIP...............................................................................104

    3.9.1 Establishing the Configuration Task.....................................................................................................104

    3.9.2 Binding RIP to MIBs.............................................................................................................................104

    3.9.3 Checking the Configuration...................................................................................................................105

    3.10 Maintaining RIP...........................................................................................................................................105

    3.10.1 Resetti ng RIP.......................................................................................................................................105

    3.10.2 Clearin g RIP........................................................................................................................................106

    3.11 Configuratio n Examples...............................................................................................................................106

    3.11.1 Exa mple for Configuring RIP Version................................................................................................106

    3.11.2 Examp le for Configuring RIP to Import External Routes...................................................................110

    4 RIPng Configuration.................................................................................................................1144.1 Introduction to RIPng.....................................................................................................................................115

    4.1.1 RIPng Overview....................................................................................................................................115

    4.1.2 RIPng Features Supported by the NE80E/40E......................................................................................116

    4.2 Configuring Basic RIPng Functions...............................................................................................................116

    4.2.1 Establishing the Configuration Task.....................................................................................................116

    4.2.2 Enabling RIPng and Entering the RIPng View.....................................................................................117

    4.2.3 Enabling RIPng in the Interface View...................................................................................................117

    4.2.4 Checking the Configuration...................................................................................................................118

    4.3 Configuring RIPng Route Attributes..............................................................................................................120

    4.3.1 Establishing the Configuration Task.....................................................................................................120

    4.3.2 Configuring the RIPng Preference........................................................................................................120

    4.3.3 Configuring Additional Metrics of an Interface....................................................................................121

    4.3.4 Configuring the Maximum Number of Equal-Cost Routes...................................................................122

    4.3.5 Checking the Configuration...................................................................................................................122

    4.4 Controlling the Advertising of RIPng Routing Information..........................................................................123

    4.4.1 Establishing the Configuration Task.....................................................................................................123

    4.4.2 Configuring RIPng Route Summarization............................................................................................124

    4.4.3 Configuring RIPng to Advertise the Default Routes.............................................................................124

    4.4.4 Configuring the Default Cost for External Routes Imported by RIPng................................................125

    4.4.5 Configuring RIPng to Import External Routes......................................................................................1254.4.6 Checking the Configuration...................................................................................................................126

    4.5 Controlling the Receiving of RIPng Routing Information.............................................................................126

    4.5.1 Establishing the Configuration Task.....................................................................................................127

    4.5.2 Configuring RIPng to Filter the Received Routes.................................................................................127

    4.5.3 Checkin g the Configuration...................................................................................................................128

    4.6 Optimizing a RIPng Network.........................................................................................................................128

    4.6.1 Esta blishing the Configuration Task................................................................................... ..................128

    4.6.2 Configu ring RIPng Timers....................................................................................................................129

    4.6.3 Setting t he Interval for Sending Update Packets and the Maximum Number of Packets Sent Each Time................ ........................................................................................................................................................129

    HUAWEI NetEngine80E/40E Router Configuration Guide - IP Routing Contents

    Issue 02 (2011-09-10) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    viii

  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    10/833

    4.6.4 Configuring Split Horizon and Poison Reverse....................................................................................130

    4.6.5 Enabling the Zero Field Check for RIPng Packets................................................................................131

    4.6.6 Checking the Configuration...................................................................................................................131

    4.7 Configuring IPSec Authentication for RIPng.................................................................................................132

    4.7.1 Establishing the Configuration Task.....................................................................................................132

    4.7.2 Configu ring IPSec Authentication in a RIPng Process.........................................................................133

    4.7.3 Configu ring IPSec Authentication on a RIPng Interface......................................................................133

    4.7.4 Checkin g the Configuration...................................................................................................................134

    4.8 Configura tion Examples.................................................................................................................................135

    4.8.1 Example for Configuring RIPng to Filter the Received Routes............................................................135

    5 OSPF Configura tion..................................................................................................................1395.1 Introduction t o OSPF......................................................................................................................................141

    5.1.1 OSPF O verview.....................................................................................................................................141

    5.1.2 OSP F Features Supported by the NE80E/40E......................................................................................144

    5.2 Configuring B asic OSPF Functions...............................................................................................................148

    5.2.1 Establis hing the Configuration Task.....................................................................................................149

    5.2.2 Enablin g OSPF and Entering the OSPF View.......................................................................................149

    5.2.3 Configu ring the Network Segments Included by Each Area.................................................................150

    5.2.4 Chec king the Configuration...................................................................................................................151

    5.3 Establishing o r Maintaining OSPF Neighbor Relationship............................................................................152

    5.3.1 Establis hing the Configuration Task.....................................................................................................152

    5.3.2 Configu ring the Interval for Sending Hello Packets.............................................................................153

    5.3.3 Configu ring Smart-discover..................................................................................................................1535.3.4 Configu ring Dead Time of Neighbor Relationship...............................................................................154

    5.3.5 Configu ring OSPF Retransmission Limit..............................................................................................155

    5.3.6 Configu ring the Interval for Updating and Receiving LSAs.................................................................155

    5.3.7 Restricti ng the Flooding of Update LSAs.............................................................................................157

    5.3.8 Chec king the Configuration...................................................................................................................157

    5.4 Configuring O SPF Stub Areas.......................................................................................................................158

    5.4.1 Establis hing the Configuration Task.....................................................................................................158

    5.4.2 Defining the Current Area to be a Stub Area........................................................................................159

    5.4.3 Configu ring Metrics of Default Routes Sent to Stub Areas..................................................................1595.4.4 Chec king the Configuration...................................................................................................................160

    5.5 Configuring O SPF NSSA Areas.....................................................................................................................160

    5.5.1 Establis hing the Configuration Task.....................................................................................................161

    5.5.2 Defi ning the Current Area to Be an NSSA Area...................................................................................161

    5.5.3 Configuring Metrics of Default Routes Sent to NSSA Areas...............................................................162

    5.5.4 Checkin g the Configuration...................................................................................................................163

    5.6 Configuri ng OSPF Virtual Links....................................................................................................................163

    5.6.1 Establis hing the Configuration Task.....................................................................................................163

    5.6.2 Configu ring OSPF Virtual Links...........................................................................................................164

    5.6.3 Checkin g the Configuration...................................................................................................................165

    HUAWEI NetEngine80E/40E Router Configuration Guide - IP Routing Contents

    Issue 02 (2011-09-10) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    ix

  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    11/833

    5.7 Configuring OSPF Attributes in Different Types of Networks......................................................................166

    5.7.1 Establishing the Configuration Task.....................................................................................................166

    5.7.2 Configuring Network Types of OSPF Interfaces..................................................................................167

    5.7.3 Configuring DR Priorities of OSPF Interfaces......................................................................................167

    5.7.4 Disabling the Function of Checking the Network Mask on a P2MP Network.....................................168

    5.7.5 Configu ring Neighbors for NBMA Networks.......................................................................................169

    5.7.6 Conf iguring the Interval for Sending Poll Packets in NBMA Networks..............................................169

    5.7.7 Checkin g the Configuration...................................................................................................................170

    5.8 Configuring O SPF Route Attributes...............................................................................................................171

    5.8.1 Establis hing the Configuration Task.....................................................................................................171

    5.8.2 Configu ring the Link Cost of OSPF......................................................................................................171

    5.8.3 Conf iguring OSPF Precedence..............................................................................................................172

    5.8.4 Setting t he Convergence Priority of OSPF Routes................................................................................173

    5.8.5 Configu ring the Maximum Number of Equal-Cost Routes...................................................................1745.8.6 Checkin g the Configuration...................................................................................................................175

    5.9 Controlling O SPF Routing Information.........................................................................................................176

    5.9.1 Establis hing the Configuration Task.....................................................................................................176

    5.9.2 Configu ring OSPF Route Aggregation..................................................................................................176

    5.9.3 Configu ring OSPF to Filter the Received Routes.................................................................................177

    5.9.4 Configu ring OSPF to Filter ABR Type3 LSA......................................................................................178

    5.9.5 Configu ring OSPF to Import External Routes......................................................................................179

    5.9.6 Checkin g the Configuration...................................................................................................................180

    5.10 Optimizing a n OSPF Network......................................................................................................................1815.10.1 Establi shing the Configuration Task...................................................................................................182

    5.10.2 Co nfiguring the Delay for Transmitting LSAs on the Interface..........................................................182

    5.10.3 Config uring the Interval for Retransmitting LSAs..............................................................................183

    5.10.4 Config uring the Local Router to Filter the LSAs to Be Sent..............................................................184

    5.10.5 Suppre ssing the Interface from Receiving and Sending OSPF Packets..............................................185

    5.10.6 Config uring the Interval for SPF Calculation......................................................................................185

    5.10.7 Config uring Stub Routers....................................................................................................................186

    5.10.8 Enabli ng the Mesh-Group Function....................................................................................................187

    5.10.9 Co nfiguring the MTU in DD Packets..................................................................................................188

    5.10.10 Confi guring the Maximum Number of External LSAs in the LSDB................................................188

    5.10.11 Confi guring RFC 1583 Compatible External Routing......................................................................189

    5.10.12 Check ing the Configuration...............................................................................................................189

    5.11 Configuring Local MT..................................................................................................................................191

    5.11.1 Establi shing the Configuration Task...................................................................................................191

    5.11.2 Enabli ng Local MT..............................................................................................................................191

    5.11.3 (Op tional) Controlling the Scale of the MIGP Routing Table............................................................192

    5.11.4 Checki ng the Configuration.................................................................................................................193

    5.12 Configuring OSPF IP FRR...........................................................................................................................193

    5.12.1 Establi shing the Configuration Task...................................................................................................193

    HUAWEI NetEngine80E/40E Router Configuration Guide - IP Routing Contents

    Issue 02 (2011-09-10) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    x

  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    12/833

    5.12.2 Enabling OSPF IP FRR.......................................................................................................................194

    5.12.3 (Optional) Configuring OSPF IP FRR Filtering Policies....................................................................195

    5.12.4 (Optional) Binding IP FRR and BFD in an OSPF Process.................................................................195

    5.12.5 (Optional) Binding IP FRR and BFD on a Specified OSPF Interface................................................196

    5.12.6 Checking the Configuration.................................................................................................................196

    5.13 Configuring OSPF GR..................................................................................................................................197

    5.13.1 Establi shing the Configuration Task...................................................................................................197

    5.13.2 Enabli ng the Opaque-LSA of OSPF....................................................................................................198

    5.13.3 Enabli ng the Default Feature of OSPF GR.........................................................................................198

    5.13.4 (Optio nal) Configuring the GR Session Parameters on the Restarter.................................................199

    5.13.5 (Op tional) Configuring GR Session Parameters on the Helper...........................................................200

    5.13.6 (Optio nal) Configuring the Router not to Enter the Helper Mode......................................................201

    5.13.7 Checki ng the Configuration.................................................................................................................201

    5.14 Configur ing BFD for OSPF..........................................................................................................................2025.14.1 Establi shing the Configuration Task...................................................................................................202

    5.14.2 Config uring Global BFD.....................................................................................................................202

    5.14.3 Config uring BFD for OSPF.................................................................................................................203

    5.14.4 (Optio nal)Preventing an Interface from Dynamically Setting Up a BFD Session..............................204

    5.14.5 (Optio nal)Configuring BFD on the Specified Interface......................................................................204

    5.14.6 Checki ng the Configuration.................................................................................................................205

    5.15 Configur ing the Network Management Function of OSPF..........................................................................205

    5.15.1 Establi shing the Configuration Task...................................................................................................206

    5.15.2 Config uring OSPF MIB Binding.........................................................................................................2065.15.3 Config uring OSPF Trap.......................................................................................................................206

    5.15.4 Config uring OSPF Log........................................................................................................................207

    5.15.5 Checki ng the Configuration.................................................................................................................207

    5.16 Improvin g Security of an OSPF Network....................................................................................................208

    5.16.1 Establi shing the Configuration Task...................................................................................................208

    5.16.2 Config uring the OSPF GTSM Functions............................................................................................209

    5.16.3 Adjusti ng GTSM.................................................................................................................................209

    5.16.4 Config uring the Area Authentication Mode........................................................................................210

    5.16.5 Config uring the Interface Authentication Mode..................................................................................211

    5.16.6 Checki ng the Configuration.................................................................................................................212

    5.17 Maintain ing OSPF........................................................................................................................................213

    5.17.1 Resetti ng OSPF....................................................................................................................................213

    5.17.2 Clearin g OSPF.....................................................................................................................................213

    5.18 Configuring Examples..................................................................................................................................214

    5.18.1 Examp le for Configuring Basic OSPF Functions................................................................................214

    5.18.2 Examp le for Configuring OSPF Stub Areas........................................................................................219

    5.18.3 Examp le for Configuring OSPF NSSAs.............................................................................................224

    5.18.4 Examp le for Configuring DR Election of OSPF.................................................................................229

    5.18.5 Exa mple for Configuring OSPF Virtual Links....................................................................................234

    HUAWEI NetEngine80E/40E Router Configuration Guide - IP Routing Contents

    Issue 02 (2011-09-10) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    xi

  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    13/833

    5.18.6 Example for Configuring OSPF Load Balancing................................................................................237

    5.18.7 Example for Configuring Local MT....................................................................................................242

    5.18.8 Example for Configuring OSPF IP FRR.............................................................................................250

    5.18.9 Example for Configuring OSPF GR....................................................................................................253

    5.18.10 Example for Configuring BFD for OSPF..........................................................................................257

    5.18.11 Exam ple for Configuring OSPF-BGP...............................................................................................262

    5.18.12 Exam ple for Configuring OSPF GTSM............................................................................................271

    6 OSPFv3 Configu ration.............................................................................................................2756.1 Introducti on to OSPFv3..................................................................................................................................277

    6.1.1 OSPFv3 ..................................................................................................................................................277

    6.1.2 OSPFv3 Features Supported by NE80E/40E........................................................................................277

    6.2 Configuring B asic OSPFv3 Functions...........................................................................................................278

    6.2.1 Establis hing the Configuration Task.....................................................................................................278

    6.2.2 Enab ling OSPFv3..................................................................................................................................278

    6.2.3 Enablin g OSPFv3 on an Interface.........................................................................................................279

    6.2.4 Entering the OSPFv3 Area View...........................................................................................................280

    6.2.5 Checkin g the Configuration...................................................................................................................280

    6.3 Establishi ng or Maintaining OSPFv3 Neighbor Relationship........................................................................281

    6.3.1 Establis hing the Configuration Task.....................................................................................................281

    6.3.2 Configu ring the Interval for Sending Hello Packets.............................................................................282

    6.3.3 Configu ring Dead Time of Neighbor Relationship...............................................................................283

    6.3.4 Configu ring the Interval for Retransmitting LSAs to Neighboring Routers.........................................283

    6.3.5 Conf iguring the Delay for Transmitting LSAs on the Interface............................................................2846.3.6 Checkin g the Configuration...................................................................................................................285

    6.4 Configuring O SPFv3 Areas............................................................................................................................285

    6.4.1 Establis hing the Configuration Task.....................................................................................................285

    6.4.2 Configu ring OSPFv3 Stub Areas..........................................................................................................286

    6.4.3 Configu ring OSPFv3 Virtual Links.......................................................................................................286

    6.4.4 Checkin g the Configuration...................................................................................................................287

    6.5 Configuri ng OSPFv3 NSSA Areas.................................................................................................................288

    6.5.1 Establis hing the Configuration Task.....................................................................................................288

    6.5.2 Defining the Current Area to Be an NSSA Area...................................................................................2886.5.3 Checkin g the Configuration...................................................................................................................289

    6.6 Configuring O SPFv3 Route Attributes...........................................................................................................290

    6.6.1 Establis hing the Configuration Task.....................................................................................................290

    6.6.2 Setti ng the Cost of the OSPFv3 Interface..............................................................................................290

    6.6.3 Setting t he Maximum Number of Equal-Cost Routes...........................................................................291

    6.6.4 Checkin g the Configuration...................................................................................................................291

    6.7 Controllin g OSPFv3 Routing Information.....................................................................................................292

    6.7.1 Establishing the Configuration Task.....................................................................................................292

    6.7.2 Configu ring OSPFv3 Route Aggregation..............................................................................................293

    6.7.3 Configu ring OSPFv3 to Filter the Received Routes.............................................................................294

    HUAWEI NetEngine80E/40E Router Configuration Guide - IP Routing Contents

    Issue 02 (2011-09-10) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    xii

  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    14/833

    6.7.4 Configuring OSPFv3 to Import External Routes..................................................................................295

    6.7.5 Checking the Configuration...................................................................................................................296

    6.8 Optimizing an OSPFv3 Network....................................................................................................................296

    6.8.1 Establishing the Configuration Task.....................................................................................................297

    6.8.2 Configuring the SPF Timer...................................................................................................................297

    6.8.3 Setting t he Interval for Receiving LSAs................................................................................................298

    6.8.4 Configu ring an Intelligent Timer for Generating LSAs........................................................................299

    6.8.5 Supp ressing an Interface from Sending and Receiving OSPFv3 Packets.............................................300

    6.8.6 Configu ring DR Priority of an Interface................................................................................................300

    6.8.7 Conf iguring Stub Routers......................................................................................................................301

    6.8.8 Ignoring MTU Check on DD Packets...................................................................................................302

    6.8.9 Checkin g the Configuration...................................................................................................................302

    6.9 Configuration OSPFv3 GR.............................................................................................................................303

    6.9.1 Establis hing the Configuration Task.....................................................................................................3036.9.2 Enab ling OSPFv3 GR............................................................................................................................303

    6.9.3 Enablin g the Helper of OSPFv3 GR......................................................................................................304

    6.9.4 Check th e Configuration........................................................................................................................305

    6.10 Configuring BFD for OSPFv3......................................................................................................................305

    6.10.1 Establi shing the Configuration Task...................................................................................................305

    6.10.2 Enabli ng BFD for OSPFv3..................................................................................................................306

    6.10.3 Config uring OSPFv3 BFD Parameters at Process Level....................................................................307

    6.10.4 Enabli ng OSPFv3 BFD at Interface Level..........................................................................................307

    6.10.5 Co nfiguring OSPFv3 BFD Parameters at Interface Level..................................................................3086.10.6 Checki ng the Configuration.................................................................................................................308

    6.11 Configuring OSPFv3 IPSec..........................................................................................................................308

    6.11.1 Establi shing the Configuration Task...................................................................................................309

    6.11.2 Enabli ng IPSec in an OSPFv3 Process................................................................................................309

    6.11.3 Enabli ng IPSec in an OSPFv3 Area....................................................................................................310

    6.11.4 Enabli ng IPSec on an Interface...........................................................................................................311

    6.11.5 Ena bling IPSec on the Virtual Link.....................................................................................................311

    6.11.6 Enabli ng IPSec on the Sham Link.......................................................................................................312

    6.11.7 Checki ng the Configuration.................................................................................................................312

    6.12 Configuring the Network Management Function of OSPFv3......................................................................315

    6.12.1 Establi shing the Configuration Task...................................................................................................315

    6.12.2 Co nfiguring OSPFv3 MIB Binding.....................................................................................................315

    6.12.3 Config uring OSPFv3 Trap...................................................................................................................316

    6.12.4 Check the Configuration......................................................................................................................316

    6.13 Maintaining OSPFv3....................................................................................................................................316

    6.13.1 Resetti ng OSPFv3................................................................................................................................316

    6.14 Configuratio n Examples...............................................................................................................................317

    6.14.1 Examp le for Configuring OSPFv3 Areas............................................................................................317

    6.14.2 Examp le for Configuring OSPFv3 DR Election.................................................................................322

    HUAWEI NetEngine80E/40E Router Configuration Guide - IP Routing Contents

    Issue 02 (2011-09-10) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    xiii

  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    15/833

    6.14.3 Example for Configuring OSPFv3 Virtual Links................................................................................326

    6.14.4 Example for Configuring OSPFv3 GR................................................................................................330

    6.14.5 Example for Configuring BFD for OSPFv3........................................................................................333

    7 IS-IS Configuration...................................................................................................................3397.1 Introduction to IS-IS.......................................................................................................................................341

    7.1.1 Basic C oncepts of IS-IS.........................................................................................................................341

    7.1.2 IS-IS Features Supported by the NE80E/40E........................................................................................342

    7.2 Configuring B asic IS-IS Functions.................................................................................................................348

    7.2.1 Establis hing the Configuration Task.....................................................................................................348

    7.2.2 Starting an IS-IS Process.......................................................................................................................349

    7.2.3 Configu ring an NET..............................................................................................................................349

    7.2.4 Configu ring the Level of a router..........................................................................................................350

    7.2.5 Enablin g IS-IS on a Specified Interface................................................................................................350

    7.2.6 Chec king the Configuration...................................................................................................................351

    7.3 Establishing o r Maintaining IS-IS Neighbor Relationships or Adjacencies..................................................352

    7.3.1 Establis hing the Configuration Task.....................................................................................................352

    7.3.2 Configu ring IS-IS Timers for Packets...................................................................................................353

    7.3.3 Configu ring LSP Parameters.................................................................................................................355

    7.3.4 Checkin g the Configuration...................................................................................................................358

    7.4 Configuri ng IS-IS Attributes in Different Types of Networks.......................................................................359

    7.4.1 Establis hing the Configuration Task.....................................................................................................359

    7.4.2 Configu ring the Network Type of IS-IS Interface.................................................................................360

    7.4.3 Configu ring the DIS Priority of an Interface.........................................................................................3607.4.4 Configu ring the Negotiation Model on a P2P Link...............................................................................361

    7.4.5 Configu ring OSICP Check on PPP Interfaces.......................................................................................362

    7.4.6 Configu ring IS-IS Not to Check the IP Address in a Received Hello Packet.......................................363

    7.4.7 Checkin g the Configuration...................................................................................................................364

    7.5 Configuri ng IS-IS Route Attributes................................................................................................................364

    7.5.1 Establis hing the Configuration Task.....................................................................................................364

    7.5.2 Configu ring the Cost of an IS-IS Interface............................................................................................365

    7.5.3 Configu ring the Preference of IS-IS......................................................................................................368

    7.5.4 Configu ring IS-IS Load Balancing........................................................................................................3707.5.5 Chec king the Configuration...................................................................................................................371

    7.6 Controlling th e Advertisement of IS-IS Routes.............................................................................................372

    7.6.1 Establis hing the Configuration Task.....................................................................................................372

    7.6.2 Configu ring IS-IS Route Aggregation...................................................................................................373

    7.6.3 Configu ring IS-IS to Generate Default Routes......................................................................................373

    7.6.4 Controll ing the Route Leaking from a Level-2 Area to a Level-1 Area...............................................374

    7.6.5 Controll ing the Route Leaking from a Level-1 Area to a Level-2 Area...............................................374

    7.6.6 Chec king the Configuration...................................................................................................................375

    7.7 Controlling th e Receiving of IS-IS Routes.....................................................................................................376

    7.7.1 Establis hing the Configuration Task.....................................................................................................376

    HUAWEI NetEngine80E/40E Router Configuration Guide - IP Routing Contents

    Issue 02 (2011-09-10) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    xiv

  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    16/833

    7.7.2 Configuring IS-IS to Filter the Received Routes...................................................................................376

    7.7.3 Configuring IS-IS to Import External Routes........................................................................................377

    7.7.4 Checking the Configuration...................................................................................................................378

    7.8 Adjusting and Optimizing an IS-IS Network.................................................................................................379

    7.8.1 Establishing the Configuration Task.....................................................................................................379

    7.8.2 Configu ring the Level of an IS-IS Interface..........................................................................................379

    7.8.3 Setting t he Status of IS-IS Interface to Suppressed...............................................................................380

    7.8.4 Conf iguring SPF Parameters.................................................................................................................381

    7.8.5 Configu ring LSP Fast Flooding.............................................................................................................382

    7.8.6 Configu ring IS-IS Dynamic Hostname Mapping..................................................................................382

    7.8.7 Configu ring the LSDB Overload Bit.....................................................................................................384

    7.8.8 Configu ring the Output of the Adjacency Status...................................................................................385

    7.8.9 Chec king the Configuration...................................................................................................................385

    7.9 Configuring L ocal MT....................................................................................................................................3867.9.1 Establis hing the Configuration Task.....................................................................................................386

    7.9.2 Enablin g Local MT................................................................................................................................387

    7.9.3 Controll ing the Scale of the MIGP Routing Table................................................................................388

    7.9.4 Chec king the Configuration...................................................................................................................388

    7.10 Configuring IS-IS IPv6.................................................................................................................................389

    7.10.1 Establi shing the Configuration Task...................................................................................................389

    7.10.2 Enabli ng IPv6 on an IS-IS Process......................................................................................................390

    7.10.3 Ena bling IPv6 on an IS-IS Interface....................................................................................................390

    7.10.4 Config uring the IPv6 Route Cost on an Interface...............................................................................3917.10.5 Config uring the Attributes of IS-IS IPv6 Routes................................................................................391

    7.10.6 Checki ng the Configuration.................................................................................................................395

    7.11 Configuring IS-IS Auto FRR........................................................................................................................396

    7.11.1 Establi shing the Configuration Task...................................................................................................396

    7.11.2 Enabli ng IS-IS Auto FRR....................................................................................................................397

    7.11.3 Ch ecking the Configuration.................................................................................................................398

    7.12 Configuring IPv6 IS-IS Auto FRR...............................................................................................................399

    7.12.1 Establi shing the Configuration Task...................................................................................................399

    7.12.2 Enabli ng IPv6 IS-IS Auto FRR...........................................................................................................401

    7.12.3 (Optio nal) Disabling an Interface from Participating in LFA Calculation..........................................402

    7.12.4 Ch ecking the Configuration.................................................................................................................402

    7.13 Configuring IS-IS GR...................................................................................................................................404

    7.13.1 Establi shing the Configuration Task...................................................................................................404

    7.13.2 Enabli ng IS-IS GR...............................................................................................................................405

    7.13.3 Config uring Parameters of an IS-IS GR Session.................................................................................406

    7.13.4 Checki ng the Configuration.................................................................................................................406

    7.14 Configuring Static BFD for IS-IS.................................................................................................................407

    7.14.1 Establi shing the Configuration Task...................................................................................................407

    7.14.2 Config uring BFD One-hop Detection.................................................................................................408

    HUAWEI NetEngine80E/40E Router Configuration Guide - IP Routing Contents

    Issue 02 (2011-09-10) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    xv

  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    17/833

    7.14.3 Enabling IS-IS Fast Detection.............................................................................................................409

    7.14.4 Checking the Configuration.................................................................................................................410

    7.15 Configuring Dynamic BFD for IS-IS...........................................................................................................411

    7.15.1 Establishing the Configuration Task...................................................................................................411

    7.15.2 Configuring Global BFD.....................................................................................................................412

    7.15.3 Config uring Dynamic BFD for an IS-IS Process................................................................................412

    7.15.4 (Optio nal) Preventing an Interface from Dynamically Setting Up a BFD Session.............................413

    7.15.5 Config uring BFD for a Specified Interface.........................................................................................413

    7.15.6 Checki ng the Configuration.................................................................................................................414

    7.16 Configuring Dynamic IPv6 BFD for IS-IS...................................................................................................415

    7.16.1 Est ablishing the Configuration Task...................................................................................................415

    7.16.2 Enable Global BFD.............................................................................................................................418

    7.16.3 Config uring IPv6 BFD for IS-IS.........................................................................................................418

    7.16.4 Ch ecking the Configuration.................................................................................................................4197.17 Improving S ecurity of an IS-IS Network.....................................................................................................420

    7.17.1 Establi shing the Configuration Task...................................................................................................420

    7.17.2 Config uring the Area or Domain Authentication................................................................................421

    7.17.3 Config uring the Interface Authentication............................................................................................422

    7.17.4 Checki ng the Configuration.................................................................................................................423

    7.18 Configuring IS-IS Multi-Topology (IPv4)...................................................................................................424

    7.18.1 Est ablishing the Configuration Task...................................................................................................424

    7.18.2 Enabli ng IS-IS Multi-Topology (IPv4)...............................................................................................425

    7.18.3 (Optio nal) Setting IS-IS Parameters in IPv4 Topology Instances.......................................................4267.18.4 Enabli ng IS-IS Multi-Topology on a Specified Interface....................................................................427

    7.18.5 (Optio nal) Setting IS-IS Interface Parameters in IPv4 Topology Instances........................................427

    7.18.6 Checki ng the Configuration.................................................................................................................428

    7.19 Configuring IS-IS Multi-Topology (IPv6)...................................................................................................430

    7.19.1 Est ablishing the Configuration Task...................................................................................................430

    7.19.2 Enabli ng IS-IS Multi-Topology (IPv6)...............................................................................................431

    7.19.3 (Optio nal) Setting IS-IS Parameters in IPv6 Topology Instances.......................................................431

    7.19.4 Enabli ng IS-IS Multi-Topology on a Specified Interface....................................................................433

    7.19.5 (Optio nal) Setting IS-IS Interface Parameters in IPv6 Topology Instances........................................433

    7.19.6 Ch ecking the Configuration.................................................................................................................434

    7.20 Maintaining IS-IS.........................................................................................................................................435

    7.20.1 Resetti ng IS-IS Data Structure............................................................................................................435

    7.20.2 Resetti ng a Specific IS-IS Neighbor....................................................................................................436

    7.21 Configuratio n Examples...............................................................................................................................436

    7.21.1 Exa mple for Configuring Basic IS-IS Functions.................................................................................437

    7.21.2 Examp le for Configuring IS-IS in an NBMA Network......................................................................441

    7.21.3 Examp le for Configuring Route Aggregation.....................................................................................445

    7.21.4 Examp le for Configuring the DIS Election of IS-IS...........................................................................448

    7.21.5 Examp le for Configuring IS-IS Load Balancing.................................................................................453

    HUAWEI NetEngine80E/40E Router Configuration Guide - IP Routing Contents

    Issue 02 (2011-09-10) Huawei Proprietary and ConfidentialCopyright Huawei Technologies Co., Ltd.

    xvi

  • 8/10/2019 Configuration Guide - IP Routing(V600R003C00_02)

    18/833

    7.21.6 Example for Configuring IS-IS to Interact with BGP.........................................................................457

    7.21.7 Example for Configuring IS-IS MT....................................................................................................461

    7.21.8 Example for Configuring Local MT....................................................................................................467

    7.21.9 Example for Configuring Basic IS-IS IPv6 Functions........................................................................474

    7.21.10 Example for Configuring IS-IS Auto FRR (IP protecting IP)...........................................................479

    7.21.11 Exam ple for Configuring IS-IS Auto FRR (TE protecting IP)........................ ...................... ...........485

    7.21.12 Exam ple for Configuring IS-IS GR...................................................................................................501

    7.21.13 Exam ple for Configuring Static BFD for IS-IS.................................................................................504

    7.21.14 E xample for Configuring Dynamic BFD for IS-IS...........................................................................508

    7.21.15 Exam ple for Configuring Dynamic IPv6 BFD for IS-IS...................................................................513

    8 BGP Configurati on....................................................................................................................5208.1 Introduction o f BGP.......................................................................................................................................522

    8.1.1 BGP Ov erview.......................................................................................................................................522

    8.1.2 BGP Fe atures Supported by the NE80E/40E........................................................................................522

    8.2 Configuring B asic BGP Functions.................................................................................................................528

    8.2.1 Establis hing the Configuration Task.....................................................................................................528

    8.2.2 Start ing a BGP Process..........................................................................................................................529

    8.2.3 Configu ring a BGP Peer........................................................................................................................530

    8.2.4 (Optiona l) Configuring the Local Interface for a BGP Connection......................................................531

    8.2.5 Checkin g the Configuration...................................................................................................................532

    8.3 Configuring B GP Route Attributes................................................................................................................532

    8.3.1 Establis hing the Configuration Task.....................................................................................................532

    8.3.2 Configu ring the BGP Preference...........................................................................................................5338.3.3 Configu ring the BGP Preferred Value for Routing Information...........................................................534

    8.3.4 Configu ring the Default Local_Pref Attribute.......................................................................................535

    8.3.5 Configu ring the MED Attribute............................................................................................................535

    8.3.6 Conf iguring the Next_Hop Attribute.....................................................................................................538

    8.3.7 Configu ring BGP to Advertise the Community Attribute.....................................................................540

    8.3.8 Configu ring the AS-Path Attribute........................................................................................................541

    8.3.9 Checkin g the Configuration...................................................................................................................545

    8.4 Configuring B GP Filters.................................................................................................................................545

    8.4.1 Establis hing the Configuration Task.....................................................................................................5458.4.2 Conf iguring Related Access Lists.........................................................................................................547

    8.4.3 Configu ring Related Routing Policies...................................................................................................549

    8.4.4 Configu ring the Policy for Advertising BGP Routing Information......................................................551

    8.4.5 Conf iguring the Policy for Receiving BGP Routing Information.........................................................553

    8.4.6 Configuring BGP Soft Resetting...........................................................................................................555

    8.4.7 Checkin g the Configuration...................................................................................................................557

    8.5 Controlling th e Advertisement of BGP Routing Information........................................................................557

    8.5.1 Establis hing the Configuration Task.....................................................................................................557

    8.5.2 Configu ring BGP to Advertise Local Rout