Monday, February 27, 2017

Configuring Virtual Links on GNS 3






Please note that it is not recommended to design your network in a way that there is a network that will be not attached to Area 0 (The Backbone Network). If your caught up in this situation, by using the concept of Virtual Link we will allow the network which is not attached to Area 0 Directly to receive Routing Updates and being able to communicate with other networks on different Areas. 


Configuring a Virtual Link between R7 and R6 to enable R8 on Area 78 to receive OSPF Routing Updates.

Router ID for R7 is 7.7.7.7
Router ID for R6 is 6.6.6.6
Routing Protocol Configured: OSPF
Router 5 has redistribution configured due to 2 routing protocols working on the same router RIPv2 and OSPF


//Configuring Virtual Link between Router R7 and Router R6.

On R7
=================================================================
R7#config t
Enter configuration commands, one per line. End with CNTL/Z.
R7(config)#router ospf 1
R7(config-router)#area 67 virtual-link 6.6.6.6
R7(config-router)#end


On R6 
================================================================
R6#config t
R6(config)#router ospf 1
R6(config-router)#area 67 virtual-link 7.7.7.7
R6(config-router)#end



//Verifying the Status of the Virtual Links

On R6
=================================================================
R6#show ip ospf virtual-links

Virtual Link OSPF_VL0 to router 7.7.7.7 is up
Run as demand circuit
DoNotAge LSA allowed.
Transit area 67, via interface Serial0/0, Cost of using 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:06
Adjacency State FULL (Hello suppressed)
Index 4/5, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec

On R7
==================================================================
R7#show ip ospf virtual-links

Virtual Link OSPF_VL0 to router 6.6.6.6 is up
Run as demand circuit
DoNotAge LSA allowed.
Transit area 67, via interface Serial0/0, Cost of using 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:01
Adjacency State FULL (Hello suppressed)
Index 1/3, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec

Configuring Summarization on an Area Border Router.


Configuring Summarization on an Area Border Router. 

Perforing Network Setup Using GNS 3

On R1

NOTE: We are Creating the loopback interfaces to simulate different networks connected to Router 1
R1(config)#interface Loopback1
R1(config-if)#ip address 172.16.1.1 255.255.255.0

R1(config)#interface Loopback2
R1(config)# ip address 172.16.2.1 255.255.255.0

R1(config-if)#interface Loopback3
R1(config-if)# ip address 172.16.3.1 255.255.255.0

R1(config)#interface Loopback4
R1(config-if)#ip address 172.16.4.1 255.255.255.0

R1(config)#interface s0/0
R1(config-if)#ip address 10.1.1.1 255.255.255.0


//We are Configuring the the OSPF Routing Protocol on R1
--------------------------------------------------------------------------------

R1 (config)#router ospf 1
R1(config-router)# router-id 1.1.1.1
R1(config-router)#  network 10.1.1.1 0.0.0.0 area 0
R1(config-router)#  network 172.16.1.1 0.0.0.0 area 0
R1(config-router)#  network 172.16.2.1 0.0.0.0 area 0
R1(config-router)#  network 172.16.3.1 0.0.0.0 area 0
R1(config-router)#  network 172.16.4.1 0.0.0.0 area 0
R1(config-router)#end

On R3

//Configuring the Loopback interfaces to simulate different networks on Router 3

R1(config)#interface Loopback1
R1(config-if)#ip address 172.17.1.1 255.255.255.0

R1(config)#interface Loopback2
R1(config)# ip address 172.17.2.1 255.255.255.0

R1(config-if)#interface Loopback3
R1(config-if)# ip address 172.17.3.1 255.255.255.0

R1(config)#interface Loopback4
R1(config-if)#ip address 172.17.4.1 255.255.255.0

R1(config)#interface s0/0
R1(config-if)#ip address 192.168.1.2 255.255.255.0

//Configuring the OSPF Routing Protocol on R1

R1 (config)#router ospf 1
R1(config-router)# router-id 3.3.3.3
R1(config-router)#  network 192.168.1.2 0.0.0.0 area 0
R1(config-router)#  network 172.17.1.1 0.0.0.0 area 0
R1(config-router)#  network 172.17.2.1 0.0.0.0 area 0
R1(config-router)#  network 172.17.3.1 0.0.0.0 area 0
R1(config-router)#  network 172.17.4.1 0.0.0.0 area 0
R1(config-router)#end


On R2

R2(config)# interface Serial0/0
 R2(config-if)# ip address 10.1.1.2 255.255.255.0
 R2(config-if)# clock rate 2000000

R2(config)# interface Serial0/1
R2(config-if)# ip address 192.168.1.1 255.255.255.0
R2(config-if)# clock rate 2000000

R2(config)#router ospf 1
R2(config-router)# router-id 2.2.2.2
R2(config-router)# network 10.1.1.2 0.0.0.0 area 0
R2(config-router)# network 192.168.1.1 0.0.0.0 area 1
R2(config-router)# area 0 range 172.16.0.0 255.255.248.0
R2(config-router)# area 1 range 172.17.0.0 255.255.248.0


 NOTE: The last 2 statements allows the Router 3 also known as the ABR (Area Border Router) to perform summarization to Routers on Both Areas that is Area 0 and Area 1

NOTE: Please make sure you have already the Submnetting,VLSM and Summarization Basics

After that verify by going on R1 and R3 to see the summarized routes by using the command

**show ip route 


Cheers 



************************************Enjoy***************************************