10G Core Routing Switch User Manual
陈泽科技有限公司
- - 52 - -
www.stephen-tele.com
Step 2
Router ospf
Enter interface configuration mode.
Step 3
passive-interface
ifname
Disable the interface to send OSPF packets
Step 4
exit
Return to global configuration mode.
Step 5
exit
Return to privileged EXEC mode.
Step 6
show ip ospf interface [
vlan-id
]
Verify your entries.
Step 7
Copy
running-config
startup-config
(Optional) Save your entries in the configuration file.
To enable the interface to send OSPF packets, use
no ip ospf passive-interface
ifname
i
nterface configuration mode.
By default, all the interfaces are allowed to transmit and receive OSPF packets.
After an OSPF interface is set to be in silent status, the interface can still advertise its direct route. However, the OSPF
hello packets of the interface will be blocked, and no neighboring relationship can be established on the interface.
Thereby, the capability for OSPF to adapt to the networking can be enhanced, which will hence reduce the
consumption of system resources. On a switch, this command can disable/enable the specified VLAN interface to send
OSPF packets.
Displaying and Debugging OSPF
After the above configuration, execute
show
command in any view to display the running of the OSPF configuration,
and to verify the effect of the configuration.
Table
Displaying and debugging OSPF
Operation
Command
Display the brief information of
the OSPF routing process
show ip ospf
Display OSPF neighbor information
show ip ospf neighbor
Display OSPF routing table
show ip ospf routing
Display OSPF virtual links
show ip ospf virtual-links
Display OSPF statistics
show ip ospf database
Display LSDB information of
OSPF
show ip ospf lsa
Display OSPF interface
information
show ip ospf interface