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 |
---|
Step2Â Â Â Â Set the OSPF router ID.
set protocols ospf router-id <router-id>
|
---|
Step3Â Â Â Â Add the specified network segment to an area. Area 0 is required.
set protocols ospf network <ipv4/prefixlen> area {<area-id | ipv4>}
|
---|
Step4Â Â Â Â Commit the configuration.
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.