This document describes the Open Shortest Path First (OSPF) protocol.
Routers that use a common routing protocol form an autonomous system (AS). This common routing protocol is called an Interior Gateway Protocol (IGP). Your OpenROUTE Networks router supports two IGPs, OSPF and RIP (Routing Information Protocol). IGPs dynamically detect your router's ability to reach a network and routing information within an AS and use this information to build the IP routing table. IGPs can also import external routing information into the AS.
OpenROUTE Networks routers can run OSPF and RIP simultaneously. When you configure your router to do this, OSPF routes are preferred. OSPF provides services not available with RIP. In general, OpenROUTE Networks recommends using the OSPF protocol due to its robustness, responsiveness, and decreased bandwidth requirements.
OSPF is based on link-state technology or the shortest-path first (SPF) algorithm. RIP is based on the Bellman-Ford or the distance-vector algorithm.
This document contains the following sections:
Introducing OSPF
Configuring OSPF
OSPF Commands
Introducing OSPF
OpenROUTE supports a complete implementation of the OSPF routing protocol as specified in RFC 1583 (Version 2) and also certain new capabilities specified in RFC 2178. Version 2 is incompatible with routers running OSPF version 1. OSPF information is not exchanged between routers running version 1 and version 2.
OSPF is a link state dynamic routing protocol that detects and learns the best routes to (reachable) destinations. It can quickly perceive changes in the topology of an AS and, after a short convergence period, calculate new routes. The OSPF protocol does not encapsulate IP packets but forwards them based on destination address only.
OSPF Features
OSPF features include the following:
Least Cost Routing. Allows you to configure path costs based on any combination of network parameters. For example, bandwidth, delay, and dollar cost.
No limitations to the routing metric. While RIP restricts the routing metric to 16 hops, OSPF has no restriction.
Multipath Routing. Allows you to use multiple paths of equal cost that connect the same points. You can then use these paths for load balancing, resulting in more efficient use of network bandwidth.
Area Routing. Decreases the resources (memory and network bandwidth) consumed by the protocol and provides an additional level of routing protection.
Variable Length Subnet Masks. Allow you to break an IP address into variable size subnets, conserving IP address space.
Routing Authentication. Supports MD5 authentication.
Point-to-Multipoint. Override the default OSPF interface type and then select point-to multipoint as the OSPF interface type override.
Point-to-Point. Networks that use a communication line to join a single pair of routers. For example, a 56 Kb serial line that connects two routers.
Point-to-Multipoint. Networks that support a communication line to join a single router with multiple routers. For example, a Frame Relay network.
Broadcast. Networks that support more than two attached routers and are capable of addressing a single physical message to all attached routers. For example, an Ethernet network.
Non-Broadcast. Networks that support more than two attached routers but have no broadcast capabilities, such as a Frame Relay network. For OSPF to function properly, this network requires extra configuration information about other OSPF routers attached to the non-broadcast network.
Area Border Routers. A router attached to multiple areas that runs multiple copies of the basic algorithm, one copy for each attached area and an additional copy for the backbone. Area border routers condense the topology information of attached areas for distribution to the backbone. The backbone then distributes this information to other areas.
AS Boundary Routers. A router that exchanges information with routers that belong to other ASs. These routers import this information to the OSPF routing domain in AS external link advertisements.
If you want to forward IP multicasts (IP Class D addresses), enable IP multicast routing capability. See Enabling Multicast Forwarding.
If you want the router to import routes learned from other routing protocols (RIP, EGP, or statically configured routes), enable AS boundary routing and define whether routes are imported as Type 2 or Type 1 externals. See Enabling AS Boundary Routing.
If the router connects to non-broadcast networks, set the non-broadcast network parameters. This consists of a list of the other OSPF routers that are connected to the non-broadcast network.
If you want to boot a neighboring router over an attached point-to-point interface, configure the neighbor's IP address. This is done by defining non-broadcast parameters for the point-to-point interface.
OSPF Config>enable ospf
Estimated # external routes[0]? 200
Estimated # OSPF routers [0]? 60
Estimated # external routesTotal number of AS external routes that will be imported into the OSPF routing domain. A single destination may lead to multiple external routes when it is imported by separate AS boundary routers.
For example, if the OSPF routing domain has two AS boundary routers, both importing routes to the same 100 destinations, set the number of AS external routes to 200.
Estimated # OSPF routersTotal number of OSPF routers in the routing domain.

Networks belonging to Area 0.0.0.0
Routers attached to those networks
Routers belonging to multiple areas
Configured virtual links
OSPF Config>set area
Area number [0.0.0.0]? 0.0.0.1
Authentication Type (0:NONE, 1:SIMPLE, 2:CRYPTOGRAPHIC) [0]? 1
Is this a stub area? [No]:
Area number is the OSPF area address. An OSPF area is a contiguous group of networks that is defined by a list of address ranges, each indicated by a combination of the IP address and an address mask. A network belongs to an area if its address is in the list.
Authentication type (security scheme) to be used in the area:
| Type | Meaning |
|---|---|
| 0 | No authentication necessary |
| 1 | A simple password |
| 2 | Cryptographic (MD5 authentication) |
Stub area designation. If you enter Yes,
The area does not receive any AS external link advertisements, reducing the size of the area's OSPF database and decreasing memory usage for external routers in the stub area.
You cannot configure virtual links through a stub area.
You cannot configure a router within the stub area as an AS boundary router.
Note: You cannot configure the backbone as a stub area. External routing in stub areas is based on a default route. Each border area router attaching to a stub area originates a default route for this purpose. You can configure the cost of this default route using the OSPF set area command.
OSPF Config>set area
Area number [0.0.0.0]? 0.0.0.2
Authentication Type (0:NONE, 1:SIMPLE, 2:CRYPTOGRAPHIC) [0]? 1
Is this a stub area? [No]: yes
Stub default cost [0]?
Import summaries? [Yes]:
Hello interval
Dead router interval
Authentication key
OSPF Config>set interface
Interface IP address [0.0.0.0]? 128.185.123.75
Attaches to area [0.0.0.0]? 0.0.0.1
Retransmission Interval (in seconds) [5]?
Transmission Delay (in seconds) [1]?
Router Priority [1]?
Hello Interval (in seconds) [10]?
Dead Router Interval (in seconds) [40]?
Type Of Service 0 cost [1]? 5
Authentication Key?
Retype Auth. Key?
Message Digest Key ID [0]?
MD5 Key?
Retype MD5 Key?
Override the default OSPF interface-type? [No]: y
OSPF interface-type override
(1=broadcast, 3=NBMA, 5=point-to-multipoint) [0]? 3
Poll Interval [120]?
Forward multicast datagrams? [Yes]:
Forward as data-link unicasts? [No]:
While forwarding IP multicasts is not reliable, IP multicast datagrams are delivered with the same best effort as with the delivery of IP unicasts.
Multicast datagrams travel the shortest path between the datagram source and any particular destination (OSPF link state cost). This occurs because a separate tree is built for each datagram source and destination group pair.
A multicast datagram is forwarded as a data-link multicast at each hop. The Address Resolution Protocol (ARP) is not used. For some network technologies, mapping between Class D addresses and data-link multicast occurs while for others, Class D addresses are mapped to the data-link broadcast address.
When paths from the datagram source to two separate group members share an initial common segment, only a single datagram is forwarded until the paths go in separate directions. The path can split at either a router or at a network. If the path splits at a router, the router copies the packet before sending it. If the path splits at a network, the packet replicates through a data-link multicast.
You can use MOSPF routers with OSPF routers that do not support multicast extensions. In this configuration, all routers interoperate in the routing of unicasts. This lets you slowly introduce multicast capability into an internetwork.
Some configurations of MOSPF and non-MOSPF routers may produce unexpected failures in multicast routing.
You construct separate multicast paths in MOSPF for each TOS. However, routers do not support TOS-based routers. You can mix non-TOS routers with TOS-based routers, but this causes TOS to be ignored in the forwarding of multicasts.
You configure the router to send Simple Network Management Protocol (SNMP) traps to a multicast group address by adding a group address to a particular SNMP community name.
By default the router does not forward IP multicast (class D) datagrams. To display the multicast parameters, use the list interfaces command. If multicast is disabled, the multicast parameters are not displayed.OSPF Config>enable multicast
Inter-area multicasting enabled(Yes or No): yes
Inter-AS multicasting enabled(Yes or No): yes
RIP routes
EGP routes
Static routes
Direct routes
OSPF Config>enable as
Import EGP routes? [Yes]:
Import BGP routes? [Yes]:
Automatically generate tags? [Yes]:
Import RIP routes? [Yes]:
Import static routes? [No]:
Import direct routes? [Yes]:
Import subnet routes? [No]:
Always originate default route? [Yes]: no
Originate default if EGP/BGP routes available? [No]: yes
From AS number [0]? 12
To network number [0.0.0.0]? 10.0.0.0
Originate as type 1 or 2 [2]?
Default route cost [1]?
Default forwarding address [0.0.0.0]?
OSPF Config> set interface
Interface IP address [0.0.0.0]? 128.185.138.19
Attaches to area [0.0.0.0]?
.
.
.
Override the default OSPF interface-type? [No]: yes
OSPF interface-type override
Poll Interval [120]?
OSPF Config> add neighbor
Interface IP address [0.0.0.0]? 128.185.138.19
IP Address of Neighbor [0.0.0.0]? 128.185.138.21
Can that router become Designated Router [Yes]?
OSPF Config>set virtual-link
Virtual endpoint (Router ID) [0.0.0.0]? 128.185.138.21
Link's transit area [0.0.0.1]?
Retransmission Interval (in seconds) [10]?
Transmission Delay (in seconds) [5]?
Hello Interval (in seconds) [30]?
Dead Router Interval (in seconds) [180]?
Authentication Key?
Message Digest Key ID [0]?
Message Digest Key?
Retype Message Digest Key?
Intra-area routing occurs when a packet's source and destination address reside in the same area. For example, N1 and N2 in Area 1 (Figure 1). Information that is about other areas does not affect this type of routing.
Inter-area routing occurs when the packet's source and destination addresses reside in different areas of an AS, for example, N1 of Area 1 and N7 of Area 2 (Figure 1). OSPF does inter-area routing by dividing the path into three contiguous pieces: an intra-area path from source to an area border router; a backbone path between the source and destination areas; and then another intra-area path to the destination. You can visualize this high-level of routing as a star topology with the backbone as hub and each of the areas as a spoke.
Exterior routes are paths to networks that lie outside the AS. These routes originate either from routing protocols, such as Exterior Gateway Protocol (EGP) or from static routes. The exterior routing information that EGP provides does not interfere with the internal routing information that OSPF provides.
OSPF Config>set comparison
Compare to type 1 or 2 externals [2]?

Press Space twice after you type a command to display the available options for each command. Enter help for information about using the command line interface. [C] means the command is available at the OSPF config> prompt. [M] means the command is available at the OSPF> prompt.
Add [C]
Adds ranges to OSPF areas as well as neighbors to non-broadcast networks.
Syntax: add
add range
Area number [0.0.0.0]? 0.0.0.2
IP Address [0.0.0.0]? 128.185.0.0
IP Address Mask [0.0.0.0]? 255.255.0.0
Inhibit advertisement? [No]:
add neighbor
Interface IP address [0.0.0.0]? 128.185.138.19
IP Address of Neighbor [0.0.0.0]? 128.185.138.21
Can that router become Designated Router [Yes]?
Router linksContain descriptions of a single router's interface.
Network linksContain the list of routers attached to a particular interface.
Summary netsContain descriptions of a single inter-area route.
Summary AS boundary routersContain descriptions of the route to an AS boundary router in another area.
AS external netsContain descriptions of a single route.
Multicast group membershipsContain descriptions of a particular group's membership in the neighborhood of the advertising router.
advertisement
Link state type [1]?
Link state ID (destination) [0.0.0.0]? 10.1.2.7
For which area [0.0.0.0]? 2.2.2.2LS age: 437
LS options: E,MC
LS type: 1
LS destination (ID): 10.1.2.7
LS originator: 10.1.2.7
LS sequence no: 0x80000025
LS checksum: 0xB13C
LS length: 72
Router type:
# router ifcs: 4
Link ID: 10.1.50.16
Link Data: 10.1.2.7
Interface type: 1
No. of metrics: 0
TOS 0 metric: 1 (1)
Link ID: 10.1.22.0
Link Data: 255.255.255.0
Interface type: 3
No. of metrics: 0
TOS 0 metric: 1
Link ID: 10.1.2.16
Link Data: 255.255.255.255
Interface type: 3
No. of metrics: 0
TOS 0 metric: 1
Link ID: 10.1.50.7
Link Data: 255.255.255.255
Interface type: 3
No. of metrics: 0
TOS 0 metric: 0
The LS age, LS options, LS type, LS destination, LS originator, LS sequence no, LS checksum and LS length fields are common to all advertisements. The Router type and # router ifcs are seen only in router links advertisements. Each link in the router advertisement is described by the Link ID, Link Data, and Interface type fields. Each link can also be assigned a separate cost for each IP Type of Service (TOS); this is described by the No. of metrics and TOS 0 metric fields (the router currently does not router based on TOS, and looks at the TOS 0 cost only).
The next example shows an expansion of a group-membership advertisement. A group-membership advertisement for a given group/advertising router combination lists those networks directly attached to the advertising router which have group members. It also lists whether the router itself is a member of the specified group. The example below shows that network 128.185.184.0 has members of group 224.0.1.1.
Example:
adv 6 224.0.1.1 128.185.184.114
For which area [0.0.0.0]?
LS age: 168
LS options: E
LS type: 6
LS destination (ID): 224.0.1.1
LS originator: 128.185.184.114
LS sequence no: 0x80000001
LS checksum: 0x7A3
LS length: 28
Vertex type: 2
Vertex ID: 128.185.184.114
Area [M]
Displays the statistics and parameters for all OSPF areas attached to the router.
In the example below, the router attaches to a single area (the backbone area) and uses a simple password scheme for the area's authentication. The router has three interfaces attaching to the area, and has found 4 transit networks, 7 routers and no area border routers when calculating the SPF tree for the backbone.
Syntax: area summary
area summary
Area ID Authentication #ifcs #nets #rtrs #brdrs
2.2.2.2 None 1 2 5 3
0.0.0.0 None 1 0 2 2
5.5.5.5 None 1 1 3 1
AS-external [M]
Lists the AS external advertisements that belong to the OSPF link state database. Each advertisement is defined by the following parameters: its link state type (always 5 for AS external advertisements), its link state ID (called the LS destination), and the advertising router (called the LS originator).
Syntax: as-external
as-external
Type LS destination LS originator Seqno Age Xsum
5 0.0.0.0 128.185.123.22 0x80000084 430 0x41C7
5 128.185.131.0 128.185.123.22 0x80000080 450 0x71DC
5 128.185.132.0 128.185.123.22 0x80000080 450 0x66E6
5 128.185.144.0 128.185.123.22 0x80000002 329 0xF2CA
5 128.185.178.0 128.185.123.22 0x80000081 450 0x72AA
5 128.185.178.0 128.185.129.40 0x80000080 382 0xDD28
5 129.9.0.0 128.185.123.22 0x80000082 451 0x4F30
5 129.9.0.0 128.185.126.24 0x80000080 676 0x324A
5 134.216.0.0 128.185.123.22 0x80000082 451 0x505A
5 134.216.0.0 128.185.126.24 0x80000080 676 0x3374
5 192.9.3.0 128.185.123.22 0x80000082 451 0xF745
5 192.9.3.0 128.185.126.24 0x80000080 677 0xDA5F
5 192.9.12.0 128.185.123.22 0x80000082 452 0x949F
5 192.9.12.0 128.185.128.41 0x80000080 679 0x31B2
5 192.26.100.0 128.185.123.22 0x80000081 452 0xFDCD
5 192.26.100.0 128.185.126.24 0x80000080 21 0xDEE8
etc.
# advertisements: 133
Checksum total: 0x43CC41
The end of the display shows the total number of AS external advertisements, along with a checksum total over all of their contents. The checksum total is simply the 32-bit sum (carries discarded) of the individual advertisement's LS checksum fields. You can use this information to quickly determine whether two OSPF routers have synchronized databases.
Database [M]
Displays the contents of a particular OSPF area's link state database. AS external advertisements are omitted from the display. Each advertisement is defined by the following parameters: link state type (called Type), link state ID (called the LS destination) and the advertising router (called the LS originator).
Syntax: database summary area-id
database
For which area [0.0.0.0]? 0.0.0.0
Type LS destination LS originator Seqno Age Xsum
1* 10.1.2.7 10.1.2.7 0x80000025 390 0xB13C
1* 10.1.26.9 10.1.26.9 0x80000016 393 0x987D
1* 10.1.26.41 10.1.26.41 0x80000018 122 0x533D
1* 10.1.40.40 10.1.40.40 0x80000015 192 0x317C
1* 10.1.50.16 10.1.50.16 0x80000031 394 0x7A74
2* 10.1.25.40 10.1.40.40 0x80000006 193 0xCB35
2* 10.1.26.16 10.1.50.16 0x80000007 401 0x9669
3* 10.2.50.9 10.1.26.9 0x80000010 397 0xA430
3* 10.5.0.0 10.1.26.41 0x8000000F 133 0x4E9E
3* 10.5.50.41 10.1.26.9 0x80000006 394 0x5D5D
3* 128.185.214.0 10.1.40.40 0x8000000E 740 0x3CA2
6 224.185.0.0 10.1.50.16 0x8000000F 469 0x9B7A
6 225.0.1.36 10.1.2.7 0x80000006 405 0x5CC8
6 225.0.1.36 10.1.26.9 0x8000000F 404 0x8265
6 225.0.1.36 10.1.26.41 0x8000000F 133 0x3A4
6 225.0.1.36 10.1.40.40 0x8000000E 755 0x1D71
6 225.0.1.100 10.1.50.16 0x80000006 476 0x5E14
# advertisements: 17
Checksum total: 0x73121
The end of the display shows the total number of advertisements in the area databas, along with a checksum total over all of their contents. The checksum total is simply the 32-bit sum (carries discarded) of the individual advertisement's LS checksum fields. You can use this information to quickly determine whether two OSPF routers have synchronized databases.Note: When comparing multicast-capable to non-multicast routers, the above database checksum (and also # advertisements) does not necessarily match because non-multicast routers do not handle or store group-membership-LSAs.
delete range
Area number [0.0.0.0]? 1.1.1.1
IP Address [0.0.0.0]? 128.185.0.0
IP Address Mask [0.0.0.0]? 255.255.0.0
delete area 0.0.0.1
delete interface 128.185.138.19
delete neighbor
Interface IP address [0.0.0.0]? 128.185.138.19
IP Address of Neighbor [0.0.0.0]? 128.185.138.21
delete virtual-link
Virtual endpoint (Router ID) [0.0.0.0]?
Link's transit area [0.0.0.1]?
disable as boundary routing
disable multicast forwarding
disable OSPF routing protocol
disable subnet
Interface IP address [0.0.0.0]?
dump
Type Dest net Mask Cost Age Next hop(s)
Sbnt 10.0.0.0 FF000000 1 0 None
Rnge 10.1.0.0 FFFF0000 1 0 None
SPF 10.1.2.7 FFFFFFFF 2 2 10.1.26.16
SPF 10.1.2.16 FFFFFFFF 3 3 10.1.26.16
SPF 10.1.7.16 FFFFFFFF 3 3 10.1.26.16
SPF 10.1.7.40 FFFFFFFF 2 2 10.1.26.16
SPF 10.1.22.0 FFFFFF00 3 3 10.1.26.16
SPF 10.1.25.0 FFFFFF00 2 2 10.1.26.16
SPF* 10.1.26.0 FFFFFF00 1 1 FDDI/0
SPF 10.1.40.40 FFFFFFFF 2 2 10.1.26.16
SPF 10.1.50.7 FFFFFFFF 2 2 10.1.26.16
SPF 10.1.50.16 FFFFFFFF 1 1 10.1.26.16
SPF 10.2.50.9 FFFFFFFF 1 1 10.1.26.9
Rnge 10.5.0.0 FFFF0000 1 0 None
Dir* 10.5.9.0 FFFFFF00 1 0 SL/0
SPF 10.5.9.14 FFFFFFFF 1 1 10.5.9.14
SPF 10.5.9.41 FFFFFFFF 2 2 SL/0
SPF 10.5.22.0 FFFFFF00 8 8 10.5.9.14
SPF 10.5.33.0 FFFFFF00 2 2 10.5.9.14
SPF 10.5.50.14 FFFFFFFF 1 1 10.5.9.14
SPF 10.5.50.41 FFFFFFFF 0 0 SINK/0
Stat* 128.185.0.0 FFFF0000 1 0 10.1.26.16
Routing table size: 768 nets (49152 bytes), 22 nets known
Enable [C]
Enables either the entire OSPF protocol or just the AS boundary routing capability, IP multicast routing, or the subnet advertisement option.
Syntax: enable
enable as
Import EGP routes(Yes or No): yes
Import RIP routes(Yes or No): no
Import static routes(Yes or No): no
Import direct routes(Yes or No): yes
Import subnet routes(Yes or No): no
Originate default if EGP routes available []? yes
From AS number [0]? 12
To network number [0.0.0.0]? 10.0.0.0
Originate as type 1 or 2 [2]?
Default route cost [1]?
enable multicast
Inter-area multicasting enabled (Yes or No): yes
Inter-AS multicasting enabled (Yes or No): yes
Multicast forwarding is enabled.
Multicast datagrams are forwarded as data-link multicasts.
Total number of AS external routes that will be imported into the OSPF routing domain.
A single destination may lead to multiple external routes when separate AS boundary routers import the destination. For example, if the OSPF routing domain has two AS boundary routers, both importing routes to the same 100 destinations, set the number of AS external routes to 200.
Total number of OSPF routers in the routing domain.
enable ospf
Estimated # external routes[0]? 200
Estimated # OSPF routers [0]? 60
enable subnet
Interface IP address [0.0.0.0]?
igmp
Internet Group Management Protocol Configuration
IGMP Config>
interface
Ifc Address Phys assoc. Area Type State #nbrs #adjs
10.1.26.41 FDDI/0 2.2.2.2 Brdcst 32 2 2
10.5.9.41 SL/0 5.5.5.5 P-P 8 2 1
- Unnumbered - VL/0 0.0.0.0 VLink 8 1 1
Example:
interface 128.185.125.22
Interface address: 10.1.26.41
Attached area: 2.2.2.2
Physical interface: FDDI/0
Interface mask: 255.255.255.0
Interface type: Brdcst
State: 32
Designated Router: 10.1.26.16
Backup DR: 10.1.26.41
DR Priority: 1 Hello interval: 10 Rxmt interval: 5
Dead interval: 40 TX delay: 1 Poll interval: 0
Max pkt size: 4352 TOS 0 cost: 1
# Neighbors: 2 # Adjacencies: 2 # Full adjs.: 2
# Mcast floods: 31 # Mcast acks: 98
MC forwarding: on DL unicast: off IGMP monitor: on
# MC data in: 0 # MC data acc: 0 # MC data out: 0
List [C]
Displays OSPF configuration information.
Syntax: list
list all
--Global configuration--
OSPF Protocol: Enabled
# AS ext. routes: 5000
Estimated # routers: 50
External comparison: Type 2
AS boundary capability: Disabled
Multicast forwarding: Enabled
Inter-area multicast: Enabled
Inter-AS multicast: Disabled
--Area configuration--
Area ID AuType Stub? Default-cost Import-summaries?
2.2.2.2 0=None No N/A N/A
0.0.0.0 0=None No N/A N/A
5.5.5.5 0=None Yes 0 Yes
--Area ranges--
Area ID Address Mask Advertise?
2.2.2.2 10.1.0.0 255.255.0.0 Yes
5.5.5.5 10.5.0.0 255.255.0.0 Yes
--Interface configuration--
IP address Area Cost Rtrns TrnsDly Pri Hello Dead
10.1.26.41 2.2.2.2 1 5 1 1 10 40
10.5.9.41 5.5.5.5 1 5 1 1 10 40
Multicast parameters
IP address MCForward DLUnicast
10.1.26.41 On Off
10.5.9.41 On Off
--Virtual link configuration--
Virtual endpoint Transit area Rtrns TrnsDly Hello Dead
10.1.26.9 2.2.2.2 10 5 30 180
--NBMA configuration--
Interface Addr Poll Interval
10.5.9.41 120
--Neighbor configuration--
Neighbor Addr Interface Address DR eligible?
10.5.9.14 10.5.9.41 yes
areas
Lists all information concerning configured OSPF areas.
Example: list areas
--Area configuration--
Area ID Stub? Default-cost Import-summaries?
1.1.1.1 Yes 0 Yes
|
Area-ID
| Attached area ID (area summary information). |
|
Stub area
| Displays whether or not the area being summarized is a stub area. |
interfaces
For each interface its IP address is printed, together with configured parameters.
Example: list interfaces
--Interface configuration--
IP address Area Cost Rtrns TrnsDly Pri Hello Dead162.6.0.34 1.1.1.1 1 5 1 1 10 40
128.185.5.2 0.0.0.0 1 5 1 1 10 40
128.185.5.9 0.0.0.0 1 5 1 1 10 40
IP address AuType MDId SbntOpt IfcType NBMAPoll
162.6.0.34 0=None 0 Off Deflt 120
128.185.5.2 2=Crypto 4 Off Deflt 120
128.185.5.9 2=Crypto 4 Off P-2-MP 120
Multicast parameters
IP address MCForward DLUnicast
162.6.0.34 On Off
128.185.5.2 On Off
128.185.5.9 On Off
neighbors
Lists all information related to interfaces connected to non-broadcast networks. For each non-broadcast interface, as long as the router is eligible to become designated router on the attached network, the polling interval is displayed together with a list of the router's neighbors on the non-broadcast network.
Example: list neighbors
Interface Addr Poll Interval
128.185.235.34 120
list virtual-link
--Virtual link configuration--
Virtual endpoint Transit area Rtrns TrnsDly Hello Dead
10.1.26.9 2.2.2.2 10 5 30 180
mcache
0: FDDI/0 1: SL/0 2: SL/1
3: SL/2 4: SL/3 5: Eth/0
6: Eth/1 7: Eth/2 8: Eth/3
9: Eth/4 10: Eth/5 11: Eth/6
12: Eth/7 13: Internal
Source Destination Count Upst Downstream
10.5.50.41 225.0.1.100 3 Local 0
10.5.50.14 225.0.1.100 3 1 0
10.2.50.9 225.0.1.100 3 0 None
10.1.50.7 225.0.1.100 3 0 None
10.1.50.16 225.0.1.36 3 0 1,13
There is more information in a multicast forwarding cache entry. You can display a cache entry in detail by providing the source and destination of a matching datagram on the command line. If a matching cache entry is not found, one is built. A sample of this command follows:
Example:
mcache 128.185.182.9 224.0.1.2
source Net: 128.185.182.0
Destination: 224.0.1.2
Use Count: 472
Upstream Type: Transit Net
Upstream ID: 128.185.184.114
Downstream: 128.185.177.11 (TTL = 2)
Mstats [M]
Displays various multicast routing statistics. The command indicates whether multicast routing is enabled and whether the router is an inter-area and/or inter-AS multicast forwarder.
Syntax: mstats
mstats
MOSPF forwarding: Enabled
Inter-area forwarding: Enabled
DVMRP forwarding: Disabled
Datagrams received: 4301 Datagrams (ext source): 0
Datagrams fwd (multicast): 4122 Datagrams fwd (unicast): 0
Locally delivered: 2009 No matching rcv interface: 0
Unreachable source: 0 Unallocated cache entries: 0
Off multicast tree: 0 Unexpected DL multicast: 0
Buffer alloc failure: 0 TTL scoping: 0
# DVMRP routing entries: 0 # DVMRP entries freed: 0
# fwd cache alloc: 57 # fwd cache freed: 52
# fwd cache GC: 0 # local group DB alloc: 1
# local group DB free: 0
The number of cache hits can be calculated as the number of datagrams received (Datagrams received) minus the total of datagrams discarded due to No matching rcv interface, Unreachable source and Unallocated cache entries, and minus # local group DB alloc." The number of cache misses is simply # local group DB alloc.
Neighbor [M]
Displays statistics and parameters related to OSPF neighbors. If you include a neighbor's IP address, this command displays detailed statistics for that neighbor.
Syntax: neighbor summary neighbor-ip-address
neighbor
Neighbor addr Neighbor ID State LSrxl DBsum LSreq Ifc
128.185.125.39 128.185.136.39 128 0 0 0 Pro/1
128.185.125.41 128.185.128.41 8 0 0 0 Pro/1
128.185.125.38 128.185.125.38 8 0 0 0 Pro/1
128.185.125.25 128.185.129.25 8 0 0 0 Pro/1
128.185.125.40 128.185.129.40 128 0 0 0 Pro/1
128.185.125.24 128.185.126.24 8 0 0 0 Pro/1
Example:
neighbor 128.185.138.39
Neighbor IP address: 128.185.184.34
OSPF Router ID: 128.185.207.34
Neighbor State: 128
Physical interface: Eth/1
DR choice: 128.185.184.34
Backup choice: 128.185.184.11
DR Priority: 1
Nbr options: E,MC
DB summ qlen: 0 LS rxmt qlen: 0 LS req qlen: 0
Last hello: 7
# LS rxmits: 108 # Direct acks: 13 # Dup LS rcvd: 572
# Old LS rcvd: 2 # Dup acks rcv: 111 # Nbr losses: 29
# Adj. resets: 30
Ping [M]
Ping uses the ICMP protocol's ECHO_REQUEST datagram to elicit an ICMP ECHO_RESPONSE from the specified host or network gateway. Ping is generally used to test for reachability between network nodes.
Syntax: ping address
ping 10.1.155.29
-----------10.1.151.29 PING Statistics-------------
7 packets transmitted, 7 packets received, 0% packet loss
routers
DType RType Destination Mask Cost Next hop(s)
ASBR SPF 128.185.142.9 FFFFFFFF 1 128.185.142.9
Fadd SPF 128.185.142.98 FFFFFFFF 1 0.0.0.0
Fadd SPF 128.185.142.7 FFFFFFFF 1 0.0.0.0
Fadd SPF 128.185.142.48 FFFFFFFF 1 0.0.0.0
Fadd SPF 128.185.142.111 FFFFFFFF 1 0.0.0.0
Fadd SPF 128.185.142.38 FFFFFFFF 1 0.0.0.0
Fadd SPF 128.185.142.11 FFFFFFFF 1 0.0.0.0
BR SPF 128.185.142.9 FFFFFFFF 1 128.185.142.9
BR SPF 128.185.142.9 FFFFFFFF 2 128.185.184.114
Fadd SPF 128.185.142.47 FFFFFFFF 1 0.0.0.0
Set [C]
Establishes or changes the configuration information of OSPF areas, interfaces, or virtual links. This command also lets you set the way in which OSPF routes are compared to information obtained from other routing protocols.
Syntax: set
set area
Area number [0.0.0.0]? 0.0.0.1
Is this a stub area? [No]: yes
Stub default cost [0]?Import summaries? [Yes]:
set comparison
Compare to type 1 or 2 externals [2]?
set interface
Interface IP address [0.0.0.0]? 128.185.123.99
Attaches to area [0.0.0.0]?
Retransmission Interval (in seconds) [5]?
Transmission Delay (in seconds) [1]?
Router Priority [1]?
Hello Interval (in seconds) [10]?
Dead Router Interval (in seconds) [40]?
Type Of Service 0 cost [1]?
Authentication Type (0:NONE, 1:SIMPLE, 2:CRYPTOGRAPHIC) [0]? 2
Message Digest Key ID [0]? 4
MD5 Key?
Retype MD5 Key?
Override the default OSPF interface-type? [No]: yes
OSPF interface-type override
(1=broadcast, 3=NBMA, 5=point-to-multipoint) [0]? 5
Forward multicast datagrams? [Yes]:
Forward as data-link unicasts? [No]:If you select interface type 3 (NBMA):
(1=broadcast, 3=NBMA, 5=point-to-multipoint) [0]? 3
Poll Interval [120]?
Hello interval
Dead router interval
Authentication key (if an authentication type of 1 is used)
|
Authentication Type
| Security scheme used for the interface. The choices are: |
|
Message Digest Key ID
| |
|
Default OSPF interface type
|
virtual-link
Configures virtual links between any two area border routers. To maintain backbone connectivity you must have all of your backbone routers interconnected either by permanent or virtual links. Virtual links are considered to be separate router interfaces connecting to the backbone area. Therefore, you are asked to also specify many of the interface parameters when configuring a virtual link.
Example: set virtual-link
Virtual endpt. (Router ID) [0.0.0.0]? 128.185.138.21
Link's transit area [0.0.0.1]? 0.0.0.1
Retransmission Interval (in seconds) [10]?
Transmission Delay (in seconds) [5]?
Hello Interval (in seconds) [30]?
Dead Router Interval (in seconds) [180]?
Authentication Key []? 3-14159
size
# Router-LSAs: 7
# Network-LSAs: 6
# Summary-LSAs: 14
# Summary Router-LSAs: 2
# AS External-LSAs: 44
# Group-membership-LSAs: 21
statistics
S/W version: 2.1
OSPF Router ID: 10.1.26.41
External comparison: Type 2
AS boundary capability: No
Import external routes: None
Orig. default route: No (0,0.0.0.0)
Default route cost: (1, Type 2)
Default forward. addr: 0.0.0.0
Attached areas: 3 Estimated # external routes: 5000
Estimated # OSPF routers: 50 Estimated heap usage: 464800
OSPF packets rcvd: 3682 OSPF packets rcvd w/ errs: 0
Transit nodes allocated: 192 Transit nodes freed: 177
LS adv. allocated: 460 LS adv. freed: 431
Queue headers alloc: 32 Queue headers avail: 32
# Dijkstra runs: 86 Incremental summ. updates: 1
Incremental VL updates: 21 Buffer alloc failures: 0
Multicast pkts sent: 2465 Unicast pkts sent: 33
LS adv. aged out: 0 LS adv. flushed: 86
Incremental ext. updates: 84External LSA database:
Current state: Normal
Number of LSAs: 0
Number of overflows: 0