Configuring OSPF
Beginning in privileged EXEC mode, follow these steps to configure a loopback interface:
Command
Step 1
configure terminal
Step 2
interface loopback 0
Step 3
ip address address mask
Step 4
end
Step 5
show ip interface
Step 6
copy running-config startup-config
Use the no interface loopback 0 global configuration command to disable the loopback interface.
Monitoring OSPF
You can display specific statistics such as the contents of IP routing tables, caches, and databases.
Table 30-7
database privileged EXEC command options and for explanations of fields in the resulting display, refer
to the Cisco IOS IP and IP Routing Command Reference for Release 12.1.
Table 30-7 Show IP OSPF Statistics Commands
Command
show ip ospf [process-id]
show ip ospf [process-id] database [router] [link-state-id]
show ip ospf [process-id] database [router] [self-originate]
show ip ospf [process-id] database [router] [adv-router [ip-address]]
show ip ospf [process-id] database [network] [link-state-id]
show ip ospf [process-id] database [summary] [link-state-id]
show ip ospf [process-id] database [asbr-summary] [link-state-id]
show ip ospf [process-id] database [external] [link-state-id]
show ip ospf [process-id area-id] database [database-summary]
show ip ospf border-routes
show ip ospf interface [interface-name]
show ip ospf neighbor [interface-name] [neighbor-id] detail
show ip ospf virtual-links
Catalyst 3560 Switch Software Configuration Guide
30-36
Purpose
Enter global configuration mode.
Create a loopback interface, and enter interface configuration mode.
Assign an IP address to this interface.
Return to privileged EXEC mode.
Verify your entries.
(Optional) Save your entries in the configuration file.
lists some of the privileged EXEC commands for displaying statistics. For more show ip ospf
Chapter 30
Configuring IP Unicast Routing
Purpose
Display general information about OSPF routing
processes.
Display lists of information related to the OSPF
database.
Display the internal OSPF routing ABR and ASBR
table entries.
Display OSPF-related interface information.
Display OSPF interface neighbor information.
Display OSPF-related virtual links information.
78-16156-01