0% found this document useful (0 votes)
1K views4 pages

8.2.4.5 Lab - Configuring Basic Single-Area OSPFv2

The document describes configuring basic OSPFv2 routing protocol on routers in a single area network. The key steps include: 1. Configuring router hostnames, interfaces, IP addresses, and enabling OSPF routing process on each router. 2. Configuring OSPF network statements on each router to advertise connected networks into OSPF. 3. Verifying OSPF neighbor adjacencies form and each router learns routes from others via OSPF.

Uploaded by

Zahra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views4 pages

8.2.4.5 Lab - Configuring Basic Single-Area OSPFv2

The document describes configuring basic OSPFv2 routing protocol on routers in a single area network. The key steps include: 1. Configuring router hostnames, interfaces, IP addresses, and enabling OSPF routing process on each router. 2. Configuring OSPF network statements on each router to advertise connected networks into OSPF. 3. Verifying OSPF neighbor adjacencies form and each router learns routes from others via OSPF.

Uploaded by

Zahra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Travaux pratiques : configuration du protocole OSPFv2 de

base dans une zone unique


a. Désactivez la recherche DNS.

Routeur>enable
Routeur#conf terminal
Routeur(config)#no ip domain-lookup

b. Configurez le nom du périphérique conformément à la topologie.

Routeur#conf terminal
Routeur(config)#hostname R1

c. Attribuez class comme mot de passe du mode d'exécution privilégié.

Router (config) #enable password class


Router (config) #enable secret class

d. Attribuez cisco comme mots de passe de console et vty.

Router (config) # line console 0


Router (config-line) # login
Router (config-line) #password cisco
Router (config) # line vty 0 4
Router (config-line) # login
Router (config-line) # password cisco

e. Configurez une bannière MOTD (message of the day ou message du jour) pour
prévenir les utilisateurs que tout accès non autorisé est interdit.

Router >enable
Password :
Router #configure terminal
Router (config)#banner motd # Accès au routeur restreint aux personnes autorisés. #
f. Configurez logging synchronous pour la ligne de console.
Router (config) # line console 0
Router (config-line) # logging synchronous

g. Configurez l'adresse IP indiquée dans la table d'adressage pour toutes les interfaces.

R1(config)#interface gigabitEthernet 0/0/0


R1(config-if)#ip addre
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#no shutdown

h. %LINK-5-CHANGED: Interface Serial0/1/0, changed state to down


i. R1(config-if)#
j. R1(config-if)#exit
k. R1(config)#int
l. R1(config)#interface se
m. R1(config)#interface serial 0/1/1
n. R1(config-if)#ip add
o. R1(config-if)#ip address 1921.168.13.1 255.255.255.252
p. ^
q. R1(config-if)#ip address 192.168.13.1 255.255.255.252
r. R1(config-if)#no sh
s.
t. %LINK-5-CHANGED: Interface Serial0/1/1, changed state to down
u. R1(config-if)#exit
v. R1(config)#inte
w. R1(config)#interface se
x. R1(config)#interface serial 0/1/0
y. R1(config-if)#no ip add
z. R1(config-if)#no ip address 192.168.12.1 255.255.255.0
aa. R1(config-if)#ip add
bb. R1(config-if)#ip address 192.168.12.1 255.255.255.252
cc. R1(config-if)#no sh
dd. R1(config-if)#!

R2(config)#interface gigabitEthernet 0/0/0


R2(config-if)#ip add
R2(config-if)#ip address 192.168.2.1 255.255.255.0
R2(config-if)#no sh
R2(config-if)#no shutdown

R2(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/0, changed state


to up

R2(config-if)#exit
R2(config)#inte
R2(config)#interface se
R2(config)#interface serial 0/1/0
R2(config-if)#ip add
R2(config-if)#ip address 192.168.12.2 255.255.255.252
R2(config-if)#no sh

R2(config-if)#
%LINK-5-CHANGED: Interface Serial0/1/0, changed state to up

R2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/0, changed state to up

R2(config-if)#exit
R2(config)#int
R2(config)#interface se
R2(config)#interface serial 0/1/1
R2(config-if)#ip add
R2(config-if)#ip address 192.168.23.1 255.255.255.252
R2(config-if)#no sh

R3(config)#interface gigabitEthernet 0/0/0


R3(config-if)#ip add
R3(config-if)#ip address 192.168.3.1 255.255.255.0
R3(config-if)#no sh
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#int
R3(config)#interface ser
R3(config)#interface serial 0/1/1
R3(config-if)#ip add
R3(config-if)#ip address 192.168.23.2 255.255.255.252
R3(config-if)#no shu
R3(config-if)#no shutdown
R3(config-if)#ex
R3(config)#int
R3(config)#interface se
R3(config)#interface serial 0/1/0
R3(config-if)#ip add
R3(config-if)#ip address 192.168.13.2 255.255.255.252
R3(config-if)#no shu
R3(config-if)#no shutdown
h. Définissez la fréquence d'horloge pour toutes les interfaces série DCE sur 128000.

R1(config)#interface serial 0/1/1


R1(config)#clock rate 128000

R2(config)#interface serial 0/1/1


R2(config)#clock rate 128000

R3(config)#interface serial 0/1/0


R3(config)#clock rate 128000

i. Copiez la configuration en cours en tant que configuration initiale.

Router# copy running-config startup-config

Partie 2 : Configuration et vérification du routage OSPF


Dans la Partie 2, vous allez configurer le routage OSPFv2 sur tous les routeurs du réseau, puis vous
vous assurerez que les tables de routage sont mises à jour correctement. Une fois le protocole OSPF
vérifié, vous configurerez l'authentification OSPF sur les liens pour une sécurité accrue.
Étape 1 : Configurez le protocole OSPF sur R1.
a. Utilisez la commande router ospf en mode de configuration globale pour activer le protocole OSPF
sur R1.

R1(config)# router ospf 1


Remarque : l'ID de processus OSPF est conservé en local et n'a aucune signification pour les autres
routeurs du réseau.
b. Configurez les instructions réseau pour les réseaux sur R1. Utilisez 0 comme ID de zone.

R1(config-router)# network 192.168.1.0 0.0.0.255 area 0


R1(config-router)# network 192.168.12.0 0.0.0.3 area 0
R1(config-router)# network 192.168.13.0 0.0.0.3 area 0

R2(config)#router ospf 1
R2(config-router)#network 192.168.2.0 0.0.0.255 area 0
R2(config-router)#network 192.168.12.0 0.0.0.3 area 0
R2(config-router)#network 192.168.23.0 0.0.0.3 area 0

R3(config)#router ospf 1
R3(config-router)#network 192.168.3.0 0.0.0.25 area 0
R3(config-router)#network 192.168.13.0 0.0.0.3 area 0
R3(config-router)#network 192.168.23.0 0.0.0.3 area 0

You might also like