Configuring the Dynamic Routing

The dynamic routing is based on algorithm, which requires higher system performance. It is applicable to network with a large number of Layer 3 devices, and can automatically adapt to the changeable network topology.

The switch supports multiple dynamic routing, such as OSPF, BGP, IS-IS, etc. OSPF is the IGP (Interior Gateway Protocol) recommended by PicOS. Take the OSPF routing as an example to introduce how to configure a dynamic routing.

Overview

OSPF (Open Shortest Path First) is developed by IETF (Internet Engineering Task Force), which uses the shortest path first (SPF) algorithm to calculate a shortest path tree (SPT) to all destination addresses based on the network topology, and is advertised through link state advertisements (LSAs). It is applicable to the network with several hundred devices, such as small and medium-sized enterprises networks.

PicOS supports OSPFv2 and OSPFv3, which is respectively intended for IPv4 and IPv6.

Procedure

Before configuring the routing, make sure that the Layer 3 interface has been configured.

Step1       By default, the IP routing function is disabled. In the configuration mode, enable the IP routing function.

set ip routing enable true

set ip routing enable true

Step2       Set the OSPF router ID.

set protocols ospf router-id <router-id>

  • router-id <router-id>: specifies the OSPF router ID, which can uniquely identify the switch within the domain. The value is in IPv4 dotted decimal format.

set protocols ospf router-id <router-id>

  • router-id <router-id>: specifies the OSPF router ID, which can uniquely identify the switch within the domain. The value is in IPv4 dotted decimal format.

Step3       Add the specified network segment to an area. Area 0 is required.

set protocols ospf network <ipv4/prefixlen> area {<area-id | ipv4>}

  • network <ipv4/prefixlen>: specifies the network prefix and prefix length in IPv4 format.

  • area {<area-id | ipv4>}: specifies the OSPF area, the value could be in IPv4 dotted decimal format or an integer ranging from 0 to 4294967295.

set protocols ospf network <ipv4/prefixlen> area {<area-id | ipv4>}

  • network <ipv4/prefixlen>: specifies the network prefix and prefix length in IPv4 format.

  • area {<area-id | ipv4>}: specifies the OSPF area, the value could be in IPv4 dotted decimal format or an integer ranging from 0 to 4294967295.

Step4       Commit the configuration.

commit

commit

Verifying the Configuration

After the configuration is completed, in the configuration mode, use run show route ospf command to view all OSPF routing entries.

Other Configurations

To delete the OSPF routing configuration, use delete protocols ospf command.

 

Copyright © 2024 Pica8 Inc. All Rights Reserved.