Follow these steps to get OSPF up and running on a PortMaster(TM) product. For details
on how OSPF works or how to set up an OSPF network, see the PortMaster Routing Guide.
- Enter the following commands to enable OSPF. Be sure to enter save all and reboot
immediately after set ospf enable to load the OSPF portion of the code before you
continue to configure OSPF.
Command> set ospf enable
Command> save all
Command> reboot
- Set the OSPF priority (between 0 and 255) for this PortMaster on its network segment.
The router with the highest priority is elected as the designated router for the segment.
A priority of 0 (the default) prevents this PortMaster from ever being the designated
router.
Command> set ospf priority 1
- Add one OSPF area---the backbone area---and set the area range:
Command> add ospf area 0.0.0.0
Command> set ospf area 0.0.0.0 range IP_prefix/Netmask
The range values set the range to include the IP addresses for all PortMaster
interfaces within the OSPF area. In an environment that has only a single OSPF area
serving as the external, transit, and backbone area, you need not include the network for
the assigned address pool in the range.
For example, for a PortMaster 3 with an Ether0 IP address (prefix and netmask) of
192.168.1.5/24 and an assigned address pool from another network---192.168.2.16 (pool size
48), for instance---you include only the Ether0 IP address range to define the OSPF
backbone area:
set ospf area 0.0.0.0 range 192.168.1.0/24
This range causes the routes from the address pool to be advertised by the PortMaster 3
as external type 2 routes.
- Enable OSPF on either an Ethernet interface or a WAN interface on the
PortMaster:
- To use OSPF on an Ethernet interface, enter the following commands, replacing Ether0
with the appropriate value:
Command> set Ether0 ospf on
Command> set Ether0 rip off
- To use OSPF on a WAN interface, enter the following commands, replacing W1 with the
appropriate value:
Command> set W1 ospf on
Command> set W1 rip off
Command> reset W1
- When done, save your work and reset OSPF:
Command> save all
Command> reset ospf