OSPF Multi Area Configuration of 3 Routers – Class B – Advance LAB

In this lab, I will show OSPF Multi Area Configuration of 3 Routers

VLSM

Given Network: 150.100.0.0

Required host on Router 1= 30,000

Required host on Router 2= 8,000

Required host on Router 3= 2000

R1<=30,000

30,000 <=2n – 2

30,000 <=215 – 2

30,000<=32,768 – 2

30,000<=32,766

Total number of network bits = 32

32 – n = 32 – 15 = 17 (CIDR value of Router 1 i.e. Given network)

i.e. 150.100.0.0/17

N.S.M = 11111111.11111111.10000000.00000000

= 255.255.128.0

Block Size        = 256 – N.S.M

                        = 256 – 128 = 128

Note: Add this block size in given network so that we can get our new network for Router 2.

so the new network is 150.100.128.0/?

Now find FVH, LVH and Broadcast address

Given Network15010000
First Valid Host-FVH15010001
Last Valid Host-LVH150100127254
Broadcast150100127255
New Network1501001280

R2<=8,000

8,000<=2n – 2

8,000<=213 – 2

8,000<=8,192 – 2

8,000<=8,190

Total number of network bits = 32

32 – n = 32 – 13 = 19 (CIDR value of Router 2 i.e. New network)

i.e. 150.100.128.0/19

N.S.M = 11111111.11111111.111 00000.00000000

= 255.255.224.0

Block Size        = 256 – N.S.M

                        = 256 – 224 = 32

Note: Add this block size in given network so that we can get our new network for Router 3.

so the new network is 150.100.160.0/?

Now find FVH, LVH and Broadcast address

Given Network1501001280
First Valid Host-FVH1501001281
Last Valid Host-LVH150100159254
Broadcast150100159255
New Network1501001600

R3<=2,000

2,000<=2n – 2

2,000<=211 – 2

2,000<=2,048 – 2

2,000<=2,046

Total number of network bits = 32

32 – n = 32 – 11 = 21 (CIDR value of Router 3 i.e. New network)

i.e. 150.100.160.0/21

N.S.M = 11111111.11111111.11111000.00000000

= 255.255.248.0

Block Size        = 256 – N.S.M

                        = 256 – 248 = 8

Note: Add this block size in given network so that we can get our new network for Router 1 and Router 2 (Virtual Network).

so the new network is 150.100.168.0/?

Now find FVH, LVH and Broadcast address

Given Network1501001600
First Valid Host-FVH1501001601
Last Valid Host-LVH150100167254
Broadcast150100167255
New Network1501001680

Router 1 and Router 2 <= 2 (we required only two IP to connect two routers)

2 <= 2n – 2

2 <= 22 – 2

2 <= 4 – 2

2 <= 2

Total number of network bits = 32

32 – n = 32 – 2 = 30 (CIDR of Virtual network (R1&R2))

i.e. 150.100.168.0/30

N.S.M = 11111111.11111111.11111111.11111100

                        = 255.255.255.252

Block Size        = 256 – N.S.M

                        = 256 – 252 = 4

Note: Add this block size in given network so that we can get our new network for Router 2 and Router 3 (Virtual Network). so the new network is 150.100.168.4/30?

Now find FVH, LVH and Broadcast address

Given Network1501001680
First Valid Host-FVH1501001681
Last Valid Host-LVH1501001682
Broadcast1501001683
New Network1501001684

2 and Router 3 <= 2 (we required only two IP to connect two routers)

2 <= 2n – 2

2 <= 22 – 2

2 <= 4 – 2

2 <= 2

Total number of network bits = 32

32 – n = 32 – 2 = 30 (CIDR of Virtual network (R2&R3))

i.e. 150.100.168.4/30

N.S.M = 11111111.11111111.11111111.11111100

                        = 255.255.255.252

Block Size        = 256 – N.S.M

                        = 256 – 252 = 4

Note: Add this block size in given network so that we can get our new network for Router 4. This network can be used in future.

so the new network is 150.100.168.8/?

Now find FVH, LVH and Broadcast address

Given Network1501001684
First Valid Host-FVH1501001685
Last Valid Host-LVH1501001686
Broadcast1501001687
New Network1501001688

Basic Configuration on Router 1

Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 150.100.0.1 255.255.128.0
R1(config-if)#no shutdown
R1(config-if)#exit  

R1(config)#interface serial 0/0/0
R1(config-if)#ip address 150.100.168.1 255.255.255.252
R1(config-if)#clock rate 64000
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#exit
R1#write

Basic Configuration on Router 2

Router>enable
Router#configure terminal
Router(config)#hostname R2
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 150.100.128.1 255.255.224.0
R2(config-if)#no  shutdown
R2(config-if)#exit  

R2(config)#interface serial 0/1/0
R2(config-if)#ip address 150.100.168.2 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#exit  

R2(config)#interface serial 0/0/0
R2(config-if)#ip address 150.100.168.5 255.255.255.252
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#exit
R2#write

Basic Configuration on Router 3

Router>enable
Router#configure terminal
Router(config)#hostname R3
R3(config)#interface fastEthernet 0/0
R3(config-if)#ip address 150.100.160.1 255.255.248.0
R3(config-if)#no shutdown
R3(config-if)#exit  

R3(config)#interface serial 0/1/0
R3(config-if)#ip address 150.100.168.6 255.255.255.252
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#exit
R3#write

OSPF Multi Area Configuration on Router 1

R1>enable
R1#configure terminal
R1(config)#router ospf 30
R1(config-router)#network 150.100.0.1                   0.0.0.0             area 1
R1(config-router)#network 150.100.168.1               0.0.0.0             area 0 R1(config-router)#exit
R1(config)#exit
R1#write

OSPF Multi Area Configuration on Router 2

R2>enable
R2#configure terminal
R2(config)#router ospf 30
R2(config-router)#network 150.100.168.2               0.0.0.0             area 0
R2(config-router)#network 150.100.168.5               0.0.0.0             area 0
R2(config-router)#network 150.100.128.1               0.0.0.0             area 0
R2(config-router)#exit
R2(config)#exit
R2#write

OSPF Multi Area Configuration on Router 3

R3>enable
R3#configure terminal
R3(config)#router ospf 30
R3(config-router)#network 150.100.168.6               0.0.0.0             area 0
R3(config-router)#network 150.100.160.1               0.0.0.0             area 2
R3(config-router)#exit
R3(config)#exit
R3#write

Verification on Router 1

R1#show ip route     
150.100.0.0/16 is variably subnetted, 5 subnets, 4 masks
C       150.100.0.0/17 is directly connected, FastEthernet0/0
O       150.100.128.0/19 [110/65] via 150.100.168.2, 00:01:19, Serial0/0/0
O IA    150.100.160.0/21 [110/129] via 150.100.168.2, 00:00:02, Serial0/0/0
C       150.100.168.0/30 is directly connected, Serial0/0/0
O       150.100.168.4/30 [110/128] via 150.100.168.2, 00:01:19, Serial0/0/0

Verification on Router 2

R2#show ip route     
150.100.0.0/16 is variably subnetted, 5 subnets, 4 masks
O IA    150.100.0.0/17 [110/65] via 150.100.168.1, 00:01:42, Serial0/1/0
C       150.100.128.0/19 is directly connected, FastEthernet0/0
O IA    150.100.160.0/21 [110/65] via 150.100.168.6, 00:00:24, Serial0/0/0
C       150.100.168.0/30 is directly connected, Serial0/1/0
C       150.100.168.4/30 is directly connected, Serial0/0/0

Verification on Router 3

R3#show ip route     
150.100.0.0/16 is variably subnetted, 5 subnets, 4 masks
O IA    150.100.0.0/17 [110/129] via 150.100.168.5, 00:00:51, Serial0/1/0
O       150.100.128.0/19 [110/65] via 150.100.168.5, 00:00:51, Serial0/1/0
C       150.100.160.0/21 is directly connected, FastEthernet0/0
O       150.100.168.0/30 [110/128] via 150.100.168.5, 00:00:51, Serial0/1/0
C       150.100.168.4/30 is directly connected, Serial0/1/0

Leave a Reply

Your email address will not be published. Required fields are marked *