H3C s5820x series Configuration manual

Category
Networking
Type
Configuration manual

This manual is also suitable for

H3C S5820X&S5800 Series Ethernet Switches
Layer 3 - IP Routing
Configuration Guide
Hangzhou H3C Technologies Co., Ltd.
http://www.h3c.com
Document Version: 6W103-20100716
Product Version: Release 1110
Copyright © 2009-2010, Hangzhou H3C Technologies Co., Ltd. and its licensors
All Rights Reserved
No part of this manual may be reproduced or transmitted in any form or by any means without prior
written consent of Hangzhou H3C Technologies Co., Ltd.
Trademarks
H3C, , Aolynk, , H
3
Care,
, TOP G, , IRF, NetPilot, Neocean, NeoVTL,
SecPro, SecPoint, SecEngine, SecPath, Comware, Secware, Storware, NQA, VVG, V
2
G, V
n
G, PSPT,
XGbus, N-Bus, TiGem, InnoVision and HUASAN are trademarks of Hangzhou H3C Technologies Co.,
Ltd.
All other trademarks that may be mentioned in this manual are the property of their respective owners.
Notice
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute the warranty of any kind, express or implied.
Preface
The H3C S5800&S5820X documentation set includes 11 configuration guides, which describe the
software features for the S5800&S5820X Series Ethernet Switches and guide you through the software
configuration procedures. These configuration guides also provide configuration examples to help you
apply software features to different network scenarios.
The Layer 3 – IP Routing Configuration Guide describes routing fundamentals and configuration. It
covers the mainstream routing protocols for IPv4 and IPv6 networks, and describes how to use policies
to filter routes and affect routing decisions.
This preface includes:
z Audience
z Document Organization
z Conventions
z About the H3C S5800&S5820X Documentation Set
z Obtaining Documentation
z Documentation Feedback
Audience
This documentation set is intended for:
z Network planners
z Field technical support and servicing engineers
z Network administrators working with the S5800 and S5820X series
Document Organization
The Layer 3 – IP Routing Configuration Guide comprises these parts:
IP Routing Basics
Configuration
Static Routing
Configuration
RIP Configuration OSPF Configuration
IS-IS Configuration BGP Configuration
IPv6 Static Routing
Configuration
RIPng Configuration
OSPFv3 Configuration IPv6 IS-IS Configuration IPv6 BGP Configuration
Route Policy
Configuration
Policy Routing
Configuration
MCE Configuration
Conventions
This section describes the conventions used in this documentation set.
Command conventions
Convention Description
Boldface Bold text represents commands and keywords that you enter literally as shown.
Convention Description
italic
Italic text represents arguments that you replace with actual values.
[ ]
Square brackets enclose syntax choices (keywords or arguments) that are
optional.
{ x | y | ... }
Braces enclose a set of required syntax choices separated by vertical bars,
from which you select one.
[ x | y | ... ]
Square brackets enclose a set of optional syntax choices separated by vertical
bars, from which you select one or none.
{ x | y | ... } *
Asterisk marked braces enclose a set of required syntax choices separated by
vertical bars, from which you select at least one.
[ x | y | ... ] *
Asterisk marked square brackets enclose optional syntax choices separated by
vertical bars, from which you may select multiple choices or none.
&<1-n>
The argument or keyword and argument combination before the ampersand (&)
sign can be entered 1 to n times.
# A line that starts with a pound (#) sign is comments.
GUI conventions
Convention Description
Boldface
Window names, button names, field names, and menu items are in Boldface.
For example, the New User window appears; click OK.
>
Multi-level menus are separated by angle brackets. For example, File > Create
> Folder.
Symbols
Convention Description
Means reader be extremely careful. Improper operation may cause bodily
injury.
Means reader be careful. Improper operation may cause data loss or damage to
equipment.
Means a complementary description.
About the H3C S5800&S5820X Documentation Set
The H3C S5800&S5820X documentation set also includes:
Category Documents Purposes
Marketing brochures Describe product specifications and benefits.
Product description and
specifications
Technology white papers
Provide an in-depth description of software features
and technologies.
Pluggable module
description
PSR150-A [ PSR150-D ]
Power Modules User
Manual
Describes the appearances, features, specifications,
installation, and removal of the pluggable 150W power
modules available for the products.
Category Documents Purposes
PSR300-12A
[ PSR300-12D1 ] Power
Modules User Manual
Describes the appearances, features, specifications,
installation, and removal of the pluggable 300W power
modules available for the products.
PSR750-A [ PSR750-D ]
Power Modules User
Manual
Describes the appearances, features, specifications,
installation, and removal of the pluggable 750W power
modules available for the products.
RPS User Manual
Describes the appearances, features, and
specifications of the RPS units available for the
products.
LSW1FAN and
LSW1BFAN Installation
Manual
Describes the appearances, specifications,
installation, and removal of the pluggable fan modules
available for the products.
LSW148POEM Module
User Manual
Describes the appearance, features, installation, and
removal of the pluggable PoE module available for the
products.
S5820X [ S5800 ] Series
Ethernet Switches
Interface Cards User
Manual
Describes the models, hardware specifications,
installation, and removal of the interface cards
available for the products.
H3C OAP Cards User
Manual
Describes the benefits, features, hardware
specifications, installation, and removal of the OAP
cards available for the products.
H3C Low End Series
Ethernet Switches
Pluggable Modules
Manual
Describes the models, appearances, and
specifications of the pluggable modules available for
the products.
S5800-60C-PWR
Ethernet Switch Hot
Swappable Power
Module Ordering Guide
Guides you through ordering the hot-swappable power
modules available for the S5800-60C-PWR switches
in different cases.
Power configuration
RPS Ordering
Information for H3C
Low-End Ethernet
Switches
Provides the RPS and switch compatibility matrix and
RPS cable specifications.
z S5800 Series
Ethernet Switches
Quick Start
z S5820X Series
Ethernet Switches
Quick Start
z S5800 Series
Ethernet Switches
CE DOC
z S5820X Series
Ethernet Switches
CE DOC
Provides regulatory information and the safety
instructions that must be followed during installation.
Hardware installation
z S5800 Series
Ethernet Switches
Quick Start
z S5820X Series
Ethernet Switches
Quick Start
Guides you through initial installation and setup
procedures to help you quickly set up and use your
device with the minimum configuration.
Category Documents Purposes
z S5800 Series
Ethernet Switches
Installation Manual
z S5820X Series
Ethernet Switches
Installation Manual
Provides a complete guide to hardware installation
and hardware specifications.
Pluggable
SFP[SFP+][XFP]
Transceiver Modules
Installation Guide
Guides you through installing SFP/SFP+/XFP
transceiver modules.
z S5800-60C-PWR
Switch Video
Installation Guide
z S5820X-28C Switch
Video Installation
Guide
Shows how to install the H3C S5800-60C-PWR and
H3C S5820X-28C Ethernet switches.
Configuration guide
Describe software features and configuration
procedures.
Software configuration
Command reference Provide a quick reference to all available commands.
H3C Series Ethernet
Switches Login
Password Recovery
Manual
Tells how to find the lost password or recover the
password when the login password is lost.
Operations and
maintenance
Release notes
Provide information about the product release,
including the version history, hardware and software
compatibility matrix, version upgrade information,
technical support information, and software upgrading.
Obtaining Documentation
You can access the most up-to-date H3C product documentation on the World Wide Web at
http://www.h3c.com.
Click the links on the top navigation bar to obtain different categories of product documentation:
[Technical Support & Documents > Technical Documents] – Provides hardware installation, software
upgrading, and software feature configuration and maintenance documentation.
[Products & Solutions] – Provides information about products and technologies, as well as solutions.
[Technical Support & Documents > Software Download] – Provides the documentation released with
the software version.
Documentation Feedback
You can e-mail your comments about product documentation to [email protected].
We appreciate your comments.
i
Table of Contents
1 IP Routing Basics Configuration ·············································································································1-1
Routing····················································································································································1-1
Routing Table and FIB Table ··········································································································1-1
Routing Protocol Overview ·····················································································································1-3
Static Routing and Dynamic Routing·······························································································1-3
Classification of Dynamic Routing Protocols···················································································1-3
Routing Protocols and Routing Priority···························································································1-4
Load Balancing and Route Backup·································································································1-5
Route Recursion······························································································································1-6
Sharing of Routing Information········································································································1-6
Configuring a Router ID ··························································································································1-6
Displaying and Maintaining a Routing Table ··························································································1-7
2 Static Routing Configuration····················································································································2-1
Introduction ·············································································································································2-1
Static Route·····································································································································2-1
Default Route···································································································································2-1
Static Route Configuration Items·····································································································2-1
Configuring a Static Route······················································································································2-2
Configuration Prerequisites·············································································································2-2
Configuration Procedure··················································································································2-2
Configuring BFD for Static Routes··········································································································2-3
BFD Control Packet Mode···············································································································2-4
BFD Echo Packet Mode··················································································································2-4
Configuring Static Route FRR·················································································································2-5
Displaying and Maintaining Static Routes·······························································································2-6
Static Route Configuration Example·······································································································2-7
Basic Static Route Configuration Example······················································································2-7
Static Route BFD Configuration Example·······················································································2-9
Static Route FRR Configuration Example·····················································································2-11
3 RIP Configuration······································································································································3-1
RIP Overview··········································································································································3-1
Operation of RIP······························································································································3-1
Operation of RIP······························································································································3-2
RIP Version ·····································································································································3-3
RIP Message Format·······················································································································3-3
Supported RIP Features··················································································································3-5
Protocols and Standards·················································································································3-5
RIP Configuration Task List ····················································································································3-6
Configuring RIP Basic Functions············································································································3-7
Configuration Prerequisites·············································································································3-7
ii
Configuration Procedure··················································································································3-7
Configuring RIP Route Control ···············································································································3-9
Configuring an Additional Routing Metric······················································································3-10
Configuring RIPv2 Route Summarization······················································································3-10
Disabling Host Route Reception ···································································································3-11
Advertising a Default Route···········································································································3-12
Configuring Inbound/Outbound Route Filtering·············································································3-13
Configuring a Preference for RIP··································································································3-14
Configuring RIP Route Redistribution ···························································································3-14
Configuring RIP Network Optimization ·································································································3-15
Configuring RIP Timers·················································································································3-15
Configuring Split Horizon and Poison Reverse·············································································3-15
Configuring the Maximum Number of Load Balanced Routes······················································3-16
Enabling Zero Field Check on Incoming RIPv1 Messages···························································3-16
Enabling Source IP Address Check on Incoming RIP Updates····················································3-17
Configuring RIPv2 Message Authentication··················································································3-17
Specifying a RIP Neighbor············································································································3-18
Configuring RIP-to-MIB Binding····································································································3-19
Configuring the RIP Packet Sending Rate····················································································3-19
Configuring RIP FRR ····························································································································3-19
Configuring BFD for RIP·······················································································································3-20
Single-Hop Detection in BFD Echo Packet Mode·········································································3-21
Bidirectional Detection in BFD Control Packet Mode····································································3-21
Displaying and Maintaining RIP············································································································3-22
RIP Configuration Examples·················································································································3-22
Configuring RIP Version················································································································3-22
Configuring RIP Route Redistribution ···························································································3-24
Configuring an Additional Metric for a RIP Interface·····································································3-26
Configuring RIP to Advertise a Summary Route···········································································3-28
RIP FRR Configuration Example···································································································3-30
Configuring BFD for RIP (Single-Hop Detection in BFD Echo Packet Mode)·······························3-31
Configuring BFD for RIP (Bidirectional Detection in BFD Control Packet Mode)·························3-34
Troubleshooting RIP ·····························································································································3-38
No RIP Updates Received ············································································································3-38
Route Oscillation Occurred ···········································································································3-38
4 OSPF Configuration ··································································································································4-1
Introduction to OSPF·······························································································································4-1
Basic Concepts································································································································4-2
OSPF Area Partition························································································································4-3
Router Types···································································································································4-7
Classification of OSPF Networks ····································································································4-8
DR and BDR····································································································································4-9
OSPF Packet Formats···················································································································4-10
Supported OSPF Features············································································································4-18
Protocols and Standards···············································································································4-19
iii
OSPF Configuration Task List ··············································································································4-19
Enabling OSPF ·····································································································································4-21
Prerequisites··································································································································4-21
Configuration Procedure················································································································4-21
Configuring OSPF Areas ······················································································································4-22
Prerequisites··································································································································4-23
Configuring a Stub Area················································································································4-23
Configuring an NSSA Area············································································································4-24
Configuring a Virtual Link ··············································································································4-24
Configuring OSPF Network Types········································································································4-25
Prerequisites··································································································································4-25
Configuring the OSPF Network Type for an Interface as Broadcast ············································4-26
Configuring the OSPF Network Type for an Interface as NBMA··················································4-26
Configuring the OSPF Network Type for an Interface as P2MP···················································4-27
Configuring the OSPF Network Type for an Interface as P2P······················································4-28
Configuring OSPF Route Control··········································································································4-28
Prerequisites··································································································································4-28
Configuring OSPF Route Summarization······················································································4-28
Configuring OSPF Inbound Route Filtering···················································································4-30
Configuring ABR Type-3 LSA Filtering··························································································4-31
Configuring an OSPF Cost for an Interface···················································································4-31
Configuring the Maximum Number of OSPF Routes····································································4-32
Configuring the Maximum Number of Load-balanced Routes······················································4-32
Configuring a Preference for OSPF ······························································································4-33
Configuring OSPF Route Redistribution························································································4-33
Advertising a Host Route···············································································································4-35
Configuring OSPF Network Optimization······························································································4-35
Prerequisites··································································································································4-35
Configuring OSPF Packet Timers·································································································4-36
Specifying an LSA Transmission Delay ························································································4-37
Specifying SPF Calculation Interval······························································································4-37
Specifying the LSA Minimum Repeat Arrival Interval····································································4-38
Specifying the LSA Generation Interval ························································································4-38
Disabling Interfaces from Sending OSPF Packets········································································4-39
Configuring Stub Routers··············································································································4-40
Configuring OSPF Authentication ·································································································4-40
Adding the Interface MTU into DD Packets···················································································4-41
Configuring the Maximum Number of External LSAs in LSDB ·····················································4-41
Making External Route Selection Rules Defined in RFC 1583 Compatible··································4-42
Logging Neighbor State Changes·································································································4-42
Configuring OSPF Network Management·····················································································4-43
Enabling Message Logging···········································································································4-43
Enabling the Advertisement and Reception of Opaque LSAs ······················································4-44
Configuring OSPF to Give Priority to Receiving and Processing Hello Packets···························4-44
Configuring the LSU Transmit Rate ······························································································4-44
Configuring OSPF FRR ························································································································4-45
iv
Configuring OSPF Graceful Restart······································································································4-46
Configuring the OSPF GR Restarter·····························································································4-47
Configuring the OSPF GR Helper·································································································4-48
Triggering OSPF Graceful Restart································································································4-49
Configuring BFD for OSPF ···················································································································4-49
Configuring Control Packet Bidirectional Detection ······································································4-49
Configuring Echo Packet Single-Hop Detection············································································4-50
Displaying and Maintaining OSPF········································································································4-51
OSPF Configuration Examples·············································································································4-52
Configuring OSPF Basic Functions·······························································································4-52
Configuring OSPF Route Redistribution························································································4-55
Configuring OSPF to Advertise a Summary Route·······································································4-56
Configuring an OSPF Stub Area···································································································4-59
Configuring an OSPF NSSA Area·································································································4-62
Configuring OSPF DR Election·····································································································4-64
Configuring OSPF Virtual Links·····································································································4-68
Configuring OSPF Graceful Restart······························································································4-70
Configuring Route Filtering············································································································4-72
Configuring OSPF FRR·················································································································4-74
Configuring BFD for OSPF············································································································4-76
Troubleshooting OSPF Configuration···································································································4-79
No OSPF Neighbor Relationship Established···············································································4-79
Incorrect Routing Information········································································································4-80
5 IS-IS Configuration····································································································································5-1
IS-IS Overview········································································································································5-1
Basic Concepts································································································································5-2
IS-IS Area········································································································································5-3
IS-IS Network Type ·························································································································5-6
IS-IS PDU Format····························································································································5-7
Supported IS-IS Features··············································································································5-13
Protocols and Standards···············································································································5-16
IS-IS Configuration Task List ················································································································5-16
Configuring IS-IS Basic Functions········································································································5-17
Configuration Prerequisites···········································································································5-17
Enabling IS-IS································································································································5-18
Configuring the IS Level and Circuit Level····················································································5-18
Configuring the Network Type of an Interface as P2P··································································5-19
Configuring IS-IS Routing Information Control ·····················································································5-19
Configuration Prerequisites···········································································································5-19
Configuring IS-IS Link Cost···········································································································5-20
Specifying a Preference for IS-IS··································································································5-21
Configuring the Maximum Number of Equal Cost Routes ····························································5-22
Configuring IS-IS Route Summarization ·······················································································5-22
Advertising a Default Route···········································································································5-23
Configuring IS-IS Route Redistribution ·························································································5-23
v
Configuring IS-IS Route Filtering···································································································5-24
Configuring IS-IS Route Leaking···································································································5-25
Tuning and Optimizing IS-IS Networks·································································································5-25
Configuration Prerequisites···········································································································5-25
Specifying Intervals for Sending IS-IS Hello and CSNP Packets ·················································5-26
Specifying the IS-IS Hello Multiplier······························································································5-26
Configuring a DIS Priority for an Interface·····················································································5-27
Disabling an Interface from Sending/Receiving IS-IS Packets·····················································5-27
Enabling an Interface to Send Small Hello Packets······································································5-28
Configuring LSP Parameters·········································································································5-28
Configuring SPF Parameters ········································································································5-32
Setting the LSDB Overload Bit······································································································5-32
Configuring IS-IS Authentication···········································································································5-33
Configuration Prerequisites···········································································································5-33
Configuring Neighbor Relationship Authentication········································································5-33
Configuring Area Authentication····································································································5-34
Configuring Routing Domain Authentication·················································································5-34
Configuring System ID to Host Name Mappings ··················································································5-35
Configuring a Static System ID to Host Name Mapping ·······························································5-35
Configuring Dynamic System ID to Host Name Mapping ·····························································5-35
Configuring IS-IS GR ····························································································································5-36
Configuring IS-IS FRR ··························································································································5-37
Enabling the Logging of Neighbor State Changes················································································5-38
Enabling IS-IS SNMP Trap···················································································································5-39
Binding an IS-IS Process with MIBs ·····································································································5-39
Configuring BFD for IS-IS·····················································································································5-39
Displaying and Maintaining IS-IS··········································································································5-40
IS-IS Configuration Example·················································································································5-41
IS-IS Basic Configuration ··············································································································5-41
DIS Election Configuration············································································································5-45
Configuring IS-IS Route Redistribution ·························································································5-49
IS-IS Graceful Restart Configuration Example··············································································5-53
IS-IS FRR Configuration Example·································································································5-54
IS-IS Authentication Configuration Example·················································································5-56
Configuring BFD for IS-IS··············································································································5-59
6 BGP Configuration ····································································································································6-1
BGP Overview·········································································································································6-1
Formats of BGP Messages ·············································································································6-2
BGP Path Attributes ························································································································6-5
BGP Route Selection·······················································································································6-9
iBGP and IGP Synchronization·····································································································6-11
Settlements for Problems in Large Scale BGP Networks·····························································6-11
BGP GR·········································································································································6-15
MP-BGP ········································································································································6-15
Protocols and Standards···············································································································6-16
vi
BGP Configuration Task List·················································································································6-17
Configuring BGP Basic Functions·········································································································6-18
Prerequisites··································································································································6-18
Creating a BGP Connection··········································································································6-18
Specifying the Source Interface for TCP Connections··································································6-19
Allowing Establishment of eBGP Connection to a Non Directly Connected Peer/Peer Group·····6-20
Controlling Route Generation ···············································································································6-21
Prerequisites··································································································································6-21
Injecting a Local Network ··············································································································6-21
Configuring BGP Route Redistribution··························································································6-21
Enabling Default Route Redistribution into BGP···········································································6-22
Controlling Route Distribution and Reception·······················································································6-22
Prerequisites··································································································································6-22
Configuring BGP Route Summarization························································································6-23
Advertising a Default Route to a Peer or Peer Group···································································6-23
Configuring BGP Route Distribution/Reception Filtering Policies·················································6-24
Enabling BGP and IGP Route Synchronization············································································6-25
Limiting Prefixes Received from a Peer/Peer Group ····································································6-26
Configuring BGP Route Dampening ·····························································································6-27
Configuring a Shortcut Route········································································································6-27
Configuring BGP Route Attributes········································································································6-27
Prerequisites··································································································································6-27
Specifying a Preferred Value for Routes Received·······································································6-27
Configuring Preferences for BGP Routes ·····················································································6-28
Configure the Default Local Preference························································································6-28
Configuring the MED Attribute·······································································································6-29
Configuring the Next Hop Attribute································································································6-31
Configuring the AS-PATH Attribute·······························································································6-32
Tuning and Optimizing BGP Networks ·································································································6-34
Prerequisites··································································································································6-34
Configuring BGP Keepalive Interval and Holdtime ·······································································6-34
Configuring the Interval for Sending the Same Update·································································6-35
Configuring BGP Soft-Reset ·········································································································6-36
Enabling the BGP ORF Capability ································································································6-37
Enabling Quick eBGP Session Reestablishment··········································································6-38
Enabling MD5 Authentication for TCP Connections ·····································································6-38
Configuring BGP Load Balancing··································································································6-39
Forbiding Session Establishment with a Peer or Peer Group·······················································6-39
Configuring a Large Scale BGP Network······························································································6-39
Configuration Prerequisites···········································································································6-40
Configuring BGP Peer Groups······································································································6-40
Configuring BGP Community········································································································6-42
Configuring a BGP Route Reflector ······························································································6-43
Configuring a BGP Confederation·································································································6-44
Configuring BGP GR·····························································································································6-45
Enabling Trap········································································································································6-46
vii
Enabling Logging of Peer State Changes·····························································································6-46
Configuring BFD for BGP······················································································································6-46
Displaying and Maintaining BGP ··········································································································6-47
Displaying BGP ·····························································································································6-47
Resetting BGP Connections··········································································································6-48
Clearing BGP Information ·············································································································6-49
BGP Configuration Examples···············································································································6-49
BGP Basic Configuration···············································································································6-49
BGP and IGP Synchronization Configuration ···············································································6-52
BGP Load Balancing Configuration·······························································································6-55
BGP Community Configuration·····································································································6-57
BGP Route Reflector Configuration ······························································································6-59
BGP Confederation Configuration·································································································6-61
BGP Path Selection Configuration································································································6-65
Configuring BFD for BGP··············································································································6-68
BGP GR Configuration··················································································································6-72
Troubleshooting BGP····························································································································6-73
No BGP Peer Relationship Established························································································6-73
7 IPv6 Static Routing Configuration···········································································································7-1
Introduction to IPv6 Static Routing··········································································································7-1
Features of IPv6 Static Routes········································································································7-1
Default IPv6 Route ··························································································································7-1
Configuring IPv6 Static Routes···············································································································7-1
Configuration prerequisites ·············································································································7-1
Configuration procedure··················································································································7-2
Displaying and Maintaining IPv6 Static Routes······················································································7-2
IPv6 Static Routing Configuration Example····························································································7-3
8 RIPng Configuration··································································································································8-1
Introduction to RIPng ······························································································································8-1
RIPng Working Mechanism·············································································································8-1
RIPng Packet Format······················································································································8-2
RIPng Packet Processing Procedure······························································································8-3
Protocols and Standards·················································································································8-3
Configuring RIPng Basic Functions········································································································8-3
Configuration Prerequisites·············································································································8-4
Configuration Procedure··················································································································8-4
Configuring RIPng Route Control ···········································································································8-4
Configuring an Additional Routing Metric························································································8-5
Configuring RIPng Route Summarization ·······················································································8-5
Advertising a Default Route·············································································································8-5
Configuring a RIPng Route Filtering Policy·····················································································8-6
Configuring a Preference for RIPng································································································8-6
Configuring RIPng Route Redistribution ·························································································8-7
Tuning and Optimizing the RIPng Network·····························································································8-7
Configuring RIPng Timers···············································································································8-7
viii
Configuring Split Horizon and Poison Reverse···············································································8-8
Configuring Zero Field Check on RIPng Packets············································································8-9
Configuring the Maximum Number of Equal Cost Routes for Load Balancing·······························8-9
Displaying and Maintaining RIPng········································································································8-10
RIPng Configuration Example···············································································································8-10
Configure RIPng Basic Functions ·································································································8-10
Configuring RIPng Route Redistribution ·······················································································8-13
9 OSPFv3 Configuration ······························································································································9-1
Introduction to OSPFv3···························································································································9-1
OSPFv3 Overview···························································································································9-1
OSPFv3 Packets·····························································································································9-2
OSPFv3 LSA Types ························································································································9-2
Timers of OSPFv3···························································································································9-3
OSPFv3 Features Supported··········································································································9-3
Protocols and Standards·················································································································9-4
IPv6 OSPFv3 Configuration Task List ····································································································9-4
Enabling OSPFv3····································································································································9-5
Prerequisites····································································································································9-5
Enabling OSPFv3····························································································································9-5
Configuring OSPFv3 Area Parameters···································································································9-5
Prerequisites····································································································································9-6
Configuring an OSPFv3 Stub Area ·································································································9-6
Configuring an OSPFv3 Virtual Link································································································9-6
Configuring OSPFv3 Network Types······································································································9-7
Prerequisites····································································································································9-7
Configuring the OSPFv3 Network Type for an Interface·································································9-7
Configuring an NBMA or P2MP Neighbor·······················································································9-8
Configuring OSPFv3 Routing Information Control··················································································9-8
Prerequisites····································································································································9-8
Configuring OSPFv3 Route Summarization····················································································9-8
Configuring OSPFv3 Inbound Route Filtering·················································································9-9
Configuring an OSPFv3 Cost for an Interface·················································································9-9
Configuring the Maximum Number of OSPFv3 Load-balanced Routes ·······································9-10
Configuring a Preference for OSPFv3···························································································9-11
Configuring OSPFv3 Route Redistribution····················································································9-11
Tuning and Optimizing OSPFv3 Networks ···························································································9-12
Prerequisites··································································································································9-12
Configuring OSPFv3 Timers ·········································································································9-12
Configuring a DR Priority for an Interface ·····················································································9-13
Ignoring MTU Check for DD Packets····························································································9-14
Disable Interfaces from Sending OSPFv3 Packets·······································································9-14
Enable the Logging of Neighbor State Changes···········································································9-15
Configuring OSPFv3 GR·······················································································································9-15
Configuring GR Restarter··············································································································9-15
Configuring GR Helper··················································································································9-16
ix
Displaying and Maintaining OSPFv3 ····································································································9-16
OSPFv3 Configuration Examples·········································································································9-17
Configuring OSPFv3 Areas···········································································································9-17
Configuring OSPFv3 DR Election ·································································································9-21
Configuring OSPFv3 Route Redistribution····················································································9-24
Configuring OSPFv3 GR···············································································································9-26
Troubleshooting OSPFv3 Configuration·······························································································9-28
No OSPFv3 Neighbor Relationship Established···········································································9-28
Incorrect Routing Information········································································································9-28
10 IPv6 IS-IS Configuration························································································································10-1
Introduction to IPv6 IS-IS······················································································································10-1
Configuring IPv6 IS-IS Basic Functions································································································10-2
Configuration Prerequisites···········································································································10-2
Configuration Procedure················································································································10-2
Configuring IPv6 IS-IS Routing Information Control·············································································10-2
Configuration Prerequisites···········································································································10-2
Configuration Procedure················································································································10-3
Displaying and Maintaining IPv6 IS-IS··································································································10-4
IPv6 IS-IS Configuration Example ········································································································10-5
11 IPv6 BGP Configuration························································································································11-1
IPv6 BGP Overview ······························································································································11-1
Configuration Task List ·························································································································11-2
Configuring IPv6 BGP Basic Functions ································································································11-3
Prerequisites··································································································································11-3
Specifying an IPv6 BGP Peer ·······································································································11-3
Injecting a Local IPv6 Route··········································································································11-4
Configuring a Preferred Value for Routes from a Peer/Peer Group ·············································11-4
Specifying the Source Interface for Establishing TCP Connections ·············································11-5
Allowing the Establishment of a Non-Direct eBGP connection·····················································11-5
Configuring a Description for an IPv6 Peer/Peer Group·······························································11-6
Disabling Session Establishment to an IPv6 Peer/Peer Group ····················································11-6
Logging IPv6 Peer/Peer Group State Changes············································································11-6
Controlling Route Distribution and Reception·······················································································11-7
Prerequisites··································································································································11-7
Configuring IPv6 BGP Route Redistribution ·················································································11-7
Configuring IPv6 BGP Route Summarization ···············································································11-8
Advertising a Default Route to an IPv6 Peer/Peer Group·····························································11-8
Configuring Outbound Route Filtering···························································································11-9
Configuring Inbound Route Filtering····························································································11-10
Configuring IPv6 BGP and IGP Route Synchronization······························································11-11
Configuring Route Dampening····································································································11-11
Configuring IPv6 BGP Route Attributes······························································································11-12
Prerequisites································································································································11-12
Configuring IPv6 BGP Preference and Default LOCAL_PREF and NEXT_HOP Attributes·······11-12
Configuring the MED Attribute·····································································································11-13
x
Configuring the AS_PATH Attribute····························································································11-13
Tuning and Optimizing IPv6 BGP Networks·······················································································11-14
Prerequisites································································································································11-15
Configuring IPv6 BGP Timers·····································································································11-15
Configuring IPv6 BGP Soft Reset ·······························································································11-15
Enabling the IPv6 BGP ORF Capability······················································································11-16
Configuring the Maximum Number of Load-Balanced Routes····················································11-17
Configuring a Large Scale IPv6 BGP Network ···················································································11-18
Prerequisites································································································································11-18
Configuring IPv6 BGP Peer Group······························································································11-18
Configuring IPv6 BGP Community······························································································11-20
Configuring an IPv6 BGP Route Reflector··················································································11-21
Displaying and Maintaining IPv6 BGP································································································11-22
Displaying BGP ···························································································································11-22
Resetting IPv6 BGP Connections ·······························································································11-23
Clearing IPv6 BGP Information···································································································11-23
IPv6 BGP Configuration Examples·····································································································11-24
IPv6 BGP Basic Configuration ····································································································11-24
IPv6 BGP Route Reflector Configuration····················································································11-26
Troubleshooting IPv6 BGP Configuration···························································································11-27
No IPv6 BGP Peer Relationship Established··············································································11-27
12 Route Policy Configuration··················································································································12-1
Introduction to Route Policy··················································································································12-1
Introduction to Route Policy··················································································································12-1
Route Policy Application················································································································12-1
Route Policy Implementation·········································································································12-1
Filters·············································································································································12-2
Route Policy Application················································································································12-3
Route Policy Configuration Task List····································································································12-3
Defining Filters······································································································································12-3
Prerequisites··································································································································12-3
Defining an IP-prefix List ···············································································································12-3
Defining an AS Path List ···············································································································12-5
Defining a Community List ············································································································12-5
Defining an Extended Community List··························································································12-6
Configuring a Route Policy ···················································································································12-6
Prerequisites··································································································································12-6
Creating a Route Policy·················································································································12-6
Defining if-match Clauses··············································································································12-7
Defining apply Clauses··················································································································12-9
Displaying and Maintaining the Route Policy······················································································12-11
Route Policy Configuration Examples·································································································12-11
Applying a Route Policy to IPv4 Route Redistribution ································································12-11
Applying a Route Policy to IPv6 Route Redistribution ································································12-14
Applying a Route Policy to Filter Received BGP Routes····························································12-16
xi
Troubleshooting Route Policy Configuration ······················································································12-18
IPv4 Routing Information Filtering Failure···················································································12-18
IPv6 Routing Information Filtering Failure···················································································12-18
13 Policy Routing Configuration···············································································································13-1
Policy Routing Overview·······················································································································13-1
Configuring Policy Routing····················································································································13-1
Configuring a QoS Policy ··············································································································13-1
Applying the QoS Policy················································································································13-2
Displaying and Maintaining QoS Policies ·····························································································13-3
Policy Routing Configuration Examples································································································13-4
IPv4 Policy Routing Configuration Example··················································································13-4
IPv6 Policy Routing Configuration Example··················································································13-5
14 MCE Configuration································································································································14-1
MCE Overview······································································································································14-1
Introduction to MPLS L3VPN ········································································································14-1
MPLS L3VPN Concepts················································································································14-2
Multi-VPN-Instance CE··················································································································14-4
How MCE works····························································································································14-5
Using MCE in Tunneling Applications···························································································14-5
Routing Information Exchange for MCE ·······························································································14-6
Route Exchange between an MCE and the Private Network························································14-6
Route Exchange between MCE and PE ·······················································································14-9
Configuring Multi-VPN-Instance CE······································································································14-9
Configuring VPN Instances ···········································································································14-9
Configuring Route Exchange for MCE························································································14-12
Displaying and Maintaining MCE········································································································14-21
Resetting BGP Connections········································································································14-21
Displaying and Maintaining MCE ································································································14-22
MCE Configuration Examples·············································································································14-24
Using OSPF to Redistribute VPN Routes Between an MCE and PE·········································14-24
Using BGP to Redistribute VPN Routes Between an MCE and PE ···········································14-28
Using MCE to Advertise VPN Routes Through Tunnels·····························································14-32
15 Index ·······················································································································································15-1
1-1
1 IP Routing Basics Configuration
This chapter includes these sections:
z Routing
z Routing Protocol Overview
z Configuring a Router ID
z Displaying and Maintaining a Routing Table
The term router in this document refers to both routers and Layer 3 switches.
Routing
Routing in the Internet is achieved through routers. Upon receiving a packet, a router finds an optimal
route based on the destination address and forwards the packet to the next router in the path until the
packet reaches the last router, which forwards the packet to the intended destination host.
Routing provides the path information that guides the forwarding of packets.
Routing Table and FIB Table
Routing tables play a key role in route selection and forwarding information bases (FIBs) play a key
role in packet forwarding. Each router maintains a routing table and a FIB table at least.
Routes in a routing table can be divided into three categories by origin:
z Direct routes: Routes discovered by data link protocols, also known as interface routes.
z Static routes: Routes that are manually configured.
z Dynamic routes: Routes that are discovered dynamically by routing protocols.
Each entry in the FIB table specifies which physical interface a packet destined for a certain
destination should go out to reach the next hop (the next router) or the directly connected destination.
Introduction to routing table
Each router maintains a local routing table. Each routing protocol also maintains a protocol routing
table.
z Routing table of a protocol
A protocol routing table stores routes discovered by the routing protocol.
A routing protocol can redistribute and advertise routes generated by other protocols. For example,
OSPF can redistribute direct routes, static routes, and IS-IS routes to the OSPF routing domain.
z Local routing table
1-2
A local routing table stores the routes found by all protocols and determines the optimal routes that the
router will deliver to the FIB table to guide packet forwarding. The selection of an optimal route is
based on the preferences of routing protocols and metrics of routes.
Contents of a routing table
A routing table includes the following key items:
z Destination address: Destination IP address or destination network.
z Network mask: Specifies, in company with the destination address, the address of the destination
network. A logical AND operation between the destination address and the network mask yields
the address of the destination network. For example, if the destination address is 129.102.8.10
and the mask 255.255.0.0, the address of the destination network is 129.102.0.0. A network mask
is made of a certain number of consecutive 1s. It can be expressed in dotted decimal format or by
the number of the 1s.
z Outbound interface: Specifies the interface through which the IP packets are to be forwarded.
z IP address of the next hop: Specifies the address of the next router on the path. If only the
outbound interface is configured, its address will be the IP address of the next hop.
z Priority for the route. Routes to the same destination but having different nexthops may have
different priorities and be found by various routing protocols or manually configured. The optimal
route is the one with the highest priority (with the smallest metric).
Routes can be divided into two categories by destination:
z Subnet routes: The destination is a subnet.
z Host routes: The destination is a host.
Based on whether the destination is directly connected to a given router, routes can be divided into:
z Direct routes: The destination is directly connected to the router.
z Indirect routes: The destination is not directly connected to the router.
To prevent the routing table from getting too large, you can configure a default route. All packets
without matching any entry in the routing table will be forwarded through the default route.
In
Figure 1-1, the IP address on each cloud represents the address of the network. Router G is
connected to three networks and therefore has three IP addresses for its three physical interfaces. Its
routing table is shown under the network topology.
1-3
Figure 1-1 A sample routing table
Router A
Router B
Router H
Router E
16.0.0.2
17.0.0.3
15.0.0.0
12.0.0.0
17.0.0.0
11.0.0.016.0.0.0
13.0.0.0
14.0.0.0
Router C
Router D
Router F
Router G
11.0.0.1
12.0.0.1
12.0.0.2
15.0.0.1
15.0.0.2
17.0.0.1
16.0.0.1
13.0.0.1
13.0.0.2
14.0.0.1
14.0.0.2
14.0.0.3
14.0.0.4
17.0.0.2
11.0.0.2
13.0.0.3
Destination Network Nexthop Interface
11.0.0.0 11.0.0.1 2
12.0.0.0 12.0.0.1 1
13.0.0.0 12.0.0.2 1
14.0.0.0 14.0.0.4 3
15.0.0.0 14.0.0.2 3
16.0.0.0 14.0.0.2 3
17.0.0.0 11.0.0.2 2
Routing Protocol Overview
Static Routing and Dynamic Routing
Static routing is easy to configure and requires less system resources. It works well in small, stable
networks with simple topologies. Its major drawback is that you must perform routing configuration
again whenever the network topology changes; it cannot adjust to network changes by itself.
Dynamic routing is based on dynamic routing protocols, which can detect network topology changes
and recalculate the routes accordingly. Therefore, dynamic routing is suitable for large networks. Its
disadvantages are that it is difficult to configure, and that it not only imposes higher requirements on
the system, but also consumes a certain amount of network resources.
Classification of Dynamic Routing Protocols
Dynamic routing protocols can be classified based on the following standards:
Operational scope
z Interior gateway protocols (IGPs): Work within an autonomous system, including RIP, OSPF, and
IS-IS.
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410
  • Page 411 411
  • Page 412 412
  • Page 413 413
  • Page 414 414
  • Page 415 415
  • Page 416 416
  • Page 417 417
  • Page 418 418
  • Page 419 419
  • Page 420 420
  • Page 421 421
  • Page 422 422
  • Page 423 423
  • Page 424 424
  • Page 425 425
  • Page 426 426
  • Page 427 427
  • Page 428 428
  • Page 429 429
  • Page 430 430
  • Page 431 431
  • Page 432 432
  • Page 433 433
  • Page 434 434
  • Page 435 435
  • Page 436 436
  • Page 437 437
  • Page 438 438

H3C s5820x series Configuration manual

Category
Networking
Type
Configuration manual
This manual is also suitable for

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI