Configuring OSPF
Configuring OSPF
Configuring OSPF
Configuring OSPF
This chapter describes how to configure OSPF on the HP ProCurve 9304M, 9308M, and 6308M-SX routing
switches using the CLI and Web management interface.
To display OSPF configuration information and statistics, see “Displaying OSPF Information” on page 10-29.
For complete syntax information for the CLI commands shown in this chapter, see “Command Line Interface
Commands” on page B-1.
NOTE: 9304M and 9308M routing switches that use Redundant Management modules can contain a maximum
of 80000 IP routes by default. The 6308M-SX and chassis devices that use other management modules can
contain a maximum of 10000 IP routes by default. If you need to increase the capacity of the IP route table for
BGP4, see “Modifying System Parameter Default Settings” on page 8-69.
Overview of OSPF
OSPF is a link-state routing protocol. The protocol uses link-state advertisements (LSA) to update neighboring
routers regarding its interfaces and information on those interfaces. The routing switch floods these LSAs to all
neighboring routers to update them regarding the interfaces. Each routing switch maintains an identical database
that describes its area topology to help a routing switch determine the shortest path between it and any
neighboring router.
The 9304M, 9308M, and 6308M-SX routing switches support the following types of LSAs, which are described in
RFC 1583:
• Router link
• Network link
• Summary link
• Autonomous system (AS) summary link
• AS external link
• NSSA external link
10-1
Advanced Configuration and Management Guide
OSPF is built upon a hierarchy of network components. The highest level of the hierarchy is the Autonomous
System (AS). An autonomous system is defined as a number of networks, all of which share the same routing
and administration characteristics.
An AS can be divided into multiple areas as shown in Figure 10.1. Each area represents a collection of
contiguous networks and hosts. Areas limit the area to which link-state advertisements are broadcast, thereby
limiting the amount of flooding that occurs within the network. An area is represented in OSPF by either an IP
address or a number.
You can further limit the broadcast area of flooding by defining an area range. The area range allows you to
assign an aggregate value to a range of IP addresses. This aggregate value becomes the address that is
advertised instead all of the individual addresses it represents being advertised. You can assign up to four ranges
in an OSPF area.
An OSPF router can be a member of multiple areas. Routers with membership in multiple areas are known as
Area Border Routers (ABRs). Each ABR maintains a separate topological database for each area the router is
in. Each topological database contains all of the LSA databases for each router within a given area. The routers
within the same area have identical topological databases. The ABR is responsible for forwarding routing
information or changes between its border areas.
An Autonomous System Boundary Router (ASBR) is a router that is running multiple protocols and serves as
a gateway to routers outside an area and those operating with different protocols. The ASBR is able to import and
translate different protocol routes into OSPF through a process known as redistribution. For more details on
redistribution and configuration examples, see “Enable Route Redistribution” on page 10-20.
10-2
Configuring OSPF
10-3
Advanced Configuration and Management Guide
If the DR goes off-line, the BDR automatically becomes the DR. The router with the next highest priority becomes
the new BDR. This process is shown in Figure 10.3.
NOTE: Priority is a configurable option at the interface level. You can use this parameter to help bias one router
as the DR.
10-4
Configuring OSPF
If two neighbors share the same priority, the router with the highest router ID is designated as the DR. The router
with the next highest router ID is designated as the BDR.
NOTE: By default, the router ID is the lowest IP address configured on the routing switch. If you want to assign a
different router ID, use the ip router-id command. (See “ip router-id” on page B-102.)
When multiple routers on the same network are declaring themselves as DRs, then both priority and router ID are
used to select the designated router and backup designated routers.
When only one router on the network claims the DR role despite neighboring routers with higher priorities or router
IDs, this router remains the DR. This is also true for BDRs.
The DR and BDR election process is performed when one of the following events occurs:
• an interface is in a waiting state and the wait time expires
• an interface is in a waiting state and a hello packet is received that addresses the BDR
• a change in the neighbor state occurs, such as:
• a neighbor state transitions from 2 or higher
• communication to a neighbor is lost
• a neighbor declares itself to be the DR or BDR for the first time
NOTE: For details on how to configure the system to operate with the RFC 2178, see “Configuring OSPF” on
page 10-6.
10-5
Advanced Configuration and Management Guide
Configuring OSPF
To begin using OSPF on the routing switch, perform the steps outlined below:
1. Enable OSPF on the routing switch.
2. Assign the areas to which the routing switch will be attached.
3. Assign individual interfaces to the OSPF areas.
4. Define redistribution filters, if desired.
5. Enable redistribution, if you defined redistribution filters.
6. Modify default global and port parameters as required.
7. Modify OSPF standard compliance, if desired.
Configuration Rules
• If a routing switch is to operate as an ASBR, you must enable the ASBR capability at the system level.
• Redistribution must be enabled on routing switches configured to operate as ASBRs.
• All routing switch ports must be assigned to one of the defined areas on an OSPF routing switch. When a
port is assigned to an area, all corresponding sub-nets on that port are automatically included in the
assignment.
10-6
Configuring OSPF
OSPF Parameters
You can modify or set the following global and interface OSPF parameters.
Global Parameters
• Modify OSPF standard compliance setting.
• Assign an area.
• Define an area range.
• Define the area virtual link.
• Set global default metric for OSPF.
• Enable load sharing.
• Define redistribution metric type.
• Define deny redistribution.
• Define permit redistribution.
• Enable redistribution.
• Modify database overflow interval.
• Modify the maximum number of OSPF routes.
• Modify LSDB limits.
• Modify OSPF Traps generated.
Interface Parameters
• Assign interfaces to an area.
• Define the authentication key for the interface.
• Modify the cost for a link.
• Modify the dead interval.
• Modify MD5 authentication key parameters.
• Modify the priority of the interface.
• Modify the retransmit interval for the interface.
• Modify the transit delay of the interface.
NOTE: When using CLI, you set global level parameters at the OSPF CONFIG Level of the CLI. To reach that
level, enter router ospf… at the global CONFIG Level. Interface parameters for OSPF are set at the interface
CONFIG Level using the CLI command, ip ospf… .
When using the Web management interface, you set OSPF global parameters using the OSPF configuration
sheet. All other parameters are accessed through links accessed from the OSPF configuration sheet.
10-7
Advanced Configuration and Management Guide
NOTE: You can assign one area on a routing switch interface. For example, if the system or chassis module has
16 ports, 16 areas are supported on the chassis or module.
NOTE: Make sure you define a backbone area with the area ID 0.0.0.0.
10-8
Configuring OSPF
7. Repeat steps 3 – 5 for each area to be defined. In this example, define the areas 0.0.0.0, 200.5.0.0 and
195.5.0.0.
10-9
Advanced Configuration and Management Guide
NOTE: If OSPF interfaces are already assigned to any OSPF areas on the routing switch, a summary panel
of OSPF interfaces assigned and their areas will appear. In this case, select the Add OSPF Interface link.
2. Select the port or slot/port to be assigned to the area from the Port pulldown menu.
NOTE: If you are configuring a 9304M or 9308M, a Slot Number pulldown menu will appear on the configura-
tion panel in addition to the Port pulldown menu.
3. Select the IP address of the area to which the interface is to be assigned from the Area ID pull down menu.
10-10
Configuring OSPF
4. Select the Enable option of the OSPF mode parameter to enable OSPF on the interface.
5. Click the Add button to apply the change.
10-11
Advanced Configuration and Management Guide
4. Select the authentication method for the interface from the pulldown menu. Options are None, Simple, or
MD5.
NOTE: If you select MD5 as the authentication method, enter a value for the MD5 authentication ID, key and
key activation time in the associated fields. If you select Simple, enter an authentication key. If you select No
Authentication (password) as the authentication method, you do not need to specify anything in the Simple
and MD5 fields.
5. Modify the default values of the following interface parameters as needed: hello interval, transit delay, priority,
retransmit interval, and cost.
6. Select the Add button to save the changes.
OSPF Interface Parameters
The following parameters apply to OSPF interfaces.
Area: Assigns an interface to a specific area. You can assign either an IP address or number to represent an
OSPF Area ID. If you assign a number, it can be any value from 0 – 2,147,483,647.
Authentication-key: OSPF supports three methods of authentication for each interface—none, simple password,
and MD5. Only one method of authentication can be active on an interface at a time. The default authentication
value is none, meaning no authentication is performed.
• The simple password method of authentication requires you to configure an alphanumeric password on an
interface. The simple password setting takes effect immediately. All OSPF packets transmitted on the
interface contain this password. Any OSPF packet received on the interface is checked for this password. If
the password is not present, then the packet is dropped. The password can be up to eight characters long.
• The MD5 method of authentication requires you to configure a key ID and an MD5 Key. The key ID is a
number from 1 – 255 and identifies the MD5 key that is being used. The MD5 key can be up to sixteen
characters long.
Cost: Indicates the overhead required to send a packet across an interface. You can modify the cost to
differentiate between 100 Mbps and 1000 Mbps (1 Gbps) links. The default cost is calculated by dividing 100
million by the bandwidth. For 10 Mbps links, the cost is 10. The cost for both 100 Mbps and 1000 Mbps links is 1,
because the speed of 1000 Mbps was not in use at the time the OSPF cost formula was devised.
Dead-interval: Indicates the number of seconds that a neighbor router waits for a hello packet from the routing
switch before declaring the router down. The value can be from 1 – 65535 seconds. The default is 40 seconds.
Hello-interval: Represents the length of time between the transmission of hello packets. The value can be
from 1 – 65535 seconds. The default is 10 seconds.
MD5-authentication activation wait time: The number of seconds the switching router waits until placing a new
MD5 key into effect. The wait time provides a way to gracefully transition from one MD5 key to another without
disturbing the network. The wait time can be from 0 – 14400 seconds. The default is 300 seconds (5 minutes).
MD5-authentication key ID and key: A method of authentication that requires you to configure a key ID and an
MD5 key. The key ID is a number from 1 – 255 and identifies the MD5 key that is being used. The MD5 key
consists of up to 16 alphanumeric characters. The MD5 is encrypted and included in each OSPF packet
transmitted.
Priority: Allows you to modify the priority of an OSPF router. The priority is used when selecting the designated
router (DR) and backup designated routers (BDRs). The value can be from 0 – 255. The default is 1. If you set
the priority to 0, the routing switch does not participate in DR and BDR election.
Retransmit-interval: The time between retransmissions of link-state advertisements (LSAs) to adjacent routers
for this interface. The value can be from 0 – 3600 seconds. The default is 5 seconds.
Transit-delay: The time it takes to transmit Link State Update packets on this interface. The value can be from
0 – 3600 seconds. The default is 1 second.
10-12
Configuring OSPF
NOTE: By default, the router ID is the lowest IP address configured on the routing switch. If you want to assign a
different router ID, use the ip router-id command. (See “ip router-id” on page B-102.)
NOTE: When you establish an area virtual link, you must configure it on both of the routers (both ends of the vir-
tual link).
OSPF Area 0
HP9308C
%( %( %* %* %* %* %* %*0 Router ID 209.157.22.1
1
Ac ti v it y
Ac ti v it y
Ac ti v it y
Ac ti v it y
Ac ti v it y
Ac ti vi t y
L in k
L in k
L in k
L in k
L in k
L in k
2
3
Ac ti vi ty
Ac ti vi ty
Ac ti vi ty
Ac ti vi ty
Ac ti vi ty
Act i vi ty
L in k
L in k
L in k
L in k
L in k
L in k
4
4
5
A c ti vi t y
A c ti vi t y
A c ti vi t y
A c ti vi t y
A c ti vi t y
A ct i vi t y
L in k
L in k
L in k
L in k
L in k
L in k
6
7
A cti vi ty
A cti vi ty
A cti vi ty
A cti vi ty
A cti vi ty
A ctiv it y
Lin k
Lin k
Lin k
Lin k
Lin k
Link
8
3
Z
U
*
*
*
* * *
% % LJ LJ LJ LJ LJ L
$
6 $6 D D D D D
0J
( (7 EL
W
E
LW ELW ELW EL
W J
7; ; P
W
HP9308B HP9308A
%( %( %* %* %* %* %* %*0
%( %( %* %* %* %* %* %*0
Router ID 10.0.0.1
1
1
A cti vi ty
A cti vi ty
A cti vi ty
A cti vi ty
A cti vi ty
A ctiv it y
Link
Link
Link
Link
Link
Link
A cti vi t y
A cti vi t y
A cti vi t y
A cti vi t y
A cti vi t y
A cti vi t y
L in k
L in k
L in k
L in k
L in k
Lin k
2
2
3
3
A c t iv it y
A ct iv it y
A ct iv it y
A ct iv it y
A ct iv it y
A ct iv it y
L i nk
Li nk
Li nk
Li nk
Li nk
Li nk
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi ty
Li n k
Li n k
Li n k
Li n k
Li n k
Li n k
4
4
5
5
5
Ac t iv it y
Ac t iv it y
Ac t iv it y
Ac t iv it y
Ac t iv it y
Ac t iv it y
L i nk
L i nk
L i nk
L i nk
L i nk
L i nk
Act i vit y
Act i vit y
Act i vit y
Act i vit y
Act i vit y
Act i vity
Li n k
Li n k
Li n k
Li n k
Li n k
Li nk
6
6
6
7
7
7
Ac ti vit y
Ac ti vit y
Ac ti vit y
Ac ti vit y
Ac ti vit y
Act i vit y
L in k
L in k
L in k
L in k
L in k
L in k
A c t iv it y
Ac t iv it y
Ac t iv it y
Ac t iv it y
Ac t iv it y
Ac t iv it y
L i nk
L i nk
L i nk
L i nk
L i nk
L i nk
8
8
8
3
Z
U
3
Z
U
*
* *
*
*
%$ %$ LJ LJ LJ LJ LJ *
D D D D D 0 LJ
* * 6( 6( E E E E E J
* *L * * 7 7 LW LW LW LW LW
%$
% LJ LJ J LJ LJ LJ ; ; P
W
6( $6 DE DE D
E DE DE 0
( LW LW LW LW LW J
7
; 7; P
W
10-13
Advanced Configuration and Management Guide
NOTE: For descriptions of the authentication parameters, see “Modify Virtual Link Parameters” on page 10-
15.
NOTE: For a description of all virtual link parameters and their possible values, see “Modify Virtual Link
Parameters” on page 10-15.
10-14
Configuring OSPF
NOTE: A list of all possible virtual link parameters is summarized in the next section.
10-15
Advanced Configuration and Management Guide
NOTE: The ASBR must be running both RIP and OSPF protocols to support this activity.
NOTE: When using the CLI, redistribution is configured at the RIP, OSPF, or BGP router level of the CLI.
NOTE: On the Web management interface, redistribution is enabled on the RIP, OSPF, or BGP configuration
sheets.
10-16
Configuring OSPF
To configure for redistribution, define the redistribution tables with deny and permit redistribution filters.
• If you are using the CLI, you can find the deny and permit redistribute commands for OSPF at the OSPF
router level.
• If you are using the Web management interface, select the Redistribution Filter link from the OSPF
configuration sheet.
NOTE: Do not enable redistribution until you have configured the redistribution filters. Otherwise, you might acci-
dentally overload the network with routes you did not intend to redistribute.
RIP Domain
%( %( %* %* %* %* %* %*0
1
1
A c t iv it y
Ac t iv it y
Ac t iv it y
Ac t iv it y
Ac t iv it y
Ac t iv it y
L i nk
L i nk
L i nk
L i nk
L i nk
L i nk
2
2
2
3
3
A c t iv it y
A c t iv it y
A c t iv it y
A c t iv it y
A c t iv it y
A c it vi t y
L i nk
L i nk
L i nk
L i nk
L i nk
L in k
4
4
5
5
A c it v it y
A c it v it y
A c it v it y
A c it v it y
A c it v it y
A c it vi t y
L in k
L in k
L in k
L in k
L in k
L in k
6
7
7
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi yt
Li n k
Li n k
Li n k
Li n k
Li n k
Li n k
8
3Z
U
*
* *
*
*
% % LJ LJ LJ LJ LJ *
$ $ D D D D D 0 LJ
6( 6( EL ELW EL EL E
LW J
7; 7 W W W P
; W
1
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi t y
L in k
L in k
L in k
L in k
L in k
Li n k
2
3
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi yt
Li n k
Li n k
Li n k
Li n k
Li n k
Li n k
5
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi yt
Li n k
Li n k
Li n k
Li n k
Li n k
Li nk
6
7
7
A c t iv it y
Ac t iv it y
Ac t iv it y
Ac t iv it y
Ac t iv it y
Ac t iv it y
L i nk
L i nk
L i nk
L i nk
L i nk
L i nk
8
8
3Z
U
* *
* * * *
%$
%
$ LJ LJ LJ LJ LJ
OSPF Domain
LJ
6( 6( DE DE DE DE DE
0
7; 7; LW LW LW LW LW JP
W
1
1
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi t y
A ct i vi yt
Li n k
Li n k
Li n k
Li n k
Li n k
Li n k
2
3
3
A ct i vi yt
A ct i vi yt
A ct i vi yt
A ct i vi yt
A ct i vi yt
A ct iv i yt
Li n k
Li n k
Li n k
Li n k
Li n k
Li nk
4
5
A ct i vi yt
A ct i vi yt
A ct i vi yt
A ct i vi yt
A ct i vi yt
A ct iv it y
Li nk
Li nk
Li nk
Li nk
Li nk
Li nk
6
7
7
A c t iv it y
A c t iv it y
A c t iv it y
A c t iv it y
A c t iv it y
A c it vi t y
L i nk
L i nk
L i nk
L i nk
L i nk
L in k
8
3Z
U
* *
* * *
*
% LJ LJ LJ LJ LJ
$ $
% D D D D D LJ
6( 6( E E E E E 0
7 7; LW LW LW LW LW J
P
;
W
10-17
Advanced Configuration and Management Guide
NOTE: Redistribution is permitted for all routes by default, so the permit redistribute 1 all command in the exam-
ple above is shown for clarity but is not required.
You also have the option of specifying import of just OSPF, BGP4, or static routes, as well as specifying that only
routes for a specific network or with a specific cost (metric) be imported, as shown in the command syntax below:
syntax: <deny|permit> redistribute <index> <all|bgp|ospf|static> address <ip address> <ip address>
[match-metric<value>|set-metric <value>]
EXAMPLE 2: To redistribute RIP, static, and BGP4 routes into OSPF, enter the following commands on the
routing switch acting as an ASBR:
HP9308ASBR(config)# router ospf
HP9308ASBR(config-ospf-router)# permit redistribute 1 all
HP9308ASBR(config-ospf-router)# wr mem
NOTE: Redistribution is permitted for all routes by default, so the permit redistribute 1 all command in the exam-
ple above is shown for clarity but is not required.
You also have the option of specifying import of just OSPF, BGP4, or static routes, as well as specifying that only
routes for a specific network or with a specific cost (metric) be imported, as shown in the command syntax below:
syntax: deny|permit redistribute <filter-num> all|bgp|rip|static address <ip address> <network mask>
[match-metric <value> | set-metric <value>]
USING THE WEB MANAGEMENT INTERFACE
To define which routes are imported into OSPF, you can define a redistribution filter.
1. Select Redistribution Filter from the OSPF configuration sheet to display the OSPF Redistribution Filter panel,
as shown in Figure 10.10.
NOTE: If redistribution filters are already defined on a routing switch, then the summary panel, Show OSPF
Redistribution Filter, will appear. In this case, select Add OSPF Redistribution Filter to access the redistribu-
tion entry panel.
2. Enter the IP address and mask for routes that are to be permitted or denied. Entering 255.255.255.255 for
the IP address and mask is equivalent to "any" and allows routes from all networks to be imported.
3. Enter a filter ID. The ID can be any unused value from 1 – 64.
4. Select either Permit or Deny.
5. Select Static, RIP, BGP, or All to specify which protocol(s) to allow or deny being imported into OSPF routes.
6. To specify that only those routes that match a specific metric be imported, enable match RIP metric and enter
a specific value other than zero in the Match Metric field.
7. To apply an OSPF metric (other than that defined at the global level) to all imported routes, enable set OSPF
metric, then enter a value into the Set Metric field.
8. When all parameters are entered, select Add to apply the changes.
9. Repeat steps 1 – 8 for each redistribution filter you want to define.
10-18
Configuring OSPF
NOTE: You also can define the cost on individual interfaces. The interface cost overrides the default cost.
10-19
Advanced Configuration and Management Guide
NOTE: Do not enable redistribution until you have configured the redistribution filters. Otherwise, you might acci-
dentally overload the network with routes you did not intend to redistribute.
10-20
Configuring OSPF
OSPF Area 0
H1 R3
1
Act i vity
Act i vity
Act i vity
Act i vity
Act i vity
Act iv ity
Li n k
Li n k
Li n k
Li n k
Li n k
Li nk
2
3
R1
A ct iv it y
A ct iv it y
A ct iv it y
A ct iv it y
A ct iv it y
Ac t iv it y
L i nk
Li nk
Li nk
Li nk
Li nk
Li nk
4
5
5
5
A c t iv it y
Act iv it y
Act iv it y
Act iv it y
Act iv it y
Act iv it y
L i nk
Li nk
Li nk
Li nk
Li nk
Li nk
6
6
7
7
Ac ti vit y
Ac ti vit y
Ac ti vit y
Ac ti vit y
Ac ti vit y
Act i vit y
L in k
L in k
L in k
L in k
L in k
L in k
H2
8
R4
3
Z
U
*
*
*
* *
%$ %$ LJ LJ LJ LJ LJ *
D D D D D 0 LJ
6( 6( E E E E E J
7 7; LW LW LW LW LW P
; W
HP9308M
H3
R5
H4
R6
R4
In the example in Figure 10.12, the HP 9308M routing switch has four paths to R1:
• HP9308->R3
• HP9308->R4
• HP9308->R5
• HP9308->R6
Normally, the routing switch will choose the path to the R1 with the lower metric. For example, if R3’s metric is
1400 and R4’s metric is 600, the routing switch will always choose R4.
However, suppose the metric is the same for all four routing switches in this example. If the costs are the same,
the routing switch now has four equal-cost paths to R1. To allow the routing switch to load share among the equal
cost routes, enable IP load sharing. Software release 04.7.00 supports four equal-cost OSPF paths by default
when you enable load sharing. You can specify from 2 – 8 paths.
10-21
Advanced Configuration and Management Guide
10-22
Configuring OSPF
EXAMPLE: Figure 10.14 shows an example of a network that has seven equal-cost routes. For this network, you
need to enable IP load sharing for at least seven equal-cost paths.
H1 R3
1
1
1
Act i vi t y
Act i vi t y
Act i vi t y
Act i vi t y
Act i vi t y
Act i vi ty
Li n k
Li n k
Li n k
Li n k
Li n k
Li nk
2
3
ABR1
A cti vi yt
A cti vi yt
A cti vi yt
A cti vi yt
A cti vi yt
A ctiv it y
Link
Link
Link
Link
Link
Link
4
5
A cti vi yt
A cti vi yt
A cti vi yt
A cti vi yt
A cti vi yt
A ctiv it y
L ink
Link
Link
Link
Link
Link
6
7
7
A c t iv it y
A c t iv it y
A c t iv it y
A c t iv it y
A c t iv it y
A c ti vit y
L i nk
L i nk
L i nk
L i nk
L i nk
L in k
H2
8
R4
3Z
U
* * * * *
%$ %$ LJ LJ LJ LJ LJ *
6( 6( DE D
E DE DE DE 0 L J
7
7; LW LW LW LW LW JP
;
W
HP9308M
H3
R5
H4
R6
R4
ABR2
ABR3
ABR4
In this example, if you use the default value (4), the routing switch cannot load share among all seven paths.
Instead, the routing switch load shares among four of the paths and does not support the other three.
The software supports the paths in the order in which it learns about them from OSPF. If the network configuration
contains more equal-cost paths to a destination than the software is configured to support, not all the paths are
supported. Because the path information arrives dynamically, you might not be able to predict the paths that will
be supported.
10-23
Advanced Configuration and Management Guide
NOTE: The examples shown in the figures show all four hosts (H1 – H4) on the same sub-net. Because load
sharing is based on destination IP address, load sharing occurs among hosts in the same sub-net but does not
occur across sub-nets.
NOTE: The routing switch is not source routing in these examples. The routing switch is concerned only with the
paths to the next-hop routers, not the entire paths to the destination hosts.
10-24
Configuring OSPF
The <num> indicates the number of OSPF routes allowed and can be from 4000 – 32000. The change takes
effect after the routing switch is rebooted.
USING THE WEB MANAGEMENT INTERFACE
You cannot modify the maximum number of OSPF routes using the Web management interface.
10-25
Advanced Configuration and Management Guide
10-26
Configuring OSPF
Here is a summary of OSPF traps supported on the 9304M, 9308M, and 6308M-SX, their corresponding CLI
commands, and their associated MIB objects from RFC 1850:
• interface-state-change-trap [MIB object: OspfIfstateChange]
• virtual-interface-state-change-trap [MIB object: OspfVirtIfStateChange
• neighbor-state-change-trap [MIB object:ospfNbrStateChange]
• virtual-neighbor-state-change-trap [MIB object: ospfVirtNbrStateChange]
• interface-config-error-trap [MIB object: ospfIfConfigError]
• virtual-interface-config-error-trap [MIB object: ospfIfConfigError]
• interface-authentication-failure-trap [MIB object: ospfIfAuthFailure]
• virtual-interface-authentication-failure-trap [MIB object: ospfVirtIfAuthFailure]
• interface-receive-bad-packet-trap [MIB object: ospfIfrxBadPacket]
• virtual-interface-receive-bad-packet-trap [MIB object: ospfVirtIfRxBadPacket]
• interface-retransmit-packet-trap [MIB object: ospfTxRetransmit]
• virtual-interface-retransmit-packet-trap [MIB object: ospfVirtIfTxRetransmit]
• originate-lsa-trap [MIB object: ospfOriginateLsa]
• originate-maxage-lsa-trap [MIB object: ospfMaxAgeLsa]
• link-state-database-overflow-trap [MIB object: ospfLsdbOverflow]
• link-state-database-approaching-overflow-trap [MIB object: ospfLsdbApproachingOverflow
EXAMPLE 1: To stop an OSPF trap from being collected, use the CLI command: no trap <trap>, at the Router
OSPF level of the CLI. To disable reporting of the neighbor-state-change-trap, enter the following command:
HP9300(config-ospf-router)# no trap neighbor-state-change-trap
EXAMPLE 2: To reinstate the trap, enter the following command:
HP9300(config-ospf-router)# trap neighbor-state-change-trap
syntax: [no] snmp-server trap ospf <ospf trap>
10-27
Advanced Configuration and Management Guide
10-28
Configuring OSPF
10-29
Advanced Configuration and Management Guide
Ethernet Interface: v1
ip ospf md5-authentication-key-activation-wait-time 300
ip ospf cost 0
ip ospf area 0
10-30
Configuring OSPF
Indx The row number of the entry in the routing switch’s OSPF area table.
Chksum(Hex) The checksum for the LSA packet. The checksum is based on all the
fields in the packet except the age field. The routing switch uses the
checksum to verify that the packet is not corrupted.
10-31
Advanced Configuration and Management Guide
Index The number for this entry in the OSPF neighbor table.
Port The port through which the routing switch is connected to the
neighbor.
IP address The IP address of this routing switch’s interface with the neighbor.
Options The sum of the option bits in the Options field of the Hello packet.
This information is used by HP technical support. See Section A.2 in
RFC 2178 for information about the Options field in Hello packets.
Priority The OSPF priority of the neighbor. The priority is used during election
of the Designated Router (DR) and Backup designated Router (BDR).
State The state of the conversation between the routing switch and the
neighbor. This field can have one of the following values:
• Down – The initial state of a neighbor conversation. This
value indicates that there has been no recent information
received from the neighbor.
• Attempt – This state is only valid for neighbors attached to
non-broadcast networks. It indicates that no recent
information has been received from the neighbor.
• Init – A Hello packet has recently been seen from the
neighbor. However, bidirectional communication has not yet
been established with the neighbor. (The routing switch itself
did not appear in the neighbor's Hello packet.) All neighbors
in this state (or higher) are listed in the Hello packets sent
from the associated interface.
• 2-Way – Communication between the two routers is
bidirectional. This is the most advanced before beginning
adjacency establishment. The Designated Router and
Backup Designated Router are selected from the set of
neighbors in the 2-Way state or greater.
• ExStart – The first step in creating an adjacency between the
two neighboring routers. The goal of this step is to decide
which router is the master, and to decide upon the initial DD
sequence number. Neighbor conversations in this state or
greater are called adjacencies.
10-32
Configuring OSPF
State, cont. The state of the conversation between the routing switch and the
neighbor. This field can have one of the following values:
• Exchange – The routing switch is describing its entire link
state database by sending Database Description packets to
the neighbor. Each Database Description Packet has a DD
sequence number, and is explicitly acknowledged. Only one
Database Description Packet can be outstanding at any
time. In this state, Link State Request Packets can also be
sent asking for the neighbor's more recent advertisements.
All adjacencies in Exchange state or greater are used by the
flooding procedure. In fact, these adjacencies are fully
capable of transmitting and receiving all types of OSPF
routing protocol packets.
• Loading – Link State Request packets are sent to the
neighbor asking for the more recent advertisements that
have been discovered (but not yet received) in the Exchange
state.
• Full – The neighboring routers are fully adjacent. These
adjacencies will now appear in router links and network links
advertisements.
Router state The routing switch's state in terms of being a Designated Router or
Backup Designated router. The routing switch can have one of the
following roles:
• Designated – This routing switch is the Designated Router
for the network.
• Backup – This routing switch is the Backup Designated
Router for the network.
• DR Other – This routing switch is neither the DR nor the BDR
for the network.
10-33
Advanced Configuration and Management Guide
10-34
Configuring OSPF
Index The row number of the entry in the routing switch’s OSPF route table.
Path_Cost The cost of this route path. (A route can have multiple paths. Each
path represents a different exit port for the routing switch.)
Adv_Router The OSPF router that advertised the route to this routing switch.
Link-State The link state from which the route was calculated.
Flags State information for the route entry. This information is used by HP
technical support.
Out_Port The port through which the routing switch reaches the next hop for
this route path.
10-35
Advanced Configuration and Management Guide
Arp_Index The index position in the ARP table of the ARP entry for this path's IP
address.
Syntax: show ip ospf external-link-state [advertise <num>] | [link-state-id <IP-addr>] | [router-id <IP-addr>] |
[sequence-number <num(Hex)>] | [status <num>]
The advertise <num> parameter displays the hexadecimal data in the specified LSA packet. The <num>
parameter identifies the LSA packet by its position in the routing switch’s External LSA table. To determine an
LSA packet’s position in the table, enter the show ip ospf external-link-state command to display the table. See
“Displaying the Data in an LSA” on page 10-38 for an example.
The link-state-id <IP-addr> parameter displays the External LSAs for the LSA source specified by <IP-addr>.
The router-id <IP-addr> parameter shows the External LSAs for the specified OSPF router.
The sequence-number <num(Hex)> parameter displays the External LSA entries for the specified hexadecimal
LSA sequence number.
10-36
Configuring OSPF
Seq(hex) The sequence number of the LSA. The OSPF neighbor that sent the
LSA stamps it with a sequence number to enable the routing switch
and other OSPF routers to determine which LSA for a given route is
the most recent.
Chksum A checksum for the LSA packet. The checksum is based on all the
fields in the packet except the age field. The routing switch uses the
checksum to verify that the packet is not corrupted.
10-37
Advanced Configuration and Management Guide
10-38
Configuring OSPF
10-39
Advanced Configuration and Management Guide
10-40