Thursday, May 14, 2015

Lab 18 OSPF Multiple Areas

Objective

To be able to configure OSPF in an environment with multiple areas

Topology


Basic Setting

IPs for computers and routers have been set up.
Requirements
Configure OSPF in are 0, are1 and area2.

Steps

On Route5

Router>en
Router#config t
Router(config)#router ospf 1
Router(config-router)#network 172.16.0.0 0.0.255.255 area 1

On Route6

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router ospf 1
Router(config-router)#network 172.16.0.0 0.0.255.255 area 1

On boundary router (Router 2)

Router(config)#router ospf 1
Router(config-router)#network 172.16.0.0 0.0.0.255 area 1
Router(config-router)#network 192.168.0.0 0.0.0.3 area 0

On Router0

Router#config t
Router(config)#router ospf 1
Router(config-router)#network 192.168.0.0 0.0.0.255 area 0

On Router1

Router#config t
Router(config)#router ospf 1
Router(config-router)#network 192.168.0.0 0.0.0.255 area 0
Router(config-router)#

On Router4

Router>en
Router#config t
Router(config)#router ospf 1
Router(config-router)#network 192.168.0.0 0.0.0.255 area 0

On Router3

Router(config)#route ospf 1
Router(config-router)#network 192.168.0.0 0.0.255.255 area 0         // for 2 interfaces
Router(config-router)#

On Router7

Router(config)#router ospf 1
Router(config-router)#network 192.168.0.20 0.0.0.3 area 0
Router(config-router)#network 10.0.0.0 0.0.0.255 area 2

On Router 9

Router#config t
Router(config)#router ospf 1
Router(config-router)#network 10.0.0.0 0.0.255.255 area 2

On Router 10

Router#config t
Router(config)#router ospf 1
Router(config-router)#network 10.0.0.0 0.0.255.255 area 2

Test OSPF

On Router6

Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
O IA 10.0.0.0/30 [110/4686] via 172.16.0.9, 00:02:11, Serial2/0
O IA 10.0.0.4/30 [110/4686] via 172.16.0.9, 00:02:11, Serial2/0
O IA 10.0.0.8/30 [110/5467] via 172.16.0.9, 00:02:11, Serial2/0
O IA 10.0.1.0/24 [110/4687] via 172.16.0.9, 00:02:11, Serial2/0
O IA 10.0.2.0/24 [110/4687] via 172.16.0.9, 00:02:11, Serial2/0
172.16.0.0/16 is variably subnetted, 5 subnets, 2 masks
O 172.16.0.0/30 [110/1562] via 172.16.0.5, 00:02:31, Serial3/0
[110/1562] via 172.16.0.9, 00:02:31, Serial2/0
C 172.16.0.4/30 is directly connected, Serial3/0
C 172.16.0.8/30 is directly connected, Serial2/0
O 172.16.1.0/24 [110/782] via 172.16.0.5, 00:02:31, Serial3/0
C 172.16.2.0/24 is directly connected, FastEthernet0/0
192.168.0.0/30 is subnetted, 6 subnets
O IA 192.168.0.0 [110/1562] via 172.16.0.9, 00:02:31, Serial2/0
O IA 192.168.0.4 [110/2343] via 172.16.0.9, 00:02:21, Serial2/0
O IA 192.168.0.8 [110/3124] via 172.16.0.9, 00:02:11, Serial2/0
O IA 192.168.0.12 [110/2343] via 172.16.0.9, 00:02:21, Serial2/0
O IA 192.168.0.16 [110/3124] via 172.16.0.9, 00:02:11, Serial2/0
O IA 192.168.0.20 [110/3905] via 172.16.0.9, 00:02:11, Serial2/0
Router#

On PC0, tracert PC2

PC>tracert 10.0.0.2
Tracing route to 10.0.0.2 over a maximum of 30 hops:
1 8 ms 6 ms 7 ms 172.16.2.1
2 12 ms 14 ms 12 ms 172.16.0.9
3 18 ms 15 ms 19 ms 192.168.0.2
4 21 ms 21 ms 20 ms 192.168.0.6
5 32 ms 22 ms 25 ms 192.168.0.10
6 29 ms 29 ms 25 ms 192.168.0.22
7 28 ms 33 ms 24 ms 10.0.0.2
Trace complete.
PC>

No comments :

Post a Comment