Professional Documents
Culture Documents
How To Configure OSPF in The Cisco IOS
How To Configure OSPF in The Cisco IOS
by David Davis, vExpert, VCP, CCIE 9369 - January 8, 2009 Printer Friendly Version The OSPF dynamic routing protocol is probably the most popular LAN routing protocol today. OSPF can scale to the largest LANs but can also start out small. While OSPF can be complex to configure, its basic configuration isn't difficult. Let's learn how to configure OSPF in the Cisco IOS.
Looking for Comprehensive VoIP Monitoring... True 10 Gb Precision... Complete VM Visibility... Extensive Application Analysis... Simplified Cloud Reporting... ... then look no further! Try Observer from Network Instruments and improve network, application, and infrastructure performance from the inside out. Download a demo and learn more about Observer today!
4. The entire network that OSPF routes for is called an "Autonomous System", or "AS". 5. All OSPF routing updates must traverse area 0. Because of this, you should carefully design your network before you begin deploying OSPF. With OSPF, every router has its own unique "picture" (topology map) of the network. Routers use "HELLO" packets to periodically check with routers to ensure they are still there. Every router in OSPF is identified with a "router ID". The router ID can be manually entered or OSPF will automatically choose the IP address with the highest number.
A standards-based routing protocol that works is very interoperable between different vendors routers and firewalls Supports variable length subnet masks (VLSM), making it a classless routing protocols Authentication of routing updates are supported Route redistribution is supported between different routing protocols OSPF works well in point to point and point to multipoint, broadcast or non-broadcast configurations OSPF also offers a number of OSPF-specific features such as stub areas, virtual links, and OSPF on demand circuits.
In this example, the X.X.X.X is the network id of a network that is linked directly to the router. The Y.Y.Y.Y is the wildcard mask for that network. The wildcard mask is the inverse mask of the subnet mask. The "z" parameter is the area id number. For small networks, this can always be zero (0) but for larger networks, the area IDs need to be properly planned as all routing updates must traverse area 0. You should enter a network statement for every network directly attached to the router. Once OSPF is configured, you can check the status using the show ip route and show ip ospf commands. For more information on configuring OSPF, see the official Cisco OSPF documentation.
Configuration Examples
Here is an example of a router configured with the OSPF routing protocol: Interface Gigabit Ethernet 0/0 ip address 10.1.1.1 255.255.255.0 Interface Serial 3/0 ip address 10.2.1.1 255.255.255.0 router(config)# router ospf 1 router(config-router)# network 10.1.1.1 0.0.0.255 area 0 router(config-router)# network 10.2.1.1 0.0.0.255 area 0
In Summary
OSPF is the most popular Interior Routing Protocol (IGP) in use today. For that reason alone, it is a dynamic routing protocol that you should be familiar with. I encourage you to spend some time configuring a basic OSPF network to get experience with OSPF. If you have questions about configuring OSPF, please post your question or comment in our Cisco Router discussion forums. To learn more about Cisco networking, consider the Train Signal CCNA Video Training package!