Tip
This is the documentation for the 24.06 version. Looking for the documentation of the latest version? Have a look here.
OSPF ExampleΒΆ
This example configuration implements an OSPF setup using the required information from Example OSPF Configuration.
tnsr(config)# route dynamic ospf
tnsr(config-frr-ospf)# server vrf default
tnsr(config-ospf)# ospf router-id 10.2.0.1
tnsr(config-ospf)# passive-interface GigabitEthernet3/0/0
tnsr(config-ospf)# exit
tnsr(config-frr-ospf)# interface GigabitEthernet3/0/0
tnsr(config-ospf-if)# ip address * area 0.0.0.0
tnsr(config-ospf-if)# exit
tnsr(config-frr-ospf)# interface TenGigabitEthernet6/0/0
tnsr(config-ospf-if)# ip address * cost 5
tnsr(config-ospf-if)# ip address * area 0.0.0.0
tnsr(config-ospf-if)# exit
tnsr(config-frr-ospf)# enable
tnsr(config-frr-ospf)# exit
tnsr(config)#
A similar configuration may be applied to neighboring routers also connected to
the same network as the TenGigabitEthernet6/0/0
interface. Adjust the
router ID and interface names as needed.
For a simple configuration such as this, a single area for all routers is typical.
See also
For a more complex example involving multiple areas, see OSPF Router with Multiple Areas and Summarization.
WireGuard requires specific adjustments to function properly with OSPF. See WireGuard VPN with OSPF Dynamic Routing for details.