Enter the configure terminal command to enter global configuration mode. Jul 26, 2017 start by entering ospf configuration mode. Each router has a directly connected subnet that needs to be advertised through eigrp. 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 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. 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. Open shortest path first open shortest path first ospf is an openstandard link state routing protocol.
Ospf adheres to the following link state characteristics. 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. According to network diagram, routers r3 is in the area 0. This setup is for me to have redundancy in my core network. Router a should see routes for and be able to ping the loopback interface on router c and vice versa. Enter the router ospf command and follow by the processid. Ospf configuration step by step guide computer networking notes. Ospf will form neighbor relationships with adjacent routers in the same area. 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. You may have realized that you cannot run eigrp in a.
To configure a netowork for ospf properly there are some steps. 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. Apart from being a linkstate protocol, it is also an open standard protocol. A priority of 0 will prevent the router from being elected dr or bdr.
In the configuration mode, type router ospf to enter global ospf profile. Learn how to configure ospf routing protocol using packet tracer. If you can understand this example you can easily do any ospf configuration too. Ospf is an open standard protocol, you learn more why we use ospf and ospf quiz from here. To do that, the following configuration on r1 will be used ospf basic configuration is very simple. 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. The router ospf command enables ospf routing on the router, and the 1 before osfp is the process id of the osfp protocol. How to configure ospf ospf routing protocol configuration ccna ospf in packet tracer. Ospf open shortest path first is one of the igps interior gateway protocols. What this means is that you can run ospf in a network consisting of multivendor devices.
Just two routers in the same area, nothing special. 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. 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. It determines routes dynamically by obtaining information from other routers and advertising routes to other routers by way of link state advertisements lsas. Just like with other routing protocols covered so far rip, eigrp first you need to enable ospf on a router. Lets start with all network commands to get ospf up and running. In our example, we will examine the figure below deeply. Ospf with three routers the physical topology is as shown in fig 18. In a previous lesson i demonstrated how to configure plain text authentication for ospf.
Pdf module 1 router basic configuration and static routing. Configure the router to advertise the three directly. Ospf open shortest path first protocol is a wellknow routing protocol that is widely used today. Ospf employs a hierarchical network design using areas. Ospf configuration in packet tracer lab with pdf networking.
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. Router 8 thinks that router 7 is directly connected to area 0 with this virtual link commands. Open shortest path first ospf routing protocol dummies. Open shortest path first ospf is a linkstate routing protocol, rather than a distance vector protocol. Ospf configuration in packet tracer computer networking. Configuring an ospfv2 nssa area and its parameters.
Configure ospf on the r3 router using the router ospf and network commands. Configure ospf router ids the ospf router id is used to uniquely identify the router in the ospf routing domain. May 04, 2019 this of course leads to more complexity in the configuration and troubleshooting of ospf networks. How to configure ospf in gns3 ospf routing configuration. 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. Ospf show commands, ospf network configuration process id. It is time to take a look to configuring ospf open shortest path first with an ospf configuration example. This is a basic labs regarding ospf single area configure related to ccna or icnd12 exam. How to configure ospf routing protocol using packet tracer. By collecting connectivity information from all of the devices on the network, ospf. This tutorial explains how to configure ospf routing protocol step by step. For basic ospf configuration, the followin scenario will be a good example. Mar 11, 2017 learn how to configure ospf routing protocol using packet tracer.
Home downloads download cisco ccnp routing pdf study guide. We can verify that by using the show ip ospf neighbor command note we have used the router id 1. Pdf module 1 router basic configuration and static. Compared with rip routing information protocol, ospf can serve many more networks and the period of convergence is very short. Use ospf process number 1 and ensure all networks are in area 0. Learn ospf configuration commands, ospf show commands, ospf network configuration process id, network id, wild card mask and area number and ospf routing in detail. This of course leads to more complexity in the configuration and troubleshooting of ospf networks. Configure secret key for md5 authentication ip ospf. We will use the following network topology the network commands entered on both routers include subnets directly connected to both routers. The router id can be used to break a tie in the election process. Configure the router identifiers for the devices in your ospf network. This tutorial explains how to configure ospf routing protocol step by step with practical example in packet tracer.
In this example we have two ospf areas that is area 0 and area 2. This release of arubaos mobility access switch supports all open shortest path first ospf area types including totally stubby area tsa and notsostubbyarea nssa. Router 1 should be a asbr which redistributes the static routes. The following new commands are added to the command line interface cli. 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.
Ospf is widely used in large networks such as isp backbone and enterprise networks. Therefore, be sure that if you do configure any of these parameters, the configurations for all routers on your network have compatible values. First, we will configure r1 and r2 for the backbone area. Confirm your configuration by entering the configuratkon protocols ospf command. Ospf configuration, the router sends a notification message to the console stating that a neighbor relationship with another ospf router has been established. 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. There are a number of commands for checking the status of the ospf routing process. Link state routing protocols advertise the state of their links. 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. The address field lists the neighboring router rid. The process id number is a locally significant process identification number and this does not need to match neighboring routers. This document shows sample configurations for open shortest path first ospf authentication which allows the flexibility to authenticate.
According to the ospf rfc, when a router is packaging all of its local, type1 router lsas into a single ospf packet, and adds an lsa header to the front of those lsas, the link state id field. Next, you need to define on which interfaces ospf will run and what networks will be advertised. Enhanced interior gateway routing protocol router alley. The first preference for an ospf router id is an explicitly configured 32bit address. This address is not included in the routing table and is not defined by the network command. We can verify that the routers have become neighbors by typing the show ip ospf neighbors command on either router.
Module 1 router basic configuration and static routing. 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. 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. Junos os ospf configuration guide juniper networks. Configure ospf in two routers and check adjacency state, routing table and lsdb. This is done by using the router ospf processid global configuration command.
In this article we will see how to configure ospf step by step. Ospf commands use the commands in this chapter to configure and monitor the open shortest path first ospf routing protocol. The network command defines to which area each interface will belong. Ospf open shortest path first ospf is a standardized linkstate routing protocol, designed to scale efficiently to support larger networks. Here is the configuration to enable md5 authentication. For a complete description of the ospf commands in this chapter. How to configure ospf routing protocol using cisco packet. You can verify that routers have become neighbors by using the show ip eigrp neighbors command on either router. We can verify that by using the show ip ospf neighbor command note we have used the routerid 1. The idea is the same but some of the commands are different. For ospf configuration information and ex amples, refer to the con figuring ospf chapter of the network protocols configuration guide, part 1. Basic ospf configuration guide network startup resource center. Cisco ios router configuration commands cheat sheet pdf. Create one loopback interface in both routers and configure ip address.
739 977 990 178 376 1411 359 1415 978 1523 276 544 1436 1367 332 1136 331 460 1567 1388 1479 1048 508 700 10 1177 1063 977 874 1173 546 87 693 10 777 549