Professional Documents
Culture Documents
This is the second of four labs devoted to GNS3 OSPF. In the In our previous labs we configured area 0,
area 10 with the redistribution of EIGRP and area 23, this time, we will address the configuration of area
30, which, contrary to the logic of OSPF n is not directly connected to area 0. In other words, this lab will
discuss the creation of a virtual-link in OSPF.
The situation:
As shown in the network diagram, area 30 is not directly connected to area 0, which goes against the
basic operation of OSPF. Free for any specific configuration, this area will simply be ignored by the rest
of the network.
Solution:
To correct this problem it is necessary to create an area to virtually extend area 0 to the limit of the area
30. For this there are two ways:
Create a GRE tunnel between ABR2 and ABR3.
Configure a virtual-link in OSPF.
Each of these methods has its uses. However in most cases, the virtual-links are used.
Both methods are based on a principle of data encapsulation to convey through the area that separates
the area from the area 0 "distant". However, the virtual-links that will encapsulate OSPF exchanges,
while using a GRE tunnel encapsulation cause OSPF exchanges but also data, causing an overload of
additional data (since all packets pass from the area 30 should be encapsulated in the GRE tunnel), while
with a virtual-link data flows normally.
In one case, the GRE tunnel can be useful. Using a virtual-link requires the transit area (the area
between the remote area of 0) is a standard area (non-stub), if we cannot meet this condition, the only
functional approach then is to create a GRE tunnel through the transit area to create a link between the
remote area and area 0.
Learning objectives:
Understand and configure a virtual link area.
Verify the operation of the virtual link.
Tasks:
1. Start by setting the area on 30 ABR3.
ABR3 # conf t
ABR3 (config) # router ospf 1
ABR3 (config-router) # network 192.168.30.0 0.0.0.255 area 30
ABR3 (config-router) # ^ Z
ABR3 #
2. Now check if the route to the 192.168.30.0/24 network has been propagated to ABR2.
ABR2> sh ip route
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
As expected, the route to the 192.168.30.0/24 network (which is in the area 30) has not been
transmitted to ABR2, this is because the area 30 is not directly attacked the area0.
Note that a virtual-link configuration at both ends of the transit area. In our case, it will be on
ABR2 and ABR3. On each of them we will define a virtual-link through the area and 23 indicate
the opposite end using the router-id configured in OSPF.
ABR2 # conf t
ABR2 (config) # router ospf 1
ABR2 (config-router) # area 23 virtual-link 4.4.4.4
ABR2 (config-router) # exit
ABR2 (config) #
5. Configuration on ABR3.
ABR3 # conf t
Enter configuration commands, one per line. End with CNTL / Z.
ABR3 (config) # router ospf 1
ABR3 (config-router) # area 23 virtual-link 3.3.3.3
ABR3 (config-router) #
Note as seen through the message displayed when the virtual link is configured, an adjacency is
formed. The area 30 is now virtually connected to area 0.
Verify Virtual-Link:
6. ABR2 check on the adjacency is formed, the state of the virtual-link ... etc.
Note that ABR2 two adjacency relations ABR3 (4.4.4.4), one via the Fa0 / 1 interface, the other
via a special interface ... OSPF_VL1 ... a virtual interface that is used by OSPF to encapsulate
OSPF messages to pass through the area 23.
7. This command checks the status of the virtual-link and all parameters are applied.
An interesting thing to analyze is the behavior of the virtual-link. By throwing an eye on it
directly ABR3 includes the virtual-link extends the area 0, not the 30 area, simply by the fact that
now, ABR3 is also part of the area 0 ...
This completes the third lab; we have now created a virtual link area connecting area 30 to area 0. At
this point we have a functional backbone area 0 and two secondary areas 10 and 23 with area 10 being a
Not So Totally stuby Area. We also have EIGRP being redistributed into OSPF and finally we have a
virtual link connecting area 30 and area 0.
.