Operation Manual Routing Protocol. Table of Contents

Similar documents
Operation Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

Table of Contents 1 Static Routing Configuration RIP Configuration 2-1

IP Routing Volume Organization

Table of Contents. 2 Static Route Configuration Commands 2-1 Static Route Configuration Commands 2-1 delete static-routes all 2-1 ip route-static 2-1

Table of Contents 1 OSPF Configuration 1-1

Command Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

Operation Manual OSPF. Table of Contents

OSPF. Unless otherwise noted, OSPF refers to OSPFv2 throughout this document.

Logging neighbor state changes 38 Configuring OSPF network management 39 Enabling message logging 39 Enabling the advertisement and reception of

Configuring OSPF network management 39 Enabling message logging 39 Enabling the advertisement and reception of opaque LSAs 40 Configuring OSPF to

HP Load Balancing Module

HP 5920 & 5900 Switch Series

Configuring basic MBGP

Configuring OSPF. Cisco s OSPF Implementation

RIP Configuration. RIP Overview. Operation of RIP. Introduction. RIP routing table. RIP timers

HP FlexFabric 5700 Switch Series

Configuring BGP community 43 Configuring a BGP route reflector 44 Configuring a BGP confederation 44 Configuring BGP GR 45 Enabling Guard route

HPE FlexNetwork 5510 HI Switch Series

HP 5920 & 5900 Switch Series

Introduction to OSPF

OSPF Commands. Cisco IOS IP Command Reference, Volume 2 of 3: Routing Protocols IP2R-61

Routing Protocol Type Primarily IGP or EGP RIP Distance-Vector IGP EIGRP OSPF IS-IS BGP

Introduction to OSPF

Configuring MSDP. Overview. How MSDP operates. MSDP peers

Unit 3: Dynamic Routing

Configuring MSDP. MSDP overview. How MSDP works. MSDP peers

Configuring OSPF. Finding Feature Information

Configuring OSPF. Finding Feature Information

Table of Contents 1 MBGP Configuration 1-1

Introduction to OSPF

FSOS IPv6 Routing Command Line Reference

HP A5820X & A5800 Switch Series Layer 3 - IP Routing. Configuration Guide. Abstract

FiberstoreOS IP Routing Configuration Guide

Vendor: Alcatel-Lucent. Exam Code: 4A Exam Name: Alcatel-Lucent Interior Routing Protocols and High Availability.

FiberstoreOS V3.3 IPv6 Routing Command Line Reference

FiberstoreOS. IPv6 Routing Command Line Reference

FSOS IP Routing Configuration Guide

Table of Contents 1 MSDP Configuration 1-1

Protecting an EBGP peer when memory usage reaches level 2 threshold 66 Configuring a large-scale BGP network 67 Configuring BGP community 67

FiberstoreOS IP Routing Configuration Guide

Configuring OSPF. Finding Feature Information. Contents

Chapter 8 Configuring OSPF

FSOS IP Routing Command Line Reference

FiberstoreOS IP Routing Command Line Reference

Contents. Configuring MSDP 1

Configuration prerequisites 45 Configuring BGP community 45 Configuring a BGP route reflector 46 Configuring a BGP confederation 46 Configuring BGP

HP A5830 Switch Series Layer 3 - IP Routing. Configuration Guide. Abstract

Operation Manual BGP. Table of Contents

Table of Contents 1 MSDP Configuration 1-1

HP FlexFabric 7900 Switch Series

OSPF Protocol Overview on page 187. OSPF Standards on page 188. OSPF Area Terminology on page 188. OSPF Routing Algorithm on page 190

Introduction to OSPF OSPF. Link State Routing. Link State. Fast Convergence. Low Bandwidth Utilisation

IS-IS basic configuration 37 DIS election configuration 41 Configuring IS-IS route redistribution 45 IS-IS GR configuration example 49 IS-IS FRR

Symbols. Numerics I N D E X

Nortel Ethernet Routing Switch 5000 Series Configuration IP Routing Protocols. Release: 6.1 Document Revision:

OSPF. OSPF processs can be enabled on 2 levels

H3C S5820X&S5800 Series Ethernet Switches

Alcatel-lucent EXAM - 4A Alcatel-Lucent Interior Routing Protocols and High Availability. Buy Full Product.

Routing Protocols. Technology Description BGP CHAPTER

Table of Contents. BGP Configuration 1

H3C S7500E Series Ethernet Switches. Layer 3 - IP Routing. Configuration Guide. Hangzhou H3C Technologies Co., Ltd.

CCNA 3 (v v6.0) Chapter 5 Exam Answers % Full

Operation Manual - Network and Routing Protocol. Table of Contents

Configuring Networking Protocols

Cabrillo College. Rick Graziani, Instructor

Chapter 16 OSPF Version 3 Commands

Vanguard Managed Solutions

HP 6125G & 6125G/XG Blade Switches

HP 7500 Switch Series

Chapter 15 OSPF Commands

Configuring BGP. Cisco s BGP Implementation

Configuring OSPF. Finding Feature Information. Last Updated: June 24, 2011

H3C S10500 Switch Series

OSPF. About OSPF. CLI Book 1: Cisco ASA Series General Operations CLI Configuration Guide, 9.4 1

ABR (Area Border Router), 206, 216 access, dedicated networks, 23 access layer, three-layer hierarchical design model, 6

Teldat Router. OSPF Protocol

IP Routing: OSPF Configuration Guide, Cisco IOS XE Release 3E

Implementing Cisco IP Routing (ROUTE)

Introduction. Keith Barker, CCIE #6783. YouTube - Keith6783.

IPv6 Commands: sn to v

Table of Contents 1 BGP Configuration 1-1

CSCD 433/533 Advanced Networks Spring 2016

IPv6 Routing: OSPFv3

Configuring OSPF with CLI

Link State Routing. Link State Packets. Link State Protocol. Link State Protocols Basic ideas Problems and pitfalls

OSPF Configuration. Page 1 of 12

OSPFv3 Commands. address-family (OSPFv3), page 4. authentication (OSPFv3), page 7

Lab 4: Routing using OSPF

Configuring IP Routing Protocols

Chapter 7 Routing Protocols

Part II. Chapter 3. Determining IP Routes

9.1. Routing Protocols

Explanation: In order to verify proper route redistribution, use the "show ip route" command on all routers

OSPF Commands: A through Z

Passit4Sure.4A Questions 4A Alcatel-Lucent Interior Routing Protocols and High Availability

Chapter 13 Configuring BGP4

CCNP 1: Advanced Routing

Basic IP Routing. Finding Feature Information. Information About Basic IP Routing. Variable-Length Subnet Masks

EECS 122, Lecture 16. Link Costs and Metrics. Traffic-Sensitive Metrics. Traffic-Sensitive Metrics. Static Cost Metrics.

BGP Configuration. BGP Overview. Introduction to BGP. Formats of BGP Messages. Header

Transcription:

Table of Contents Table of Contents Chapter 1 IP Routing Protocol Overview... 1-1 1.1 Introduction to IP Route and Routing Table... 1-1 1.1.1 IP Route... 1-1 1.1.2 Routing Table... 1-1 1.2 Routing Management Policy... 1-3 1.2.1 Routing Protocols and Preferences... 1-3 1.2.2 Traffic Sharing and Route Backup... 1-4 1.2.3 Routes Shared Between Routing Protocols... 1-5 Chapter 2 Static Route Configuration... 2-1 2.1 Introduction to Static Route... 2-1 2.1.1 Static Route... 2-1 2.1.2 Default Route... 2-2 2.2 Static Route Configuration... 2-2 2.2.1 Configuration Prerequisites... 2-2 2.2.2 Configuring a Static Route... 2-2 2.3 Displaying the Routing Table... 2-3 2.4 Static Route Configuration Example... 2-4 2.5 Troubleshooting a Static Route... 2-5 Chapter 3 RIP Configuration... 3-1 3.1 RIP Overview... 3-1 3.1.1 RIP Working Mechanism... 3-1 3.1.2 RIP Initialization and Running Procedure... 3-2 3.2 RIP Configuration Task List... 3-2 3.3 Basic RIP Configuration... 3-3 3.3.1 Configuration Prerequisites... 3-3 3.3.2 Configuring Basic RIP Functions... 3-3 3.4 RIP Route Control... 3-5 3.4.1 Configuration Prerequisites... 3-5 3.4.2 Configuring RIP Route Control... 3-5 3.5 RIP Network Adjustment and Optimization... 3-9 3.5.1 Configuration Prerequisites... 3-9 3.5.2 Configuration Tasks... 3-9 3.6 Displaying and Maintaining RIP Configuration... 3-12 3.7 RIP Configuration Example... 3-12 3.8 Troubleshooting RIP Configuration... 3-14 Chapter 4 OSPF Configuration... 4-1 4.1 OSPF Overview... 4-1 i

Table of Contents 4.1.1 Introduction to OSPF... 4-1 4.1.2 OSPF Route Calculation... 4-1 4.1.3 Basic OSPF Concepts... 4-2 4.1.4 OSPF Network Types... 4-4 4.1.5 OSPF Packets... 4-6 4.1.6 LSA Types... 4-7 4.1.7 OSPF Features... 4-8 4.2 OSPF Configuration Task List... 4-8 4.3 Basic OSPF Configuration... 4-9 4.3.1 Configuration Prerequisites... 4-9 4.3.2 Basic OSPF Configuration... 4-10 4.4 OSPF Area Attribute Configuration... 4-11 4.4.1 Configuration Prerequisites... 4-12 4.4.2 Configuring OSPF Area Attributes... 4-12 4.5 OSPF Network Type Configuration... 4-13 4.5.1 Configuration Prerequisites... 4-13 4.5.2 Configuring the Network Type of an OSPF Interface... 4-13 4.5.3 Setting an NBMA Neighbor... 4-14 4.5.4 Setting the DR Priority on an OSPF Interface... 4-14 4.6 OSPF Route Control... 4-15 4.6.1 Configuration Prerequisites... 4-15 4.6.2 Configuring OSPF Route Summary... 4-15 4.6.3 Configuring OSPF to Filter Received Routes... 4-16 4.6.4 Configuring the Cost for Sending Packets on an OSPF Interface... 4-17 4.6.5 Setting OSPF Route Priority... 4-17 4.6.6 Configuring OSPF to Redistribute Routes... 4-18 4.7 OSPF Network Adjustment and Optimization... 4-19 4.7.1 Configuration Prerequisites... 4-19 4.7.2 Configuring OSPF Timers... 4-19 4.7.3 Configuring the LSA transmission delay... 4-20 4.7.4 Configuring the SPF Calculation Interval... 4-21 4.7.5 Disabling OSPF Packet Transmission on an Interface... 4-21 4.7.6 Configuring OSPF Authentication... 4-22 4.7.7 Configuring to Fill the MTU Field When an Interface Transmits DD Packets... 4-23 4.7.8 Configuring OSPF Network Management System (NMS)... 4-23 4.8 Displaying and Maintaining OSPF Configuration... 4-25 4.9 OSPF Configuration Example... 4-25 4.9.1 Configuring DR Election Based on OSPF Priority... 4-25 4.9.2 Configuring OSPF Virtual Link... 4-28 4.10 Troubleshooting OSPF Configuration... 4-29 Chapter 5 IS-IS Configuration... 5-1 5.1 IS-IS Overview... 5-1 ii

Table of Contents 5.1.1 Basic Concept... 5-1 5.1.2 IS-IS Domain... 5-2 5.1.3 IS-IS Address Structure... 5-4 5.1.4 IS-IS PDU Format... 5-6 5.2 IS-IS Configuration Task List... 5-6 5.3 IS-IS Basic Configuration... 5-8 5.3.1 Enabling IS-IS... 5-8 5.3.2 Configuring a NET... 5-9 5.3.3 Enabling IS-IS on the Specified Interface... 5-9 5.3.4 Configuring DIS Priority... 5-9 5.3.5 Configuring Router Type... 5-10 5.3.6 Configuring the Line Type of an Interface... 5-10 5.3.7 Configuring Route Redistribution... 5-11 5.3.8 Configuring Route Filtering... 5-11 5.3.9 Configuring Route Leaking... 5-12 5.3.10 Configuring Route Summarization... 5-13 5.3.11 Configuring Default Route Generation... 5-13 5.3.12 Configuring Protocol Priority... 5-13 5.3.13 Configuring a Cost Style... 5-14 5.3.14 Configuring Interface Cost... 5-14 5.3.15 Configuring IS-IS Timer... 5-15 5.3.16 Configuring Authentication... 5-17 5.3.17 Adding an Interface to a Mesh Group... 5-18 5.3.18 Configuring Overload Tag... 5-19 5.3.19 Configuring to Discard LSPs with Incorrect Checksum... 5-19 5.3.20 Configuring to Log Peer Changes... 5-20 5.3.21 Assigning an LSP Refresh Time... 5-20 5.3.22 Assigning an LSP Maximum Aging Time... 5-20 5.3.23 Configuring SPF Parameters... 5-21 5.3.24 Enabling/Disabling Packet Transmission Through an Interface... 5-22 5.3.25 Resetting all IS-IS Configuration Data... 5-22 5.3.26 Resetting Configuration Data of an IS-IS Peer... 5-23 5.4 Displaying and Maintaining Integrated IS-IS Configuration... 5-23 5.5 Integrated IS-IS Configuration Example... 5-24 Chapter 6 BGP Configuration... 6-1 6.1 BGP Overview... 6-1 6.1.1 Introduction to BGP... 6-1 6.1.2 BGP Message Type... 6-2 6.1.3 BGP Routing Mechanism... 6-5 6.1.4 BGP Peer and Peer Group... 6-6 6.2 BGP Configuration Task List... 6-6 6.3 Basic BGP Configuration... 6-7 iii

Table of Contents 6.3.1 Configuration Prerequisites... 6-7 6.3.2 Configuring Basic BGP Functions... 6-7 6.4 Configuring the Way to Advertise/Receive Routing Information... 6-9 6.4.1 Configuration Prerequisites... 6-9 6.4.2 Importing Routes... 6-9 6.4.3 Configuring BGP Route Aggregation... 6-10 6.4.4 Enabling Default Route Advertising... 6-11 6.4.5 Configuring the BGP Route Advertising Policy... 6-11 6.4.6 Configuring BGP Route Receiving Policy... 6-12 6.4.7 Configuring BGP-IGP Route Synchronization... 6-13 6.4.8 Configuring BGP Route Dampening... 6-14 6.4.9 Configuring BGP Load Balance... 6-14 6.5 Configuring BGP Route Attributes... 6-15 6.6 Adjusting and Optimizing a BGP Network... 6-17 6.6.1 Configuration Prerequisites... 6-17 6.6.2 Adjusting and Optimizing a BGP Network... 6-18 6.7 Configuring a Large-Scale BGP Network... 6-19 6.7.1 Configuration Prerequisites... 6-19 6.7.2 Configuring a BGP Peer Group... 6-20 6.7.3 Configuring a BGP Community... 6-21 6.7.4 Configuring BGP RR... 6-21 6.7.5 Configuring BGP Confederation... 6-22 6.8 Displaying and Maintaining BGP Configuration... 6-23 6.8.1 Displaying BGP Configuration... 6-23 6.8.2 BGP Connection Reset... 6-24 6.8.3 Clearing BGP Information... 6-25 6.9 BGP Configuration Examples... 6-25 6.9.1 Configuring BGP AS Confederation Attribute... 6-25 6.9.2 Configuring BGP RR... 6-26 6.9.3 Configuring BGP Routing... 6-28 6.10 Troubleshooting BGP Configuration... 6-32 Chapter 7 IP Routing Policy Configuration... 7-1 7.1 IP Routing Policy Overview... 7-1 7.1.1 Filters... 7-1 7.1.2 Applications of Routing Policy... 7-2 7.2 IP Routing Policy Configuration... 7-3 7.2.1 Configuring a Route Policy... 7-3 7.2.2 Define an IP Prefix List... 7-7 7.2.3 Configuring an AS Path List... 7-7 7.2.4 Configuring a Community List... 7-8 7.2.5 Applying a Routing Policy to Import Routes... 7-8 7.2.6 Applying a Routing Policy to Receive or Advertise Routes... 7-9 iv

Table of Contents 7.3 Displaying and Maintaining IP Routing Policy Configuration... 7-9 7.4 IP Routing Policy Configuration Example... 7-9 7.4.1 Filtering Routing Information... 7-9 7.5 Troubleshooting IP Routing Policy... 7-11 Chapter 8 Route Capacity Configuration... 8-1 8.1 Route Capacity Overview... 8-1 8.1.1 Introduction... 8-1 8.1.2 Route Capacity Limitation on the S7500 Series... 8-1 8.2 Route Capacity Configuration... 8-2 8.2.1 Setting the Lower Limit and the Safety Value of the Switch Memory... 8-2 8.2.2 Enabling/Disabling Automatic Protocol Connection Recovery... 8-2 8.3 Displaying and Maintaining Route Capacity Configuration... 8-3 v

Chapter 1 IP Routing Protocol Overview Chapter 1 IP Routing Protocol Overview Go to these sections for information you are interested in: Introduction to IP Route and Routing Table Routing Management Policy Note: When running a routing protocol, the Ethernet switch also functions as a router. The term router in this document refers to a router in a generic sense or an Ethernet switch running routing protocols. 1.1 Introduction to IP Route and Routing Table 1.1.1 IP Route Routers are used for route selection on the Internet. As a router receives a packet, it selects an appropriate route (through a network) according to the destination address of the packet and forwards the packet to the next router. The last router on the route is responsible for delivering the packet to the destination host. 1.1.2 Routing Table The key for a router to forward packets is the routing table. Each router maintains a routing table. Each entry in this table contains an IP address that represents a host/subnet and specifies which physical port on the router should be used to forward the packets destined for the host/subnet. And the router forwards those packets through this port to the next router or directly to the destination host if the host is on a network directly connected to the router. Each entry in a routing table contains: Destination address: It identifies the address of the destination host or network of an IP packet. Network mask: Along with the destination address, it identifies the address of the network segment where the destination host or router resides. By performing logical AND between destination address and network mask, you can get the address of the network segment where the destination host or router resides. For example, if the destination address is 129.102.8.10 and the mask is 255.255.0.0, the address of the network segment where the destination host or router resides 1-1

Chapter 1 IP Routing Protocol Overview is 129.102.0.0. A mask consists of some consecutive 1s, represented either in dotted decimal notation or by the number of the consecutive 1s in the mask. Output interface: It indicates through which interface IP packets should be forwarded to reach the destination. Next hop address: It indicates the next router that IP packets will pass through to reach the destination. Preference of the route added to the IP routing table: There may be multiple routes with different next hops to the same destination. These routes may be discovered by different routing protocols, or be manually configured static routes. The one with the highest preference (the smallest numerical value) will be selected as the current optimal route. According to different destinations, routes fall into the following categories: Subnet route: The destination is a subnet. Host route: The destination is a host. In addition, according to whether the network where the destination resides is directly connected to the router, routes falls into the following categories: Direct route: The router is directly connected to the network where the destination resides. Indirect route: The router is not directly connected to the network where the destination resides. In order to avoid an oversized routing table, you can set a default route. All the packets for which the router fails to find a matching entry in the routing table will be forwarded through this default route. Figure 1-1 shows a relatively complicated internet environment, the number in each network cloud indicate the network address. Router G is connected to three networks, and so it has three IP addresses and three physical ports. Its routing table is shown in Figure 1-1. 1-2

Chapter 1 IP Routing Protocol Overview Router A 11.0.0.1 13.0.0.1 13.0.0.2 13.0.0.0 Router F 16.0.0.1 13.0.0.3 Router D 11.0.0.0 16.0.0.0 14.0.0.2 11.0.0.2 Router B 12.0.0.1 14.0.0.1 14.0.0.3 14.0.0.0 16.0.0.2 Router G 17.0.0.1 14.0.0.4 Router E 12.0.0.0 17.0.0.0 15.0.0.3 12.0.0.2 Router C 15.0.0.1 15.0.0.2 15.0.0.0 17.0.0.2 Router H Destination Network Nexthop Interface 11.0.0.0 14.0.0.1 3 12.0.0.0 14.0.0.1 3 13.0.0.0 16.0.0.1 2 14.0.0.0 14.0.0.3 3 15.0.0.0 17.0.0.2 1 16.0.0.0 16.0.0.2 2 17.0.0.0 17.0.0.1 1 Figure 1-1 Routing table 1.2 Routing Management Policy On an S7500 switch, you can manually configure a static route to a certain destination, or configure a dynamic routing protocol to make the switch interact with other routers in the internetwork and find routes. On an S7500 switch, the static routes configured by the user and the dynamic routes discovered by routing protocols are managed uniformly. The static routes and the routes learned or configured by different routing protocols can also be shared among routing protocols. 1.2.1 Routing Protocols and Preferences Different routing protocols may discover different routes to the same destination, but only one route among these routes and the static routes is optimal. In fact, at any given moment, only one routing protocol can determine the current route to a specific destination. Routing protocols (including static routing) are assigned different preferences. When there are multiple routing information sources, the route discovered by the routing protocol with the highest preference will become the current 1-3

Chapter 1 IP Routing Protocol Overview route. Routing protocols and their default route preferences (the smaller the value is, the higher the preference is) are shown in Table 1-1. In the table, 0 is used for directly connected routes, and 255 is used for routes from untrusted source. Table 1-1 Routing protocols and corresponding route preferences Routing protocol or type Preference of the corresponding route DIRECT 0 OSPF 10 IS-IS 15 STATIC 60 RIP 100 OSPF ASE 150 OSPF NSSA 150 UNKNOWN 255 IBGP 256 EBGP 256 Except for direct routing, you can manually configure the preferences of various dynamic routing protocols as required. In addition, you can configure different preferences for different static routes. 1.2.2 Traffic Sharing and Route Backup I. Traffic sharing The S7500 series support multi-route mode, allowing the configuration of multiple routes that reach the same destination and have the same preference. The same destination can be reached via multiple different routes, whose preferences are equal. When there is no route with a higher preference to the same destination, all these routes will be adopted. Then, the packets destined for that same destination will be forwarded through these routes in turn to implement traffic sharing. II. Route backup The S7500 series support route backup. When the primary route fails, the system automatically switches to a backup route to improve network reliability. To achieve route backup, you can configure multiple routes to the same destination according to actual situation. One of these routes has the highest preference and is called primary route. The other routes have descending preferences and are called 1-4

Chapter 1 IP Routing Protocol Overview backup routes. Normally, the router sends data through the primary route. When line failure occurs on the primary route, the primary route will hide itself and the router will choose the one whose preference is the highest among the remaining backup routes as the path to send data. In this way, the switchover from the primary route to a backup route is implemented. When the primary route recovers, the router will restore it and re-select a route. And, as the primary route has the highest preference, the router will choose the primary route to send data. This process is the automatic switchover from the backup route to the primary route. 1.2.3 Routes Shared Between Routing Protocols As the algorithms of various routing protocols are different, different routing protocols may discover different routes. This brings about the problem of how to share the discovered routes between routing protocols. The S7500 series can import (with the import-route command) the routes discovered by one routing protocol to another routing protocol. Each protocol has its own route redistribution mechanism. For detailed information, refer to the description of importing external routes in routing protocol configuration of the following chapters 1-5

Chapter 2 Static Route Configuration Chapter 2 Static Route Configuration When configuring static routes, go to these sections for information you are interested in: Introduction to Static Route Static Route Configuration Displaying the Routing Table Static Route Configuration Example Troubleshooting a Static Route 2.1 Introduction to Static Route 2.1.1 Static Route Static routes are special routes. They are manually configured by the administrator. By configuring static routes, you can build an interconnecting network. The problem for such configuration is that a static route cannot change automatically to steer away from the fault point without the help of the administrator when a fault occurs on the network. In a relatively simple network, you only need to configure static routes to make routers work normally. Proper configuration and usage of static routes can improve network performance and ensure sufficient bandwidth for important applications. Static routes are divided into three types: Destination reachable route: normal route. If a static route to a destination belongs to this type, the IP packets sent to this destination will be forwarded to the next hop. It is the most common type of static routes. Destination unreachable route: If a static route to a destination has the "reject" attribute, all the IP packets sent to this destination will be discarded, and the source hosts will be informed of the unreachability of the destination. Blackhole route: If a static route to a destination has the blackhole attribute, the outgoing interface of this route is the Null 0 interface regardless of the next hop address, and all the IP packets sent to this destination will be dropped without notifying the source hosts. The attributes "reject" and "blackhole" are usually used to limit the range of the destinations that this router can reach, and help troubleshoot the network. 2-1

Chapter 2 Static Route Configuration 2.1.2 Default Route A default route is a special route. You can manually configure a static route as the default route. Some dynamic routing protocols, such as OSPF and IS-IS, can automatically generate a default route. A default route is a route used only when no matching entry is found in the routing table. That is, the default route is used only when there is no proper route. In a routing table, both the destination IP address and mask of the default route are 0.0.0.0. You can use the display ip routing-table command to view whether the default route has been set. If the destination address of a packet does not match any entry in the routing table, the router will select the default route for the packet; in this case, if there is no default route, the packet will be discarded, and an Internet control message protocol (ICMP) packet will be returned to inform the source host that the destination host or network is unreachable. 2.2 Static Route Configuration 2.2.1 Configuration Prerequisites Before configuring a static route, perform the following tasks: Configuring the physical parameters of the related interface Configuring the link layer attributes of the related interface Configuring an IP address for the related interface 2.2.2 Configuring a Static Route Follow these steps to configure a static route: Add a static route Delete all static routes Configure the default preference for static routes ip route-static ip-address { mask mask-length } { interface-type interface-number next-hop } [ preference value ] [ reject blackhole ] delete static-routes all ip route-static default-preference default-preference-value By default, the system can obtain the route to the subnet directly connected to the router. This command can delete all static routes, including the default route. By default, the preference value is 60. 2-2

Chapter 2 Static Route Configuration Note: If the destination IP address and the mask of a route are both 0.0.0.0, the route is the default route. Any packet for which the router fails to find a matching entry in the routing table will be forwarded through the default route. Do not configure the next hop address of a static route as the IP address of an interface on the local switch. The preference can be configured differently to implement flexible route management policy. 2.3 Displaying the Routing Table Display routing table summary Display routing table details Display the detailed information of a specific route Display the routes in a specified address range Display the routes fount after specified ACL filtering Display the routes found after specified prefix list filtering Display the routes discovered by a specified protocol Display the tree-structured routing table information Display the statistics of the routing table display ip routing-table display ip routing-table verbose display ip routing-table ip-address [ mask ] [ longer-match ] [ verbose ] display ip routing-table ip-address1 mask1 ip-address2 mask2 [ verbose ] display ip routing-table acl acl-number [ verbose ] display ip routing-table ip-prefix ip-prefix-name [ verbose ] display ip routing-table protocol protocol [ inactive verbose ] display ip routing-table radix display ip routing-table statistics Available in any view 2-3

Chapter 2 Static Route Configuration 2.4 Static Route Configuration Example I. Network requirements It is required that all the hosts/layer 3 switches in the figure can interconnect with each other by configuring static routes. II. Network diagram Host A 1.1.5.1/24 1.1.5.2/24 1.1.2.2/24 Switch C 1.1.3.1/24 1.1.2.1/24 1.1.3.2/24 1.1.1.1/24 Switch A 1.1.4.1/24 Switch B 1.1.1.2/24 1.1.4.2/24 Host C Host B Figure 2-1 Static route configuration III. Configuration procedure Note: Before the following configuration, make sure that the Ethernet link layer works normally and the IP addresses of the VLAN interfaces have been configured correctly. # Configure static routes on Switch A. [SwitchA] ip route-static 1.1.3.0 255.255.255.0 1.1.2.2 [SwitchA] ip route-static 1.1.4.0 255.255.255.0 1.1.2.2 [SwitchA] ip route-static 1.1.5.0 255.255.255.0 1.1.2.2 # Configure static routes on Switch B. [SwitchB] ip route-static 1.1.2.0 255.255.255.0 1.1.3.1 [SwitchB] ip route-static 1.1.5.0 255.255.255.0 1.1.3.1 [SwitchB] ip route-static 1.1.1.0 255.255.255.0 1.1.3.1 # Configure static routes on Switch C. [SwitchC] ip route-static 1.1.1.0 255.255.255.0 1.1.2.1 2-4

Chapter 2 Static Route Configuration [SwitchC] ip route-static 1.1.4.0 255.255.255.0 1.1.3.2 # Configure the default gateway of Host A to 1.1.5.1. Detailed configuration procedure is omitted. # Configure the default gateway of Host B to 1.1.4.1. Detailed configuration procedure is omitted. # Configure the default gateway of Host C to 1.1.1.1. Detailed configuration procedure is omitted. Now, all the hosts/switches in the figure can interconnect with each other. 2.5 Troubleshooting a Static Route Symptom: The switch is not configured with a dynamic routing protocol. Both the physical status and the link layer protocol status of an interface are UP, but IP packets cannot be normally forwarded on the interface. Solution: Perform the following procedure. Use the display ip routing-table protocol static command to check that the corresponding static route is correctly configured. Use the display ip routing-table command to check that the static route is valid. 2-5

Chapter 3 RIP Configuration Chapter 3 RIP Configuration When configuring RIP, go to these sections for information you are interested in: RIP Overview RIP Configuration Task List Displaying and Maintaining RIP Configuration RIP Configuration Example Troubleshooting RIP Configuration 3.1 RIP Overview Routing Information Protocol (RIP) is a simple Interior Gateway Protocol (IGP), mainly used in small-sized networks. 3.1.1 RIP Working Mechanism I. Basic concept of RIP RIP is a distance-vector (D-V) algorithm-based protocol. It exchanges routing information via UDP packets. RIP uses hop count (also called routing cost) to measure the distance to a destination address. In RIP, the hop count from a router to its directly connected network is 0, and that to a network which can be reached through another router is 1, and so on. To limit convergence time, RIP prescribes that the cost is an integer ranging from 0 and 15. A cost value of 16 (or bigger) is considered infinite, which means the destination network or host is unreachable. To improve performance and avoid routing loop, RIP supports split horizon. Besides, RIP can import routes from other routing protocols. II. RIP routing table Each router running RIP manages a routing table, which contains routing entries to all the reachable destinations. Each routing entry contains: Destination address: IP address of a host or network. Next hop address: IP address of an interface on the adjacent router that IP packets should pass through to reach the destination. Interface: Interface on this router, through which IP packets should be forwarded to reach the destination. Cost: Cost from the local router to the destination. Routing time: Time elapsed since the routing entry was last updated. The time is reset to 0 whenever the routing entry is updated. 3-1

Chapter 3 RIP Configuration Route tag: Identifies whether a route is of internal routing protocol or external routing protocol. III. RIP timers As defined in RFC 1058, RIP employs three timers: Period update, Timeout, and Garbage-collection. Period update timer: This timer is used to periodically trigger routing information update so that the router can send all RIP routes to all the neighbors. Timeout timer: If a RIP route is not updated (that is, the switch does not receive any routing update from the neighbor) within the timeout time of this timer, the route is considered unreachable. Garbage-collection timer: An unreachable route will be completely deleted from the routing table if no update for the route is received from the neighbor before this timer times out. 3.1.2 RIP Initialization and Running Procedure The RIP initialization and running procedure is described as follow: Once RIP is enabled on a router, the router broadcasts or multicasts requests to its neighbors. Upon receiving the packet, each neighbor running RIP returns responses containing its routing table information. When this router receives the responses, it updates its local routing table and sends triggered updates to the neighbor. Upon receiving the triggered updates, the neighbor sends the triggered updates to all its neighbors. After a series of update triggering processes, each router can get and keep the updated routing information. By default, RIP sends its routing table information to its neighbors every 30 seconds. Upon receiving the packets, the neighbors maintain their own routing tables and select optimal routes, and then advertise update information to their respective neighbors so as to make the updated routes known globally. Furthermore, RIP uses the timeout mechanism to handle the timeout routes so as to ensure real-time and valid routes. RIP is commonly used by most IP router suppliers. It can be used in most campus networks and the regional networks that are simple and less dispersive. For larger and more complicated networks, RIP is not recommended. 3.2 RIP Configuration Task List Complete the following tasks to configure RIP: 3-2

Chapter 3 RIP Configuration Configuring Basic RIP Functions Configuring RIP Route Control RIP Network Adjustment and Optimization Task Enable RIP and specify networks Set the RIP operating status on an interface Specify the RIP version on an interface Set the additional routing metrics of an interface Configure RIP route summarization Disable the receiving of host routes Configure inbound/outbound route filtering policies Set RIP preference Enable RIP traffic sharing Configure RIP route redistribution Configure RIP timers Configure split horizon Configure RIP-1 packet zero field check Set RIP-2 packet authentication mode Configure a RIP neighbor Remarks 3.3 Basic RIP Configuration 3.3.1 Configuration Prerequisites Before configuring basic RIP functions, perform the following tasks: Configuring the link layer protocol Configuring IP address on each interface, and make sure that all adjacent nodes are reachable with each other 3.3.2 Configuring Basic RIP Functions I. Enable RIP and specify networks Follow these steps to enable RIP globally and on the interface of a specified network segment: 3-3

Chapter 3 RIP Configuration Enable RIP globally and enter RIP view rip Enable RIP on the interface of a specified network segment network network-address By default, RIP is disabled on any interface. Note: If you make some RIP configurations in interface view before enabling RIP, those configurations will take effect after RIP is enabled. RIP runs only on the interfaces residing on the specified networks. Therefore, you need specify the network after enabling RIP to validate RIP on a specific interface. II. Set the RIP operating status on an interface Follow these steps to set the RIP operating status on an interface: Enter interface view Enable an interface to receive RIP routing updates Enable the interface to send RIP routing updates Enable the interface to send and receive RIP packets interface interface-type interface-number rip input rip output rip work By default, all the interfaces are allowed to send and receive RIP packets. III. Specify the RIP version on an interface Follow these steps to specify the RIP version on an interface: Enter interface view interface interface-type interface-number 3-4

Chapter 3 RIP Configuration Specify RIP version on the interface rip version { 1 2 [ broadcast multicast ] } By default, the interface can receive RIP-1 and RIP-2 broadcast packets but send only RIP-1 packets. When specifying the RIP version on an interface to RIP-2, you can also specify the mode (broadcast or multicast) to send RIP packets. 3.4 RIP Route Control In actual implementation, it may be needed to control RIP routing information more accurately to accommodate complex network environments. By performing the configuration described in the following sections, you can: Control route selection by adjusting additional routing metrics on interfaces running RIP. Reduce the size of the routing table by setting route summary and disabling the receiving of host routes. Filter the received routes. Set the preference of RIP to change the preference order of routing protocols. This order makes sense when more than one route to the same destination is discovered by multiple routing protocols. Import external routes in an environment with multiple routing protocols and filter the advertised routes. 3.4.1 Configuration Prerequisites Before configuring RIP route control, perform the following tasks: Configuring IP address on each interface, and make sure that all adjacent nodes are reachable with each other Configuring basic RIP functions 3.4.2 Configuring RIP Route Control I. Set the additional routing metrics of an interface Additional routing metric is the routing metric (hop count) added to the original metrics of RIP routes on an interface. It does not change the metric value of a RIP route in the routing table, but will be added for incoming or outgoing RIP routes on the interface. Follow these steps to set additional routing metric: 3-5

Chapter 3 RIP Configuration Enter interface view Set the additional routing metric to be added for incoming RIP routes on the interface Set the additional routing metric to be added for outgoing RIP routes on the interface interface interface-type interface-number rip metricin value rip metricout value By default, the additional routing metric added for incoming routes on an interface is 0. By default, the additional routing metric added for outgoing routes on an interface is 1. Note: The rip metricout command takes effect only on the RIP routes learnt by the router and the RIP routes generated by the router itself, but not on any route imported to RIP from other routing protocols. II. Configure RIP route summarization Route summarization means that different subnet routes in a natural network segment can be summarized into one route with a natural mask for transmission to another network segment. This function is used to reduce the routing traffic on the network as well as to reduce the size of the routing table. Route summarization does not work for RIP-1. RIP-2 supports route summarization. When it is needed to advertise all subnet routes, you can disable the function for RIP-2. Follow these steps to configure RIP route summarization: Enter RIP view rip Enable RIP-2 automatic route summarization summary By default, RIP-2 automatic route summarization is enabled. 3-6

Chapter 3 RIP Configuration III. Disable the receiving of host routes In some special cases, the router can receive a lot of host routes from the same network segment, and these routes are of little help in route addressing but consume a large amount of network resources. After host route receiving is disabled, a router can refuse any incoming host routes. Follow these steps to disable the receiving of host routes: Enter RIP view rip Disable the receiving of host routes undo host-route By default, the router receives host routes. IV. Configure inbound/outbound route filtering policies Route filtering is supported by the router. You can filter received or advertised routes by configuring the inbound and outbound route filtering policies via referencing an ACL and IP prefix list. You can also specify to receive only routes from a specified neighbor. Follow these steps to configure the filtering of incoming/outgoing routes: Enter RIP view rip Configure to filter incoming routes Configure to filter outgoing routes filter-policy { acl-number [ ip-prefix ip-prefix-name ] [ gateway ip-prefix-name ] } import [ interface interface-type interface-number ] filter-policy route-policy route-policy-name import filter-policy { acl-number ip-prefix ip-prefix-name } export [ protocol interface interface-type interface-number ] filter-policy route-policy route-policy-name export By default, RIP does not filter any incoming routes. The gateway keyword is used to filter the incoming routes advertised from a specified address. By default, RIP does not filter any outgoing routes. 3-7

Chapter 3 RIP Configuration Note: The filter-policy import command filters the RIP routes received from neighbors, and the routes being filtered out will neither be added to the routing table nor be advertised to any neighbors. The filter-policy export command filters all the routes to be advertised, including the routes imported by using the import-route command as well as RIP routes learnt from neighbors. The filter-policy export command without the routing-protocol argument filters all the routes to be advertised, including the routes imported by the import-route command. V. Set RIP preference Follow these steps to set RIP preference: Enter RIP view rip Set the RIP preference preference value The default RIP preference is 100. VI. Enable RIP traffic sharing Follow these steps to enable RIP traffic sharing: Enter RIP view rip Enable traffic sharing traffic-share-across-int erface By default, traffic-share-across-interface is disabled VII. Configure RIP route redistribution Follow these steps to configure RIP route redistribution: Enter RIP view rip 3-8

Chapter 3 RIP Configuration Set the default cost for RIP to redistribute routes from other protocols Configure RIP to redistribute routes from another protocol default cost value import-route protocol [ process-id allow-ibgp ] [ cost value route-policy route-policy-name ]* When you use the import-route command without specifying the cost of imported routes, the default cost you set here will be used. Note: Use the keyword allow-ibgp with care when redistributing routes from BGP, because it redistributes IBGP routes without keeping the AS_PATH attribute, which may lead to routing loops between ASs. 3.5 RIP Network Adjustment and Optimization In some special network environments, some RIP features need to be configured and RIP network performance needs to be adjusted and optimized. By performing the configuration mentioned in this section, the following can be implemented: Changing the convergence speed of RIP network by adjusting RIP timers Avoiding routing loop by configuring split horizon Packet validation in network environments with high security requirements Configuring RIP feature on an interface or link with special requirements 3.5.1 Configuration Prerequisites Before adjusting RIP, perform the following tasks: Configuring IP address on each interface, and make sure that all adjacent nodes are reachable with each other Configuring basic RIP functions 3.5.2 Configuration Tasks I. Configure RIP timers Follow these steps to configure RIP timers: 3-9

Chapter 3 RIP Configuration Enter RIP view rip Set the values of RIP timers timers { update update-timer timeout timeout-timer } * By default, Update timer value is 30 seconds and Timeout timer value is 180 seconds. Note: When configuring the values of RIP timers, you should take network performance into consideration and perform consistent configuration on all routers running RIP to avoid unnecessary network traffic and network route oscillation. II. Configure split horizon Follow these steps to configure split horizon: Enter interface view Enable split horizon interface interface-type interface-number rip split-horizon By default, an interface uses split horizon to send RIP packets. Note: Disabling the split horizon function on a point-to-point link does not take effect. III. Configure RIP-1 packet zero field check Follow these steps to configure RIP-1 packet zero field check: Enter RIP view rip 3-10

Chapter 3 RIP Configuration Enable zero field check of RIP-1 packets checkzero By default, zero field check is performed on RIP-1 packets. Note: Some fields in a RIP-1 packet must be 0, and they are known as zero fields. For RIP-1, zero field check is performed on incoming packets, those RIP-1 packets with nonzero value in a zero filed will not be processed further. As a RIP-2 packet has no zero fields, this configuration is invalid for RIP-2. IV. Set RIP-2 packet authentication mode RIP-2 supports two authentication modes, simple authentication and MD5 authentication. Simple authentication cannot provide complete security, because the authentication keys sent along with packets are not encrypted. Therefore, simple authentication cannot meet high security needs. Follow these steps to set RIP-2 packet authentication mode: Enter interface view Set RIP-2 packet authentication mode interface interface-type interface-number rip authentication-mode { simple password md5 { rfc2453 key-string rfc2082 key-string key-id } } If you specify to use MD5 authentication, you must specify one of the following MD5 authentication types: rfc2453 (this type supports the packet format defined in RFC 2453) rfc2082 (this type supports the packet format defined in RFC 2082) V. Configure a RIP neighbor Follow these steps to configure a RIP neighbor: 3-11

Chapter 3 RIP Configuration Enter RIP view rip Configure a RIP neighbor peer ip-address To make RIP works on a link that does not support broadcast/multicast packets, you must manually configure the RIP neighbor. Normally, RIP uses broadcast or multicast addresses to send packets. 3.6 Displaying and Maintaining RIP Configuration Display the current RIP running status and configuration information Display RIP routing information Reset the system configuration related to RIP display rip display rip routing reset Available in any view Available in RIP view 3.7 RIP Configuration Example I. Network requirements As shown in Figure 3-1, Switch C is connected to subnet 117.102.0.0 through an Ethernet port. Switch A and Switch B are connected to networks 155.10.1.0 and 196.38.165.0 respectively through Ethernet ports. Switch C, Switch A and Switch B are interconnected through Ethernet 110.11.2.0. It is required to configure RIP correctly to ensure the interworking between the networks connected to Switch C, Switch A and Switch B. 3-12

Chapter 3 RIP Configuration II. Network diagram Vlan-int 2 Ethernet Switch A Vlan-int 1 Switch C Switch B Vlan-int 4 Vlan-int 3 Device Interface IP address Device Interface IP address Switch A Vlan-int1 110.11.2.1/24 Switch B Vlan-int1 110.11.2.2/24 Vlan-int2 155.10.1.1/24 Vlan-int3 196.38.165.1/24 Switch C Vlan-int1 110.11.2.3/24 Vlan-int4 117.102.0.1/16 Figure 3-1 RIP configuration III. Configuration procedure Note: Only the configuration related to RIP is listed below. Before the following configuration, make sure the Ethernet link layer works normally and the IP addresses of VLAN interfaces are configured correctly. 1) Configure Switch A # Configure RIP. <SwitchA>system-view [SwitchA] rip [SwitchA-rip] network 110.11.2.0 [SwitchA-rip] network 155.10.1.0 2) Configure Switch B # Configure RIP. <SwitchB>system-view [SwitchB] rip [SwitchB-rip] network 196.38.165.0 [SwitchB-rip] network 110.11.2.0 3) Configure Switch C # Configure RIP. <SwitchC>system-view 3-13

Chapter 3 RIP Configuration [SwitchC] rip [SwitchC-rip] network 117.102.0.0 [SwitchC-rip] network 110.11.2.0 3.8 Troubleshooting RIP Configuration Symptom: The switch cannot receive any RIP update when the physical connection between the switch and the peer routing device is normal. Solution: RIP is not enabled on the corresponding interface (for example, the undo rip work command is executed on the interface) or RIP is not enabled by the network command on the interface. The peer routing device is configured to work in multicast mode (for example, the rip version 2 multicast command is executed) but the multicast mode is not configured on the corresponding interface of the switch. 3-14

Chapter 4 OSPF Configuration Chapter 4 OSPF Configuration When configuring OSPF, go to these sections for information you are interested in: OSPF Overview OSPF Configuration Task List Displaying and Maintaining OSPF Configuration OSPF Configuration Example Troubleshooting OSPF Configuration 4.1 OSPF Overview 4.1.1 Introduction to OSPF Open Shortest Path First (OSPF) is a link state interior gateway protocol developed by IETF. At present, OSPF version 2 (RFC 2328) is used, which has the following features: High applicability: OSPF supports networks of various sizes and can support up to several hundred routers. Fast convergence: OSPF can transmit update packets instantly after network topology changes for routing information synchronization in the autonomous system (AS). Loop-free: OSPF computes routes with the Shortest Path Tree algorithm according to the collected link states, so no loop routes are generated from the algorithm itself. Area partition: OSPF allows an autonomous system network to be divided into different areas for ease of management so that routing information transmitted between the areas is abstracted further, thereby reducing network bandwidth consumption. Equivalent route: OSPF supports multiple equivalent routes to the same destination. Routing hierarchy: OSPF has a four-level routing hierarchy. It prioritizes the routes as intra-area, inter-area, external type-1, and external type-2 routes. Authentication: OSPF supports interface-based packet authentication to guarantee the security of route calculation. Multicast transmission: OSPF supports transmitting protocol packets in multicast mode. 4.1.2 OSPF Route Calculation The following is a simple process of how OSPF calculates routes when there is no area partition: 4-1

Chapter 4 OSPF Configuration Each OSPF router maintains a link state database (LSDB), which describes the topology of the whole AS. Based on the network topology around itself, each router generates link state advertisements (LSAs) and sends them to other routers in update packets. The LSAs a router receives from other routers form the LSDB of the router. An LSA describes the network topology around a router, whereas an LSDB describes the network topology of the whole network. Routers can easily transform the LSDB to a weighted and directed map, which reflects the topology of the whole network. All routers have the same map. Each router uses the shortest path first (SPF) algorithm to calculate the shortest path tree that shows the routes to the nodes in the autonomous system. The router itself is the root of the tree. External routes are leaf nodes, which are marked by the routers from which they are advertised to record information outside the AS. Each router maintains a different routing table. Furthermore, to enable individual routers to broadcast their local status information (such as information about available interface and reachable neighbor) to the whole AS, routers in the AS must establish adjacencies among them. In this case, a route change on any router will result in multiple transmissions, which are unnecessary and bandwidth consuming. To solve this problem, designated router (DR) and backup designated router (BDR) are defined in OSPF. For details about DR and BDR, see section 4.1.4 III. "DR and BDR". OSPF supports interface-based packet authentication to guarantee the security of route calculation. In addition, it transmits and receives packets in multicast (224.0.0.5 and 224.0.0.6). 4.1.3 Basic OSPF Concepts I. Router ID To run OSPF, a router must have a router ID. A router ID can be configured manually. If no router ID is configured, the system will automatically select an IP address from the IP addresses of the interfaces as the router ID. A router ID is selected in the following way: if loopback interface addresses are configured, the system chooses the latest configured IP address as the router ID; if no loopback interface is configured, the first configured IP address among the IP addresses of other interfaces will be the router ID. II. DR and BDR For details, see section 4.1.4 III. "DR and BDR". III. Area If all the routers on an ever-growing huge network run OSPF, the large number of routers will result in an enormous LSDB, which will consume an enormous storage 4-2

Chapter 4 OSPF Configuration space, complicate the running of SPF algorithm, and increase CPU load. Furthermore, as a network grows larger, it is more potential to have changes in the network topology. Hence, the network will often be in turbulence, and a great number of OSPF packets will be generated and transmitted in the network. This will lower the network bandwidth utilization. In addition, each change will cause all the routers on the network to recalculate routing information. OSPF solves the above-mentioned problems by dividing an AS into multiple areas. Areas group routers logically. A router on the border of an area belongs to more than one area. A router connecting the backbone area to a non-backbone area is called an area border router (ABR). An ABR can connect to the backbone area physically or logically. Area partition in OSPF reduces the number of LSAs in the network and enhances OSPF scalability. To further reduce routing table size and the number of LSAs in some non-backbone areas on the edge of an AS, you can configure these areas as stub areas. A stub area cannot import any external routes. For this reason the concept NSSA area (not-so-stubby area) is introduced. In an NSSA area, type 7 LSAs are allowed to be propagated. A type 7 LSA is generated by an ASBR (autonomous system boundary router) in a NSSA area. A type 7 LSA reaching an ABR in the NSSA area is transformed into an AS-external LSA, which is then advertised to other areas. IV. Backbone area and virtual link Backbone Area In OSPF area partition, not all areas are parallel. One area, whose area ID is 0, is different from all the other areas. This area is called the backbone area. Virtual link Since all areas must be connected to the backbone area, the concept virtual link is introduced to maintain logical connectivity between the backbone area and any other areas physically separated from the backbone area. V. Route summary After an AS is divided into different areas that are interconnected through OSPF ABRs, the routing information between areas can be reduced through route summary. This reduces the size of routing tables and improves the calculation speed of routers. After an ABR in an area calculates the intra-area routes in the area, the ABR aggregates multiple OSPF routes into one LSA (based on the summary configuration) and sends the LSA outside the area. For example, in Figure 4-1, there are three intra-area routes in Area 19: 19.1.1.0/24, 19.1.2.0/24, and 19.1.3.0/24. If route summary is configured, the three routes are 4-3

Chapter 4 OSPF Configuration aggregated into one route 19.1.0.0/16, and only one corresponding LSA, which describes the route after summary, is generated on RTA. 19.1.0.0/16 ABR Area 0 Router A ABR 19.1.1.0/24 19.1.2.0/24 Router B 19.1.3.0/24 Area 1 Figure 4-1 Area partition and route aggregation 4.1.4 OSPF Network Types I. Four OSPF network types OSPF divides networks into four types by link layer protocols: Broadcast: If Ethernet or FDDI is adopted, OSPF defaults the network type to broadcast. In a broadcast network, protocol packets are sent in multicast (224.0.0.5 and 224.0.0.6) by default. Non-broadcast multi-access (NBMA): If Frame Relay, ATM, or X.25 is adopted, OSPF defaults the network type to NBMA. In an NBMA network, protocol packets are sent in unicast. Point-to-multipoint (P2MP): OSPF will not default the network type of any link layer protocol to P2MP. A P2MP network must be compulsorily changed from another network type. The common practice is to change an NBMA network into a P2MP network. In a P2MP network, protocol packets are sent in multicast (224.0.0.5). Point-to-point (P2P): If PPP or HDLC is adopted, OSPF defaults the network type to P2P. In a P2P network, protocol packets are sent in multicast (224.0.0.5). II. Principles for configuring an NBMA network An NBMA network is a non-broadcast and multi-accessible network. ATM and frame relay networks are typical NBMA networks. Some special configurations need to be done on an NBMA network. In an NBMA network, an OSPF router cannot discover an adjacent router by broadcasting Hello packets. Therefore, you must manually specify an IP address for the adjacent router and specify whether the adjacent router can vote for a DR. An NBMA network must be fully connected. That is, any two routers in the network must be directly reachable to each other through a virtual circuit. If two routers in the network are not directly reachable to each other, you must configure the corresponding interface type to P2MP. If a router in the network has only one peer, you can change the corresponding interface type to P2P. The differences between NBMA and P2MP are as follows: 4-4