Week 6
Week 6
NOTE the OSPF process number doesn't have to be the same on all routers
in order to establish a neighbor relationship, but the Area ID has to be the
same on all neighboring routers in order for routers to become neighbors.
Let's get started with the basic OSPF
configuration.
You can see that R1 has learned about the network 192.168.0.0/24 through OSPF.
Configuring OSPF
Although basic OSPF configuration can be very simple, OSPF provides
many extra features that can get really complex. In this example, we
will configure multiarea OSPF network and some other OSPF features.
Consider the following multiarea OSPF network.
In this example we have two OSPF areas, area 0 and area 1. As you can see
from the network topology depicted above, Routers R1 and R3 are in the area
0 and area 1, respectively. Router 2 connects to both areas, which makes him
an ABR (Area Border Router). Our goal is to advertise the subnets directly
connected to R1 and R3. To do that, the following configuration on R1 will be
used:
NOTE we have used the router-id 1.1.1.1 command to manually specify the
router ID of this router. OSPF process will use that RID (router-id) when
communicating with other OSPF neighbors.
Because R1 connects only to R2, we only need to establish a neighbor
relationship with R2 and advertise directly connected subnet into OSPF.
Configuration of R3 looks similar, but with one difference, namely area
number. R3 is in the area 1.
What about R2? Well, because R2 is an ABR, we need to establish
neighbor relationship with both R1 and R3. To do that, we need to
specify different area ID for each neighbor relationship, O for R1 and 1
for R2. We can do that using the following sequence of commands:
Now R2 should have neighbor relationship
with both R1 and R3. We can verify that by
using the show ip ospf neighbor command:
To verify if directly connected subnets are really advertised into the
different area, we can use the show ip route ospf command on both R1
and R3:
ASN_NUMBER command
○ telling EIGRP which networks to advertise by using one or more
network statements
● The first command, router eigrp ASN_NUMBER, enables EIGRP on a
router. ASN_NUMBER represents an autonomous system number
and has to be the same on all routers running EIGRP, otherwise
routers won't become neighbors. The second command, network
SUBNET, enables EIGRP on selected interfaces and specifies which
networks will be advertised. By default, the network command
takes a classful network number as the parameter.
To illustrate a configuration of EIGRP, we will use the
following figure:
The command above lists all EIGRP neighbors. The address field lists the neighboring
router RID (router ID). The interface field shows on which local interface the neighbor
relationship has been formed.
You can verify that routes are indeed being exchanged by
using the show ip route command on both routers:
NOTE - the "D" character at the beginning of a line in a routing table indicates
that the route has been learned via EIGRP.
Configuring EIGRP