Reference Guide
1 Enter which routes redistribute into the OSPF process in ROUTER-OSPF mode.
redistribute {bgp | connected | static} [route-map map-name]
• bgp | connected | static—Enter a keyword to redistribute those routes.
• route-map map-name—Enter a name of a congured route map.
2 Apply the conguration.
do commit
Congure redistribute routes
OS10(conf-router-ospf-10)# redistribute bgp 4 route-map aloha
OS10(conf-router-ospf-10)# redistribute connected route-map aloha1
OS10(conf-router-ospf-10)# redistribute static route-map mahalo
OS10(conf-router-ospf-10)# do commit
View OSPF conguration
OS10(conf-router-ospf-10)# do show running-configuration ospf
!!
!
router ospf 10
redistribute bgp 4 route-map aloha
redistribute connected route-map aloha
redistribute static route-map aloha
!
route-map aloha permit 10
Troubleshoot OSPF
You can troubleshoot the OSPFv2 operations, and check questions for any typical issues that interrupt a process.
• Is OSPF enabled globally?
• Is OSPF enabled on the interface?
• Are adjacencies established correctly?
• Are the interfaces congured for L3 correctly?
• Is the router in the correct area type?
• Are the OSPF routes included in the OSPF database?
• Are the OSPF routes included in the routing table in addition to the OSPF database?
Troubleshooting OSPF with show commands
• View a summary of all OSPF process IDs enabled in EXEC mode.
show running-configuration ospf
• View summary information of IP routes in EXEC mode.
show ip route summary
• View summary information for the OSPF database in EXEC mode.
show ip ospf database
• View the conguration of OSPF neighbors connected to the local router in EXEC mode.
show ip ospf neighbor
• View routes that OSPF calculates in EXEC mode.
show ip ospf routes
View OSPF conguration
OS10# show running-configuration ospf
!
interface ethernet1/1/1
ip ospf 100 area 0.0.0.0
Layer 3
271