Connectivity Guide

View OSPF interface conguration
OS10(conf-if-eth1/1/1)# do show ip ospf interface
ethernet1/1/1 is up, line protocol is up
Internet Address 11.1.1.1/24, Area 0.0.0.0
Process ID 65535, Router ID 99.99.99.99, Network Type broadcast, Cost: 1
Transmit Delay is 200 sec, State BDR, Priority 1
Designated Router (ID) 150.1.1.1, Interface address 11.1.1.2
Backup Designated router (ID) 99.99.99.99, Interface address 11.1.1.1
Timer intervals configured, Hello 5, Dead 20, Wait 20, Retransmit 30
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 150.1.1.1(Designated Router)
Redistribute routes
Add routes from other routing instances or protocols to the OSPFv2 process and include BGP, static, or connected routes in the OSPFv2
process. Do not route IBGP routes to OSPFv2 unless there are route-maps associated with the OSPFv2 redistribution.
NOTE: With the redistribute static command in the running conguration, if a static route is congured which is also learned
through OSPF, even if the static route preference is higher than OSPF, the static route is installed in the routing table.
Enter which routes redistribute into the OSPFv2 process in ROUTER-OSPF mode.
redistribute {bgp as-number| connected | static} [route-map map-name]
bgp | connected | static—Enter a keyword to redistribute those routes.
route-map map-name—Enter the name of a congured route map.
Congure redistribute routes
OS10(conf-router-ospf-10)# redistribute bgp 4 route-map aloha
OS10(conf-router-ospf-10)# redistribute connected route-map aloha
OS10(conf-router-ospf-10)# redistribute static route-map aloha
View OSPF conguration
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
!
Default route
You can generate an external default route and distribute the default information to the OSPFv2 routing domain.
Generate the default route using the default-information originate [always] command in ROUTER-OSPF mode.
Congure default route
OS10(config)# router ospf 10
OS10(config-router-ospf-10)# default-information originate always
View default route conguration
OS10(config-router-ospf-10)# show configuration
!
router ospf 10
default-information originate always
Layer 3
539