Jun 11, 2019 this ospf lab is created in packet tracer and you will learn the ospf single area configuration from this lab. Ospf is an open standard protocol, you learn more why we use ospf and ospf quiz from here. May 04, 2019 this of course leads to more complexity in the configuration and troubleshooting of ospf networks. There are a number of commands for checking the status of the ospf routing process. You may have realized that you cannot run eigrp in a. This command is executed in interface configuration mode as an alternative to specify the configured interface to participate in the ospf routing process via a network statement in ospf router configuration mode. Configure the router identifiers for the devices in your ospf network. Just like with other routing protocols covered so far rip, eigrp first you need to enable ospf on a router. The first preference for an ospf router id is an explicitly configured 32bit address. Ospf show commands, ospf network configuration process id. Router 8 thinks that router 7 is directly connected to area 0 with this virtual link commands. Ospf p art 1 protocol header type attributes algorithm metric linkstate dijkstra cost bandwidth ad standard protocols transport 110 rfc 2328, 2740 ip ip89 router types internal router all interfaces reside within the same area backbone router a router with an interface in area 0 the backbone. Ospf with three routers the physical topology is as shown in fig 18.
In this article we will see how to configure ospf step by step. This setup is for me to have redundancy in my core network. Junos os ospf configuration guide juniper networks. To remove the nssa distinction from the area, use the no form of this command. The network command defines to which area each interface will belong. Ospf open shortest path first is one of the igps interior gateway protocols. This tutorial explains how to configure ospf routing protocol step by step. Pdf module 1 router basic configuration and static. The following new commands are added to the command line interface cli. When a link state router begins operating on a network link, information associated with that logical network is added to its local link state database lsdb. To do that, the following configuration on r1 will be used if the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.
Module 1 router basic configuration and static routing. Each router has a directly connected subnet that needs to be advertised through eigrp. Open shortest path first ospf routing protocol dummies. What this means is that you can run ospf in a network consisting of multivendor devices. It determines routes dynamically by obtaining information from other routers and advertising routes to other routers by way of link state advertisements lsas. The route through router c has a distance of 27 to the destination the route through router d has a distance of 11 to the destination thus, the route through router d metric of 11 would become the feasible distance for router a, and is added to the routing table as the best route. The process id number is a locally significant process identification number and this does not need to match neighboring routers. Ospf configuration in packet tracer lab with pdf networking.
In this example we have two ospf areas that is area 0 and area 2. Apart from being a linkstate protocol, it is also an open standard protocol. Next, you need to define on which interfaces ospf will run and what networks will be advertised. Enhanced interior gateway routing protocol router alley. If you can understand this example you can easily do any ospf configuration too. Ospf open shortest path first ospf is a standardized linkstate routing protocol, designed to scale efficiently to support larger networks. Lets start with all network commands to get ospf up and running. Ospf commands use the commands in this chapter to configure and monitor the open shortest path first ospf routing protocol. Just two routers in the same area, nothing special. Apr 25, 2015 the router ospf command enables ospf routing on the router, and the 1 before osfp is the process id of the osfp protocol. Compared with rip routing information protocol, ospf can serve many more networks and the period of convergence is very short.
This tutorial explains how to configure ospf routing protocol step by step with practical example in packet tracer. Ospf configuration step by step guide computer networking notes. The ospf open shortest path first protocol is one of a family of ip routing protocols, and is an interior gateway protocol igp for the internet, used to distribute ip routing information. In following figure there are the three routers with. According to network diagram, routers r3 is in the area 0. Cisco ios router configuration commands cheat sheet pdf. Enter the router ospf command and follow by the processid. To do that, the following configuration on r1 will be used ospf basic configuration is very simple. In the configuration mode, type router ospf to enter global ospf profile. Ospf commands area nssa p1r232 network protocols command reference, part 1 area nssa to configure an area as a not so stubby area nssa, use the area nssa command in router configuration mode. Ospf configuration in packet tracer computer networking.
Home downloads download cisco ccnp routing pdf study guide. The configuration of ospf in a large scale implementation can be a bit hard to follow when quickly looking over a configuration, but if the network engineer knows the base ospf concepts and sits down with the configuration then they should be able to figure out the intention of the ospf design. Therefore, be sure that if you do configure any of these parameters, the configurations for all routers on your network have compatible values. This of course leads to more complexity in the configuration and troubleshooting of ospf networks.
Configure ospf on the r3 router using the router ospf and network commands. Ospf open shortest path first protocol is a wellknow routing protocol that is widely used today. Ospf configuration, the router sends a notification message to the console stating that a neighbor relationship with another ospf router has been established. Ospf employs a hierarchical network design using areas. A priority of 0 will prevent the router from being elected dr or bdr. Ospf will form neighbor relationships with adjacent routers in the same area. Learn how to configure ospf routing protocol using packet tracer. This address is not included in the routing table and is not defined by the network command.
Router4 connects to both areas that is area 0 and area 2, which makes him an area border router, while router5 is in area 2 router r3 and r5 configuration are same as we learn in above single area configuration lab but configurations of router r4 is as followi. This is done by using the router ospf processid global configuration command. If a router id that is configured through the routerid command is not available, ospf routers next use the highest ip address available on a loopback interface, as loopbacks used as router ids are also. First, we will configure r1 and r2 for the backbone area. Open shortest path first open shortest path first ospf is an openstandard link state routing protocol. How to configure ospf ospf routing protocol configuration ccna ospf in packet tracer. Jul 26, 2017 start by entering ospf configuration mode. This release of arubaos mobility access switch supports all open shortest path first ospf area types including totally stubby area tsa and notsostubbyarea nssa. Confirm your configuration by entering the configuratkon protocols ospf command. The main difference here is that a linkedstate protocol does not send its routing table in the form of updates, but only shared its connectivity configuration.
For basic ospf configuration, the followin scenario will be a good example. You can set different process id from 165535 for each router. Use ospf process number 1 and ensure all networks are in area 0. Here is the configuration to enable md5 authentication. The router ospf command enables ospf routing on the router, and the 1 before osfp is the process id of the osfp protocol. You can verify that routers have become neighbors by using the show ip eigrp neighbors command on either router. Configuration guide ip unicast routing s1720, s2700, s5700, and s6720 v200r011c10 this document describes ip unicast routing configurations supported by the switch, including the principle and configuration procedures of ip routing overview, static route, rip, ripng, ospf, ospfv3, isisipv4, isisipv6, bgp, routing policy,and pbr, and.
Ospf is widely used in large networks such as isp backbone and enterprise networks. How to configure ospf routing protocol using cisco packet. Configure ospf router ids the ospf router id is used to uniquely identify the router in the ospf routing domain. It is time to take a look to configuring ospf open shortest path first with an ospf configuration example. In our example, we will examine the figure below deeply. Ospf p art 1 protocol header type attributes algorithm metric linkstate dijkstra cost bandwidth ad standard protocols transport 110 rfc 2328, 2740 ip ip89 router types internal router all interfaces reside within the same area backbone router a router with an interface in area 0 the backbone area border router abr connects two or. Configure the router to advertise the three directly. We can verify that by using the show ip ospf neighbor command note we have used the routerid 1. How to configure ospf in gns3 ospf routing configuration. Configuring an ospfv2 nssa area and its parameters. Ospf adheres to the following link state characteristics. By collecting connectivity information from all of the devices on the network, ospf. This is a basic labs regarding ospf single area configure related to ccna or icnd12 exam. The idea is the same but some of the commands are different.
Configure route summarization when redistributing routes into ospf. Create one loopback interface in both routers and configure ip address. Pdf module 1 router basic configuration and static routing. Ospf network type nbma nonbroadcast multiple access uses only unicast communications, so it is the preferred way of ospf configuration in situations where multicast addressing is not possible or desirable for some reasons. Open shortest path first ospf is the first linkstate protocol that you will learn about.
For ospf configuration information and ex amples, refer to the con figuring ospf chapter of the network protocols configuration guide, part 1. Router a should see routes for and be able to ping the loopback interface on router c and vice versa. Enter the configure terminal command to enter global configuration mode. Router 1 should be a asbr which redistributes the static routes. The router id can be used to break a tie in the election process. Configure secret key for md5 authentication ip ospf. The adv router id heading shows the router id of the advertising router, that is the router from which this lsa was received now the link state id heading is a little more tricky.
Configure ospf in two routers and check adjacency state, routing table and lsdb. Basic ospf configuration guide network startup resource center. Open shortest path first ospf is a linkstate routing protocol, rather than a distance vector protocol. We can verify that by using the show ip ospf neighbor command note we have used the router id 1. The address field lists the neighboring router rid. Link state routing protocols advertise the state of their links.
992 925 177 459 920 1175 466 678 1193 50 1454 675 1080 963 103 1419 726 131 380 489 625 1339 581 602 815 182 605 1131 511 667 927 157 274 230 799 1405 262 420