OSPF/Examples/Example 1:Basic LAN configuration
From ImageStream Router Documentation
- This is meant to be an example, and not a complete OSPF (Open Shortest Path First) routing configuration.
Scenario
- You have a main router, connected by fiber to three satellite routers each of which have a LAN on a different subnet.
Network Diagram
| | Link to the internet +--------------+ + Main Router + +--------------+ | 192.168.1.254/24 | +--------------+ 192.168.1.3/24 +-------------------+ | Switch |--------------------| Site number three | | | | | | |----------+ | | +--------------+<-.1 | +-------------------+ | | | | 192.168.1.2/24 |192.168.1.2/24 | +-------------------+ +-----------------+ +-----| Site number two | | Site number one | | | | | | | | | +-------------------+ +-----------------+
- Remember to save your configurations to flash whenever you are finished configuring your dynamic routing setup! To enable OSPF, do the following:
- At the Login: prompt, enter root.
- At the Password: prompt, enter your password.
- Choose Option 1 (Configuration and Update Menu) from the Main Menu.
- Select Option 6 (Dynamic Routing Configuration).
- Select Option 2 (Quagga/Zebra)
- Select Option 2 (enable) and enable both Quagga/Zebra and ospfd.
- Go back up to the main Quagga/Zebra menu
- Select Option 4 (start) and start both Quagga/Zebra and ospfd.
- OSPF service is now enabled on boot and running.
- In our example above, we will be configuring the "Main Router". From the Quagga/Zebra menu, choose Option 1 (Quagga configuration). Then select Option 3 (ospf configuration). This will connect to the Quagga command line, the default password is zebra. then type en to become administrator and type in the following configuration:
# This configuration is for the all four routers. ! hostname ospfd password zebra log stdout ! router ospf ospf router-id 192.168.10.1 redistribute connected network 192.168.1.0/24 area 0.0.0.0 ! line vty
Remember to save your configurations to flash whenever you are finished configuring your dynamic routing setup!