Documente Academic
Documente Profesional
Documente Cultură
Página 1 de 31
T
he purpose of this post is to cover basic OSPF configuration steps and commands. Intended
readers are engineers with basic OSPF knowledge who want to know how to configure OSPF
on Alcatel-Lucent Service Routers (7750-SR, 7705-SR, 7210-SR). All the examples are valid for
TiMOS-B-12.0.R8 both/i386 ALCATEL SR 7750 Copyright (c) 2000-2015 Alcatel-Lucent. software.
SINGLE-AREA OSPF
Basic OSPF protocol configuration in a single area consists of the next steps:
I will guide you through basic OSPF configuration steps referring to this topology:
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provider ... Página 2 de 31
To operate properly OSPF routers should have unique Router ID, which is a 32-bit identifier. Router
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provider ... Página 3 de 31
To check Router ID currently value in use and OSPF admin/oper status issue the command show
1 A:R1>config>router>ospf# area
2 - area <area-id>
3 - no area <area-id>
4
5 <area-id> : <ip-address> | [0..4294967295]
Area ID value could be entered as decimal, like area 0 or in dotted-decimal format like area
0.0.0.0 .
It is common practice to use one composite command to enable OSPF process and to configure
OSPF area instead of two separate commands:
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provider ... Página 4 de 31
1 # This command will enable OSPF process (it is disabled by default) and configure Area 0 on this router.
2
3 A:R1# configure router ospf area 0
To check all the configured areas on a router use show router ospf area
<interface_name> command.
To check that OSPF interfaces was configured properly and are operating use this show command:
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provider ... Página 5 de 31
Repeat the same configuration steps by including all the interfaces to OSPF Area 0 to the other
backbone routers R2-R3-R4 and you will end up with fully configured OSPF Backbone Area. Finally
its time to check that our routers established neighboring relationships:
One of the most used OSPF verification commands is show router ospf database . This
command shows all the Links State Advertisements (LSA) and helps the engineer to troubleshoot
OSPF-related issues.
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provider ... Página 6 de 31
MU LTI-AREA OSPF
Basic Multi-area OSPF configuration is straightforward as well. I added two more routers to
previous topology acting as core routers in two new areas: Area 1 and Area 2.
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provider ... Página 7 de 31
sorry fellows, I mistyped port numbers for R5-R1 and R6 -R2 pairs, it should be 1/1/4. Though this
wont affect the course of this topic in anyway
W e will start by configuring Area 1 on routers R5 and R1. Every command is from the previous
section, so you wouldn’ t face any problems.
R5 R1 (ABR)
Adding one more Area (besides backbone Area 0) on R1 makes it Area Border Router. So R1 will
form and maintain another neighbor relationships with R5 in Area 1. W e will check if its true:
on R5 on R1
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provider ... Página 8 de 31
on R1 (ABR) on R5
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provider ... Página 9 de 31
Aha, R1 as being an ABR lists all LSA’ s for both Area 0 and Area 1. Moreover, R1 lists Type 3
Summary LSA from Area 0 to Area 1 and vice versa, from Area 1 to Area 0.
R5 has only Area 1’ s LSA’ s, since R5 lives in j ust one Area – Area 1.
on R1 (ABR) on R5
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 10 de 31
Since we configured all routers in our topology we can try to run ping between R6 and R5:
So far we configured multi-area OSPF topology with three Areas. And one of the reasons to
implement multi-area OSPF topology is the ability to perform manual summariz ation. In this section
we will configure OSPF route summariz ation between Area 0 and Area 1.
To get a range of IP addresses which we will summariz e later we will add 3 loopback interfaces to
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 11 de 31
Since we added these interfaces to OSPF we see them coming to R5 router as Type 3 Network
Summary LSA. And these routes make their way to routing table.
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 12 de 31
W e will configure route summariz ation on Area Border Router (R1), so it will advertise only one
summary route 192.168.3.0/30 instead of three specific routes.
Configuration steps:
Pay attention, that summariz ation command area-range must be applied in the context of the
area being summariz ed. Since we are summariz ing routes from area 0 to area 1 then we using this
command in area 0 configuration context. By default, adding command area-range
<prefix>/<length> will actually place command area-range <prefix>/<length> advertise in the
configuration, meaning that ABR will advertise this prefix. Counterpart statement not-advertise is
used for route suppression and will be discussed in a detail in next section.
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 13 de 31
Pay attention: route summariz ation procedure automatically places black-hole route in R1’ s route-
table.
Lets see what has changed at R5. R5’ s LSDB now has j ust one Type 3 Summary LSA regarding
network 192.168.3.0/30 and has no LSA’ s for specific networks:
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 14 de 31
Y ou can filter unwanted routes on ABR’ s with the same command area-range adding the key
not-advertise .
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 15 de 31
For example lets take a look at R6 ’ s route table which contains specific routes to R3’ s loopback
addresses. These addresses is advertising by R2 since it is acting as ABR and advertises all the
routes it has in its routing table.
If we want to prevent R2 from advertising some routes to its neighbor in Area 1 then we have to
make configuration steps in Area 0 context since we filter Area 0 routes:
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 16 de 31
By doing this, we tell R2 to stop advertising Type 3 Summary LSA for prefix 192.168.3.1/32 . And
R6 ’ s route table immediately reflects this change by missing this specific route 192.168.3.1/32 :
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 17 de 31
Routes between different routing domains can me mutually exchanged. External routers can be
exported into OSPF and vice versa. The process of routes exchange is often called route
redistribution.
In this section we will redistribute routes added by means of loopback interfaces created on R5.
These routes are in R5’ s route table but are not advertising to OSPF neighbor, since these interfaces
are not included in OSPF process.
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 18 de 31
To redistribute these local routes to OSPF process a policy should be configured. Lets configure
policy with a name EXPORT Local Loopbacks :
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 19 de 31
The next step is to configure R5 as an ASBR router and to apply created policy to OSPF process:
R5 R1 R3 R6
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 20 de 31
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 21 de 31
Stub areas are widely used since they help to optimiz e LSDB and routing tables of the routers. W e
will configure Area 2 as stub, this will tell ABR (R2) to not distribute any External routes and send a
default route instead into Area 2. To configure Area 2 as stub you need to configure all OSPF
routers inside this area:
1 # on R2 (ABR)
2 A:R2# configure router ospf
3 A:R2>config>router>ospf# area 2 stub
4
5
6 # on R6 (Area 2 router)
7 A:R6# configure router ospf area 2 stub
This “ before | after” comparison shows that after configuring Area 2’ s routers as stub R6 router no
longer receives ASBR Summary LSA and AS External LSA nor it has routes 19 2.16 8 .5.1-3/32.
Instead it has a new Summary LSA from ABR with the Link State ID 0.0.0.0 which means default
route.
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 22 de 31
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 23 de 31
ABR router participating in a Totally stub area blocks not only Type 4 ASBR Summary and Type 5 AS
External LSA but also Type 3 Summary LSA. This drastically reduces LSDB and route tables on Area
2 routers. As of this moment we have Area 2 configured as stub area, lets configure it to be totally
stub. To make Area 2 totally stub we need to configure j ust ABR (R2) with keyword no summaries
Now Area 2 router R6 has only 3 LSA in its LSDB. All Type 3 Summary LSA for networks inside Area
0 was substituted by Summary default route from ABR (R2).
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 24 de 31
There is a typo on the pic. No type4 lsa will be advertised in Area0 by R1. Only Type5
Not so stabby areas are basically stub areas with ASBR. It inherits the same rule of blocking Type 4
and Type 5 LSA and in order to distribute external routes from ASBR another LSA – Type 7 – is used.
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 25 de 31
Now when R1 and R5 are neighbors again lets see what has changed:
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 26 de 31
As we see, all Type 5 AS External LSA was substituted by Type 7 NSSA LSA. And if we had any other
external routes we wouldnt see them in R5 database, since NSSA areas can not contain External
routes.
TOTALLY NSSA
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 27 de 31
There is a typo on the pic. No type4 lsa will be advertised in Area0 by R1. Only Type5
As with totally stubby areas, NSSA could be configured in a way that no Type 3 Summary LSA will
present in such area. Totally NSSA configuration adds two additional commands on ABR:
on R1 (ABR) on R5
1 *A:R1>config>router>ospf>area# info
2 ----------------------------------------------
3 nssa
4 exit
5 interface "toR5"
6 interface-type point-to-point
7 no shutdown
8 exit
9 ----------------------------------------------
10
11 # Configuring NSSA to be totally NSSA
12 *A:R1>config>router>ospf>area# nssa no summaries
ABR configured with Totally NSSA area filter Type 3 LSA as totally stubby area does. But notice one
maj or difference – there is no default route inj ected by ABR! This is the cause of ping failure to any
Area 0 address:
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 28 de 31
To resolve this issue you should add another command to NSSA context:
For two OSPF routers to become neighbors several parameters should be matched. And most of
them – are the parametes communicated via OSPF H ello messages. If you do not see the a neighbor
on the other side – there is a good chance that one of these parameters mismatch.
W hen you need to investigate what is the reason casing a neighboring relationships to break down
debug should help. I will show you some debug commands to help you understand how to
troubleshoot OSPF H ello mismatched parameters.
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 29 de 31
To see what is going wrong, lets create logging instance and capture H ello packets to analyz e
their content:
Now we have log and debug configured, we could see log contents:
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 30 de 31
Now the problem is clear – incoming OSPF packet came in with H ello timer set to 5sec. And R1 tells
us that this value mismatches its configured H ello timer value.
This debug technique should indicate every discrepancy in OSPF values that should match, be it
authentication mismatch or area id mismatch.
And that is all for this moment. Should you have any questions – do not hesitate, comment form is
down below!
Roman Dodin
Network engineer at Nokia
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018
Nokia (Alcatel-Lucent) OSPF configuration tutorial | Networking in a Service Provid... Página 31 de 31
1 Comment noshut
1 Login
Name
NOSHUT
How to run Juniper vMX in UNetLab How to get rid of VNC and use telnet
• access for your Linux image?
— Here below some •
additional outputs :admin@P3# run show — Для 16.04 (and higher) етот метод
interfaces em2 | grep Current … не работает, там нужно всего лишь
поменять некоторые строки …
http://noshut.ru/2015/06/alcatel-lucent-ospf-configuration-tutorial/ 09/01/2018