Ospf
Ospf
Ospf
PROTOCOL
LAP2
Lab Exercise
Your task is to configure the network in lab 2 - Advanced OSPF Lab to allow full
connectivity using OSPF. Router A should see routes for and be able to ping the
loopback interface on router C and vice versa. Please feel free to try the lab without
following the Lab Walk-Through section. Text written in courier new font indicates
commands that can be entered on the router.
Purpose
Being able to configure and troubleshoot three routers will enable you to easily tackle
issues that will arise in the lab.
Configurations Topology
Device Interface Ip Subnet mask
Se0/1/0 192.168.1.2 255.255.255.0
Router A Gig0/0/0 192.168.3.1 255.255.255.0
Loopback 0 20.0.0.1 255.0.0.0
Se0/1/0 192.168.1.1 255.255.255.0
Router B Se0/1/1 192.168.2.1 255.255.255.0
Loopback 0 30.0.0.1 255.0.0.0
Se0/1/0 192.168.2.2 255.255.255.0
Router C Gig0/0/0 192.168.4.1 255.255.255.0
Loopback 0 10.0.0.1 255.0.0.0
PC1 Fa0 192.168.3.2 255.255.255.0
Laptop 0 Fa0 192.168.4.2 255.255.255.0
Router A
Router>
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname RouterA
RouterA(config)#line vty 0 4
RouterA(config-line)#login local
RouterA(config-line)#username Ahmed password Allam
RouterA(config)#enable secret cisco
RouterA(config)#
Router B
Router>
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname RouterC
RouterC(config)#line vty 0 4
RouterC(config-line)#login local
RouterC(config-line)#username Ahmed password Allam
RouterC(config)#enable secret cisco
RouterC(config)#
To configure OSPF on a router, there are two steps: first, enable the routing
protocol and second, specify the networks to be advertised by OSPF:
Router A
RouterA(config)#router ospf 10
RouterA(config-router)#network 192.168.1.0 0.0.0.255 area 0
RouterA(config-router)#network 192.168.3.0 0.0.0.255 area 1
RouterA(config-router)#network 20.0.0.0 0.255.255.255 area 1
RouterA(config-router)#exit
RouterA(config)#
Router B
RouterB(config)#router ospf 12
RouterB(config-router)#network 192.168.1.0 0.0.0.255 area 0
RouterB(config-router)#
00:37:00: %OSPF-5-ADJCHG: Process 12, Nbr 20.0.0.1 on Serial0/1/0 from
LOADING to FULL, Loading Done
Router C
RouterC(config)#router ospf 10
RouterC(config-router)#network 192.168.2.0 0.0.0.255 area 0
RouterC(config-router)#ne
00:45:57: %OSPF-5-ADJCHG: Process 10, Nbr 30.0.0.1 on Serial0/1/0 from
LOADING to FULL, Loading Done
RouterC(config-router)#network 192.168.4.0 0.0.0.255 area 2
RouterC(config-router)#network 10.0.0.0 0.255.255.255 area 2
RouterC(config-router)#exit
Thank You
Network Engineer: Ahmed Abou_Elmaged Shallan Allam