Virtual Link Configuration

ccnp-routing
Step by step OSPF virtual link configuration in a five router lab, verifying routing tables and DoNotAge LSAs, plus link authentication.
Published

Dec 8, 2017

This is an example we work on

ospf

Basic OSPF Configuration

R1:
router ospf 1
 network 12.12.12.1 0.0.0.0 area 12
R2:
router ospf 1
 network 12.12.12.2 0.0.0.0 area 12
 network 172.16.234.2 0.0.0.0 area 234
R3:
router ospf 1
 network 35.35.35.3 0.0.0.0 area 0
 network 172.16.234.3 0.0.0.0 area 234
R4:
router ospf 1
 area 234 virtual-link 2.2.2.2
 network 45.45.45.4 0.0.0.0 area 0
 network 172.16.234.4 0.0.0.0 area 234
R5:
router ospf 1
 network 10.10.0.0 0.0.7.255 area 0
 network 35.35.35.5 0.0.0.0 area 0
 network 45.45.45.5 0.0.0.0 area 0

Basic verification on R5:

  1. Routing Table:

    R5#show ip route ospf
    Gateway of last resort is not set
    
       172.16.0.0/24 is subnetted, 1 subnets
    O IA     172.16.234.0 [110/2] via 45.45.45.4, GigabitEthernet0/4
                       [110/2] via 35.35.35.3, GigabitEthernet0/3
    
  2. LSDB:

    R5#show ip ospf database

         OSPF Router with ID (50.5.5.5) (Process ID 1)
    
     Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count 3.3.3.3 3.3.3.3 616 0x80000008 0x0094A3 1 4.4.4.4 4.4.4.4 613 0x80000008 0x00B042 1 50.5.5.5 50.5.5.5 612 0x80000004 0x005037 6

    Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum 35.35.35.5 50.5.5.5 615 0x80000001 0x00A2A1 45.45.45.5 50.5.5.5 611 0x80000001 0x006BB6

    Summary Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum 172.16.234.0 3.3.3.3 607 0x80000002 0x0099ED 172.16.234.0 4.4.4.4 602 0x80000004 0x00770A

Authentication

  • Customer’s requirement:
    1. R2 and R3 authenticate each other using clear text
    2. R2 and R4 authenticate each other using MD5
R2(config-router)#area 234 virtual-link 3.3.3.3 authentication-key cisco
R2(config-router)#area 234 virtual-link 4.4.4.4 authentication message-digest-key 89 md5 cisco
R3(config-router)#area 234 virtual-link 2.2.2.2 authentication-key cisco
R4(config-router)#area 234 virtual-link 2.2.2.2 authentication message-digest-key 89 md5 cisco
Back to top