OSPFv2 range cost detailed configuration example
An example that shows how to [something].
In this example, an area border router (ABR) has:
- interface
dp0p1s1
in area0
- interfaces
dp0p1s2.100
,dp0p1s2.101
, anddp0p1s2.102
in area1
This ABR summarizes the range 10.64.0.0/10
from area 1
into area 0
. It has this configuration:
set interfaces dataplane dp0p1s1 address '10.10.3.3/24'
set interfaces dataplane dp0p1s2 vif 100 address '10.100.4.3/24'
set interfaces dataplane dp0p1s2 vif 100 ip ospf cost '10'
set interfaces dataplane dp0p1s2 vif 101 address '10.101.4.3/24'
set interfaces dataplane dp0p1s2 vif 101 ip ospf cost '11'
set interfaces dataplane dp0p1s2 vif 102 address '10.102.4.3/24'
set interfaces dataplane dp0p1s2 vif 102 ip ospf cost '12'
set interfaces loopback lo address '3.3.3.3/32'
set protocols ospf area 0 network '10.10.3.0/24'
set protocols ospf area 1 network '10.100.4.0/24'
set protocols ospf area 1 network '10.101.4.0/24'
set protocols ospf area 1 network '10.102.4.0/24'
set protocols ospf area 1 range '10.64.0.0/10'
No explicitly configured metric exists for the range, so the ABR advertises the maximum cost to reach all prefixes that match the range. This cost will be at least 12 and possibly more if the ABR learns of a matching prefix from one of its area 1
peers.