set protocols ospf area range


The set protocols ospf area range command summarizes intra area paths from specified area into a single Type-3 summary-LSA announced to other areas. This command can be used only on ABR and ONLY router-LSAs (Type-1) and network-LSAs (Type-2, i.e. LSAs with scope area) can be summarized.


Command Syntax

set protocols ospf [instance-id <instance-id> | vrf <vrf-name>] area {<ipv4>|<area-id>} range <prefix/mask> [advertise <true | false> | cost <cost> | substitute <prefix/mask>]


Parameters

Parameter

Description

instance-id <instance-id>

Optional. Specifies the OSPF instance ID. The value is an integer that ranges from 1 to 8.

vrf <vrf-name>

Optional. Specifies the name of the VRF for the OSPF instance.

area {<ipv4>|<area-id>}

Specifies the OSPF area ID. The value could be in IPv4 dotted decimal format or an integer that ranges from 0 to 4294967295.

range <prefix/mask>

Specifies summarizing routes matching the area range prefix/mask.

advertise <true | false>

Optional. Determines whether to advertise the summarized route or not. The value could be true or false.

  • true: Advertise the summarized route.
  • false: Do not advertise the summarized route.

By default, the summarized route is advertised.

cost <cost>

Optional. Specifies the cost of the summarized route. The value is an integer that ranges from 0 to 16777215.

substitute <prefix/mask >

Optional. Specifies another prefix to substitute the already configured one to announce to other areas.


Example

  • The following commands configure route summarization in OSPF area 1.   
admin@Xorplus# set protocols ospf area 1 range 10.42.0.0/16
admin@Xorplus# commit


Copyright © 2024 Pica8 Inc. All Rights Reserved.