Configuring the OSPF protocol
You can specify settings for using the OSPF dynamic routing protocol on an individual CPE device or on all devices that use the CPE template. If you plan to use route filtering, before configuring the OSPF protocol, you must do the following:
Use the following instructions to configure OSPF:
- Configuring OSPF on an individual CPE device.
To configure OSPF on an individual CPE device:
- In the menu, go to the SD-WAN section.
By default, the CPE subsection is displayed with a table of CPE devices.
- Click the CPE device.
The settings area is displayed in the lower part of the page. You can expand the settings area to fill the entire page by clicking the expand button .
- Select the OSPF tab.
By default, the General settings tab is selected, which displays the OSPF settings.
- Select the Override check box to ignore the applied CPE template and make the settings in the selected tab editable. This check box is cleared by default.
- In the OSPF drop-down list, select one of the following values:
- Enabled
- Disabled (selected by default)
- In the Router ID field, enter the IPv4 address of the CPE device.
- In the Maximum Paths field, enter the maximum number of entries in the routing table of the CPE device. Range of values: 1 to 16.
- If you want to use the CPE device as a border router (Area Border Router, ABR), in the ABR Type drop-down list, select one of the following values:
- IBM (this implementation is used by default)
- CISCO
- Shortcut
- STANDARD
- In the Auto Cost Reference Bandwidth field, enter the reference bandwidth for calculating the cost of communication channels. The cost is used to determine the best route. You can increase or decrease the reference value to influence the route selection and to give preference to certain communication channels. Range of values: 1 to 4,294,967.
- If you need to switch all interfaces of the CPE device to passive mode, select the Passive Interface Default check box. In passive mode, interfaces do not send OSPF hello packets and do not actively participate in OSPF routing. As a rule, interfaces that do not need routing updates, such as interfaces connected to user devices or networks that are not part of the OSPF domain, are switched to passive mode. This check box is cleared by default.
- If you want to keep an OSPF log, select the Log Adjacency Changes check box. The OSPF log records changes that occur between the CPE device and OSPF peers, such as when a peer goes out of service. This check box lets you track changes, resolve peer-related problems, and gather information about the stability of the OSPF network. This check box is cleared by default.
- If you have selected the Log Adjacency Changes check box, if you want to keep a more detailed OSPF log, select the Detail check box. The more detailed log lets you diagnose individual events involving an OSPF peer, as well as see the sequence of its states changing. This check box is cleared by default.
- If necessary, under Route redistribution, configure the redistribution of routes of other routing protocols in OSPF:
- Select the check box next to the route type:
- BGP to redistribute BGP routes.
- Connected to redistribute routes directly connected to CPE device interfaces.
- Kernel to redistribute Kernel routes generated by the operating system of the CPE device.
- Static to redistribute static routes.
By default, all check boxes are cleared.
- In the Route map drop-down list, select a previously created route map to pick the routes that you want to redistribute.
- In the Metric field, enter a metric for redistributed routes. Range of values: 0 to 16,777,214.
- In the Metric Type drop-down list, select the type of the metric:
- Type 1 (or "internal metric")
- Type 2 (or "external metric")
- Select the Filtering check box and in the Access control list drop-down list, select the previously created access control list that you want to use for reallocating routes. This check box is cleared by default.
- Select the check box next to the route type:
- In the Default Metric field, enter the default metric for all OSPF routes. Range of values: 0 to 16,777,214.
- If necessary, configure the CPE device to advertise the default route to the OSPF network:
- Select the Default Originate check box. This check box is cleared by default.
- Select the Always check box to always advertise the default route, even if it is not in the CPE device's routing table. This check box is cleared by default.
- In the Metric Type drop-down list, select the type of metric for the default route:
- Type 1
- Type 2
- In the Metric field, enter a metric for the default route. Range of values: 0 to 16,777,214.
- In the Route map drop-down list, select a previously created route map for the default route.
- In the Distance field, enter the administrative distance for the OSPF routes. When multiple routes exist to a single destination, provided by different routing protocols, the administrative distance allows you to pick the preferred protocol.
The lower the administrative distance specified for a protocol, the higher the priority its route have. For example, if you want routes OSPF routes to always be preferred over BGP routes, specify the administrative distance of 1 for OSPF and 2 for BGP. Range of values: 1 to 255.
- If necessary, configure the administrative distances of individual OSPF routes:
- Select the Distance OSPF check box. This check box is cleared by default.
- In the External field, enter the administrative distance for routes from external OSPF domains or routing protocols. Range of values: 1 to 255.
- In the Inter-Area field, enter the administrative distance for routes from different areas of the same OSPF domain. Range of values: 1 to 255.
- In the Intra-Area field, enter the administrative distance for routes from the same area. Range of values: 1 to 255.
- If necessary, enable Graceful restart on the CPE device:
- Select the Graceful Restart check box. This check box is cleared by default.
- In the Grace Period (sec.) field, enter the length of time, in seconds, during which the CPE device announces its intention to restart to OSPF peers. Range of values: 1 to 1,800.
- If necessary, configure timers for the Shortest Path First (SPF) algorithm calculations:
- Select the Timers Throttle SPF check box. This check box is cleared by default.
- In the Delay (sec.) field, enter the length in seconds of the delay before starting the calculations of the SPF algorithm. Range of values: 0 to 600,000.
- In the Initial Hold-Time (ms.) field, enter the minimum retention time in milliseconds between two calculations of the SPF algorithm. ,Range of values: 0 to 600,000.
- In the Maximum Hold-Time (ms.) field, enter the maximum retention time in milliseconds between two calculations of the SPF algorithm. ,Range of values: 0 to 600,000.
- If necessary, configure maximum metrics for link state advertisement (LSA):
- Select the Administrative check box to administratively specify the maximum metric value for LSA of the CPE device.
- Select the On Startup check box to specify the time in seconds for which the maximum metric remains applied to the LSA of the CPE device when the OSPF process is started or restarted, and enter a value in theTimer (sec.) field.
- Select the On Shutdown check box to specify the time in seconds for which that the maximum metric remains applied to the LSA of the CPE device when the OSPF process finishes, and enter a value in the Timer (sec.) field.
- In the upper part of the settings area, click Save to save the configuration of the CPE device.
- In the menu, go to the SD-WAN section.
- Configuring OSPF on all devices that use a CPE template.
To configure OSPF on all devices that use a CPE template:
- In the menu, go to the SD-WAN → CPE templates subsection.
A table of CPE templates is displayed.
- Click the CPE template.
The settings area is displayed in the lower part of the page. You can expand the settings area to fill the entire page by clicking the expand button .
- Select the OSPF tab.
By default, the General settings tab is selected, which displays the OSPF settings.
- In the OSPF drop-down list, select one of the following values:
- Enabled
- Disabled (selected by default)
- In the Router ID field, enter the IPv4 address of the CPE device.
- In the Maximum Paths field, enter the maximum number of entries in the routing table of the CPE device. Range of values: 1 to 16.
- If you want to use the CPE device as a border router (Area Border Router, ABR), in the ABR Type drop-down list, select one of the following values:
- IBM (this implementation is used by default)
- CISCO
- Shortcut
- STANDARD
- In the Auto Cost Reference Bandwidth field, enter the reference bandwidth for calculating the cost of communication channels. The cost is used to determine the best route. You can increase or decrease the reference value to influence the route selection and to give preference to certain communication channels. Range of values: 1 to 4,294,967.
- If you need to switch all interfaces of the CPE device to passive mode, select the Passive Interface Default check box. In passive mode, interfaces do not send OSPF hello packets and do not actively participate in OSPF routing. As a rule, interfaces that do not need routing updates, such as interfaces connected to user devices or networks that are not part of the OSPF domain, are switched to passive mode. This check box is cleared by default.
- If you want to keep an OSPF log, select the Log Adjacency Changes check box. The OSPF log records changes that occur between the CPE device and OSPF peers, such as when a peer goes out of service. This check box lets you track changes, resolve peer-related problems, and gather information about the stability of the OSPF network. This check box is cleared by default.
- If you have selected the Log Adjacency Changes check box, if you want to keep a more detailed OSPF log, select the Detail check box. The more detailed log lets you diagnose individual events involving an OSPF peer, as well as see the sequence of its states changing. This check box is cleared by default.
- If necessary, under Route redistribution, configure the redistribution of routes of other routing protocols in OSPF:
- Select the check box next to the route type:
- BGP to redistribute BGP routes.
- Connected to redistribute routes directly connected to CPE device interfaces.
- Kernel to redistribute Kernel routes generated by the operating system of the CPE device.
- Static to redistribute static routes.
By default, all check boxes are cleared.
- In the Route map drop-down list, select a previously created route map to pick the routes that you want to redistribute.
- In the Metric field, enter a metric for redistributed routes. Range of values: 0 to 16,777,214.
- In the Metric Type drop-down list, select the type of the metric:
- Type 1 (or "internal metric")
- Type 2 (or "external metric")
- Select the Filtering check box and in the Access control list drop-down list, select the previously created access control list that you want to use for reallocating routes. This check box is cleared by default.
- Select the check box next to the route type:
- In the Default Metric field, enter the default metric for all OSPF routes. Range of values: 0 to 16,777,214.
- If necessary, configure the CPE device to advertise the default route to the OSPF network:
- Select the Default Originate check box. This check box is cleared by default.
- Select the Always check box to always advertise the default route, even if it is not in the CPE device's routing table. This check box is cleared by default.
- In the Metric Type drop-down list, select the type of metric for the default route:
- Type 1
- Type 2
- In the Metric field, enter a metric for the default route. Range of values: 0 to 16,777,214.
- In the Route map drop-down list, select a previously created route map for the default route.
- In the Distance field, enter the administrative distance for the OSPF routes. When multiple routes exist to a single destination, provided by different routing protocols, the administrative distance allows you to pick the preferred protocol.
The lower the administrative distance specified for a protocol, the higher the priority its route have. For example, if you want routes OSPF routes to always be preferred over BGP routes, specify the administrative distance of 1 for OSPF and 2 for BGP. Range of values: 1 to 255.
- If necessary, configure the administrative distances of individual OSPF routes:
- Select the Distance OSPF check box. This check box is cleared by default.
- In the External field, enter the administrative distance for routes from external OSPF domains or routing protocols. Range of values: 1 to 255.
- In the Inter-Area field, enter the administrative distance for routes from different areas of the same OSPF domain. Range of values: 1 to 255.
- In the Intra-Area field, enter the administrative distance for routes from the same area. Range of values: 1 to 255.
- If necessary, enable Graceful restart on the CPE device:
- Select the Graceful Restart check box. This check box is cleared by default.
- In the Grace Period (sec.) field, enter the length of time, in seconds, during which the CPE device announces its intention to restart to OSPF peers. Range of values: 1 to 1,800.
- If necessary, configure timers for the Shortest Path First (SPF) algorithm calculations:
- Select the Timers Throttle SPF check box. This check box is cleared by default.
- In the Delay (sec.) field, enter the length in seconds of the delay before starting the calculations of the SPF algorithm. Range of values: 0 to 600,000.
- In the Initial Hold-Time (ms.) field, enter the minimum retention time in milliseconds between two calculations of the SPF algorithm. ,Range of values: 0 to 600,000.
- In the Maximum Hold-Time (ms.) field, enter the maximum retention time in milliseconds between two calculations of the SPF algorithm. ,Range of values: 0 to 600,000.
- If necessary, configure maximum metrics for link state advertisement (LSA):
- Select the Administrative check box to administratively specify the maximum metric value for LSA of the CPE device.
- Select the On Startup check box to specify the time in seconds for which the maximum metric remains applied to the LSA of the CPE device when the OSPF process is started or restarted, and enter a value in theTimer (sec.) field.
- Select the On Shutdown check box to specify the time in seconds for which that the maximum metric remains applied to the LSA of the CPE device when the OSPF process finishes, and enter a value in the Timer (sec.) field.
- In the upper part of the settings area, click Save to save the configuration of the CPE template.
- In the menu, go to the SD-WAN → CPE templates subsection.