OSPF/Examples/Example 1:Basic LAN configuration

From ImageStream Router Documentation

< OSPF | Examples
Revision as of 21:39, 1 December 2008 by RichardJune (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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:
  1. At the Login: prompt, enter root.
  2. At the Password: prompt, enter your password.
  3. Choose Option 1 (Configuration and Update Menu) from the Main Menu.
  4. Select Option 6 (Dynamic Routing Configuration).
  5. Select Option 2 (Quagga/Zebra)
  6. Select Option 2 (enable) and enable both Quagga/Zebra and ospfd.
  7. Go back up to the main Quagga/Zebra menu
  8. 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!

Personal tools
Router software releases