Configuring OSPF on a Cisco router

Contributor Icon Contributed by lvance  
Tag Icon Tagged: Cisco router  

This recipe describes configuring OSPF (Open Shortest Path First) in a Cisco router. OSPF was created to provide a more scalable dynamic routing solution than RIP. OSPF utilizes less bandwidth because, once established, it only sends routing table updates when there are changes.


router(config)#router ospf 1
router(config-router)#network 10.130.0.0 0.0.255.255 area 130

The command turns on the OSPF routing protocol with a process id of 1. The network line must be added to tell the router which networks will be participating in OSPF. This command can be expanded to include stub areas and not so stubby areas. That is how Cisco refers to it. You can run multiple processes of OSPF using different process ids.

Related commands:
show ip ospf neighbor
show ip ospf interface

 

9 Comments -


  1. PATRICK said on January 17, 2009

    configuring a router is not easy. who is gonna help me out?

  2. Anonymous said on January 17, 2009

    i like configuring routers

  3. Anonymous said on September 26, 2009

    i want konw how to configure router with diffrent protocol ?please give some tips to understand quickly pls

  4. Muhammedlceesay said on July 15, 2010

    how can i configure ospf i need a feedback

  5. Pavithren Pakianathan said on July 20, 2010

    If you have one interface connected to your wan @ 10.10.10.1 subnet mask 255.255.255.252 and the other connected to your lan @ 192.168.15.1 subnet mask 255.255.255.0 then enter the following commands:
    router ospf 1network 192.168.15.1 0.0.0.255 area 0network 10.10.10.1 0.0.0.3 area 0follow this format:router ospf “process_id”network “ip_address” “wildcard_mask” area “area_no”
    –>process id is locally significant is is used to differentiate between OSPF processes running on the same router and they do not need to match between different routers.
    –>for the wildcard mask just subtract subnet mask from 255.255.255.255.

  6. Muhammedlceesay said on July 20, 2010

    like if i want to configure 5 routers in the same network so how can i configure ospf to work between 5 routers simualtenaously to work together and able to ping each other please i need a feedback.

  7. Iamhuman said on August 19, 2010

    sudda bokka

  8. Gabriel Ohain Clement said on September 22, 2010

    u are a good instrutor

  9. mohsen moaddel said on December 29, 2011

    how to configure ospf in wan ?

 

RSS feed for comments on this post. TrackBack URL

Leave a comment -