Chapter 50
  |  IP Routing Commands
Open Shortest Path First (OSPFv2)
ā  1030  ā
passive-interface This command suppresses OSPF routing traffic on the specified interface. Use the 
no form to allow routing traffic to be sent and received on the specified interface.
Syntax 
[no] passive-interface vlan vlan-id [ip-address]
vlan-id - VLAN ID. (Range: 1-4094) 
ip-address - An IPv4 address configured on this interface. 
Command Mode 
Router Configuration
Default Setting 
None
Command Usage 
You can configure an OSPF interface as passive to prevent OSPF routing traffic from 
exiting or entering that interface. No OSPF adjacency can be formed if one of the 
interfaces involved is set to passive mode. The specified interface will appear as a 
stub in the OSPF domain. Also, if you configure an OSPF interface as passive where 
an adjacency already exists, the adjacency will drop almost immediately.
Example
Console(config-router)#passive-interface vlan 1
Console(config-router)#
Display Information
show ip ospf This command shows basic information about the routing configuration.
Syntax 
show ip ospf [process-id]
process-id - The ID of the router process for which information will be 
displayed. (Range: 1-65535)
Command Mode 
Privileged Exec
Example
Console#show ip ospf
 Routing Process "ospf 1" with ID 192.168.1.3
 Process uptime is 20 minutes
 Conforms to RFC2328, and RFC1583Compatibility flag is disabled
 Supports only single TOS(TOS0) routes
 SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
 Refresh timer 10 secs
 Number of incoming current DD exchange neighbors 0/5