OSPF Multi Area with Virtual Link

 

-----------------------------------------------------------------------------------------------------------------------------

Config below

-----------------------------------------------------------------------------------------------------------------------------


R1


interface Loopback0

ip address 1.1.1.1 255.255.255.255

!

interface GigabitEthernet0/0

ip address 192.168.12.1 255.255.255.0

duplex auto

speed auto

!

interface GigabitEthernet0/1

ip address 192.168.13.1 255.255.255.0

duplex auto

speed auto

!

router ospf 100

log-adjacency-changes

network 192.168.13.0 0.0.0.255 area 1

network 192.168.12.0 0.0.0.255 area 0

!


-----------------------------------------------------------------------------------------------------------------------------


R2


interface Loopback0

ip address 2.2.2.2 255.255.255.255

!

interface GigabitEthernet0/0

ip address 192.168.12.2 255.255.255.0

duplex auto

speed auto

!

interface GigabitEthernet0/1

ip address 192.168.24.1 255.255.255.0

duplex auto

speed auto

!

router ospf 100

log-adjacency-changes

area 2 virtual-link 4.4.4.4

network 192.168.12.0 0.0.0.255 area 0

network 192.168.24.0 0.0.0.255 area 2

!


-----------------------------------------------------------------------------------------------------------------------------


R3


interface Loopback0

ip address 3.3.3.3 255.255.255.255

!

interface GigabitEthernet0/1

ip address 192.168.13.2 255.255.255.0

duplex auto

speed auto

!

interface GigabitEthernet0/2

ip address 10.1.1.1 255.255.255.0

duplex auto

speed auto

!

router ospf 100

log-adjacency-changes

network 192.168.13.0 0.0.0.255 area 1

network 3.3.3.3 0.0.0.0 area 1

network 10.1.1.0 0.0.0.255 area 3

!


-----------------------------------------------------------------------------------------------------------------------------


R4

interface Loopback0

ip address 4.4.4.4 255.255.255.255

!

interface GigabitEthernet0/1

ip address 192.168.24.2 255.255.255.0

duplex auto

speed auto

!

interface GigabitEthernet0/2

ip address 10.1.1.2 255.255.255.0

duplex auto

speed auto

!

router ospf 100

log-adjacency-changes

area 2 virtual-link 2.2.2.2

network 4.4.4.4 0.0.0.0 area 2

network 192.168.24.0 0.0.0.255 area 2

network 10.1.1.0 0.0.0.255 area 3

!

-----------------------------------------------------------------------------------------------------------------------------

Verification

-----------------------------------------------------------------------------------------------------------------------------

R1


R1#sh ip ospf neighbor



Neighbor ID Pri State Dead Time Address Interface

3.3.3.3 1 FULL/DR 00:00:31 192.168.13.2 GigabitEthernet0/1

2.2.2.2 1 FULL/DR 00:00:31 192.168.12.2 GigabitEthernet0/0


R1#sh ip ospf database

OSPF Router with ID (1.1.1.1) (Process ID 100)


Router Link States (Area 0)


Link ID ADV Router Age Seq# Checksum Link count

1.1.1.1 1.1.1.1 933 0x80000008 0x007adc 1

2.2.2.2 2.2.2.2 1444 0x8000000b 0x00bde8 2

4.4.4.4 4.4.4.4 1444 0x80000008 0x00443a 2


Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum

192.168.12.2 2.2.2.2 935 0x80000007 0x00e782


Summary Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum

192.168.13.0 1.1.1.1 928 0x8000000d 0x001cbb

3.3.3.3 1.1.1.1 928 0x8000000e 0x00da65

192.168.24.0 4.4.4.4 1388 0x80000010 0x00427b

192.168.24.0 2.2.2.2 1388 0x8000000f 0x008046

4.4.4.4 2.2.2.2 1388 0x80000010 0x008aab

10.1.1.0 4.4.4.4 740 0x80000011 0x0061d0


Router Link States (Area 1)


Link ID ADV Router Age Seq# Checksum Link count

1.1.1.1 1.1.1.1 938 0x80000009 0x008ec5 1

3.3.3.3 3.3.3.3 936 0x80000009 0x0034f2 2


Net Link States (Area 1)

Link ID ADV Router Age Seq# Checksum

192.168.13.2 3.3.3.3 936 0x80000007 0x005c65


Summary Net Link States (Area 1)

Link ID ADV Router Age Seq# Checksum

192.168.12.0 1.1.1.1 933 0x80000017 0x0013bb

4.4.4.4 1.1.1.1 1420 0x80000014 0x00aa8a

10.1.1.0 1.1.1.1 1420 0x80000015 0x00c770

192.168.24.0 1.1.1.1 1384 0x80000016 0x009a28


R1#sh ip route ospf

3.0.0.0/32 is subnetted, 1 subnets

O 3.3.3.3 [110/2] via 192.168.13.2, 03:14:55, GigabitEthernet0/1

4.0.0.0/32 is subnetted, 1 subnets

O 4.4.4.4 [110/3] via 192.168.12.2, 00:22:28, GigabitEthernet0/0

10.0.0.0/24 is subnetted, 1 subnets

O IA 10.1.1.0 [110/3] via 192.168.12.2, 00:22:28, GigabitEthernet0/0

O IA 192.168.24.0 [110/2] via 192.168.12.2, 00:21:52, GigabitEthernet0/0

-----------------------------------------------------------------------------------------------------------------------------


R2


R2#sh ip ospf neighbor



Neighbor ID Pri State Dead Time Address Interface

1.1.1.1 1 FULL/BDR 00:00:34 192.168.12.1 GigabitEthernet0/0

4.4.4.4 0 FULL/ - 00:00:37 192.168.24.2 OSPF_VL0

4.4.4.4 1 FULL/DR 00:00:39 192.168.24.2 GigabitEthernet0/1


R2#sh ip ospf database

OSPF Router with ID (2.2.2.2) (Process ID 100)


Router Link States (Area 0)


Link ID ADV Router Age Seq# Checksum Link count

2.2.2.2 2.2.2.2 1485 0x8000000b 0x00bde8 2

4.4.4.4 4.4.4.4 1485 0x80000008 0x00443a 2

1.1.1.1 1.1.1.1 974 0x80000008 0x007adc 1


Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum

192.168.12.2 2.2.2.2 975 0x80000007 0x00e782


Summary Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum

192.168.24.0 4.4.4.4 1429 0x80000010 0x00427b

192.168.24.0 2.2.2.2 1429 0x8000000f 0x008046

4.4.4.4 2.2.2.2 1429 0x80000010 0x008aab

192.168.13.0 1.1.1.1 969 0x8000000d 0x001cbb

3.3.3.3 1.1.1.1 969 0x8000000e 0x00da65

10.1.1.0 4.4.4.4 781 0x80000011 0x0061d0


Router Link States (Area 1)


Link ID ADV Router Age Seq# Checksum Link count

4.4.4.4 4.4.4.4 2194 0x8000000b 0x0041d7 1

2.2.2.2 2.2.2.2 273 0x8000000c 0x00f157 0


Net Link States (Area 1)

Link ID ADV Router Age Seq# Checksum

192.168.24.2 4.4.4.4 3400 0x80000006 0x007fcb


Summary Net Link States (Area 1)

Link ID ADV Router Age Seq# Checksum

192.168.12.0 2.2.2.2 967 0x80000019 0x00f0d7

192.168.13.0 2.2.2.2 967 0x8000001a 0x00edd7

3.3.3.3 2.2.2.2 967 0x8000001b 0x00ac81

10.1.1.0 4.4.4.4 2585 0x80000005 0x0079c4

4.4.4.4 2.2.2.2 1430 0x80000015 0x0080b0

192.168.24.0 2.2.2.2 1430 0x80000017 0x00704e

10.1.1.0 2.2.2.2 713 0x8000001e 0x008d9e


Router Link States (Area 2)


Link ID ADV Router Age Seq# Checksum Link count

2.2.2.2 2.2.2.2 1434 0x8000000b 0x003103 1

4.4.4.4 4.4.4.4 1434 0x8000000c 0x0003fd 2


Net Link States (Area 2)

Link ID ADV Router Age Seq# Checksum

192.168.24.2 4.4.4.4 1434 0x80000002 0x00a8a3


Summary Net Link States (Area 2)

Link ID ADV Router Age Seq# Checksum

192.168.12.0 2.2.2.2 722 0x8000001b 0x00ecd9

192.168.13.0 2.2.2.2 722 0x8000001c 0x00e9d9

3.3.3.3 2.2.2.2 722 0x8000001d 0x00a883

4.4.4.4 2.2.2.2 1429 0x8000001a 0x0076b5

10.1.1.0 4.4.4.4 783 0x80000012 0x005fd1


R2#sh ip route ospf

3.0.0.0/32 is subnetted, 1 subnets

O IA 3.3.3.3 [110/3] via 192.168.12.1, 03:15:22, GigabitEthernet0/0

4.0.0.0/32 is subnetted, 1 subnets

O 4.4.4.4 [110/2] via 192.168.24.2, 00:22:29, GigabitEthernet0/1

10.0.0.0/24 is subnetted, 1 subnets

O IA 10.1.1.0 [110/2] via 192.168.24.2, 00:22:29, GigabitEthernet0/1

O IA 192.168.13.0 [110/2] via 192.168.12.1, 03:15:22, GigabitEthernet0/0


R2#sh ip ospf virtual-links

Virtual Link OSPF_VL0 to router 4.4.4.4 is up

Run as demand circuit

Transit area 2, via interface GigabitEthernet0/1, Cost of using 1

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

Index 1/2, 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

-----------------------------------------------------------------------------------------------------------------------------

R3


R3#sh ip ospf neighbor



Neighbor ID Pri State Dead Time Address Interface

1.1.1.1 1 FULL/BDR 00:00:32 192.168.13.1 GigabitEthernet0/1

4.4.4.4 1 FULL/DR 00:00:37 10.1.1.2 GigabitEthernet0/2


R3#sh ip ospf database

OSPF Router with ID (3.3.3.3) (Process ID 100)


Router Link States (Area 1)


Link ID ADV Router Age Seq# Checksum Link count

3.3.3.3 3.3.3.3 1014 0x80000009 0x0034f2 2

1.1.1.1 1.1.1.1 1017 0x80000009 0x008ec5 1


Net Link States (Area 1)

Link ID ADV Router Age Seq# Checksum

192.168.13.2 3.3.3.3 1014 0x80000007 0x005c65


Summary Net Link States (Area 1)

Link ID ADV Router Age Seq# Checksum

4.4.4.4 1.1.1.1 1498 0x80000014 0x00aa8a

10.1.1.0 1.1.1.1 1498 0x80000015 0x00c770

192.168.24.0 1.1.1.1 1462 0x80000016 0x009a28

192.168.12.0 1.1.1.1 1012 0x80000017 0x0013bb


Router Link States (Area 3)


Link ID ADV Router Age Seq# Checksum Link count

3.3.3.3 3.3.3.3 18 0x8000000b 0x00f324 1

4.4.4.4 4.4.4.4 1784 0x8000000b 0x00b855 1


Net Link States (Area 3)

Link ID ADV Router Age Seq# Checksum

10.1.1.2 4.4.4.4 20 0x80000007 0x00b00b


Summary Net Link States (Area 3)

Link ID ADV Router Age Seq# Checksum

192.168.12.0 4.4.4.4 1468 0x8000000c 0x00d8f3

192.168.24.0 4.4.4.4 1468 0x8000000f 0x00447a

4.4.4.4 4.4.4.4 823 0x80000010 0x0044ea

192.168.13.0 4.4.4.4 757 0x80000011 0x00cdf7

3.3.3.3 4.4.4.4 757 0x80000012 0x008ca1


R3#sh ip route ospf

4.0.0.0/32 is subnetted, 1 subnets

O IA 4.4.4.4 [110/2] via 10.1.1.2, 00:30:15, GigabitEthernet0/2

O IA 192.168.12.0 [110/2] via 192.168.13.1, 03:17:56, GigabitEthernet0/1

O IA 192.168.24.0 [110/2] via 10.1.1.2, 00:24:58, GigabitEthernet0/2


-----------------------------------------------------------------------------------------------------------------------------

R4


R4#sh ip ospf neighbor



Neighbor ID Pri State Dead Time Address Interface

2.2.2.2 0 FULL/ - 00:00:32 192.168.24.1 OSPF_VL0

2.2.2.2 1 FULL/BDR 00:00:35 192.168.24.1 GigabitEthernet0/1

3.3.3.3 1 FULL/BDR 00:00:36 10.1.1.1 GigabitEthernet0/2


R4#sh ip ospf database

OSPF Router with ID (4.4.4.4) (Process ID 100)


Router Link States (Area 0)


Link ID ADV Router Age Seq# Checksum Link count

4.4.4.4 4.4.4.4 1591 0x80000008 0x00443a 2

2.2.2.2 2.2.2.2 1591 0x8000000b 0x00bde8 2

1.1.1.1 1.1.1.1 1081 0x80000008 0x007adc 1


Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum

192.168.12.2 2.2.2.2 1082 0x80000007 0x00e782


Summary Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum

10.1.1.0 4.4.4.4 887 0x80000011 0x0061d0

192.168.24.0 4.4.4.4 1535 0x80000010 0x00427b

192.168.24.0 2.2.2.2 1535 0x8000000f 0x008046

4.4.4.4 2.2.2.2 1535 0x80000010 0x008aab

192.168.13.0 1.1.1.1 1076 0x8000000d 0x001cbb

3.3.3.3 1.1.1.1 1076 0x8000000e 0x00da65


Router Link States (Area 1)


Link ID ADV Router Age Seq# Checksum Link count

2.2.2.2 2.2.2.2 3505 0x80000009 0x003501 1

4.4.4.4 4.4.4.4 234 0x8000000f 0x0053e2 0


Summary Net Link States (Area 1)

Link ID ADV Router Age Seq# Checksum

10.1.1.0 4.4.4.4 887 0x8000000d 0x0069cc

192.168.12.0 2.2.2.2 2873 0x80000010 0x0003ce

192.168.13.0 2.2.2.2 2873 0x80000011 0x00ffce

3.3.3.3 2.2.2.2 2873 0x80000012 0x00be78

4.4.4.4 4.4.4.4 478 0x80000010 0x0044ea

192.168.12.0 4.4.4.4 1535 0x80000009 0x00def0

192.168.24.0 4.4.4.4 1535 0x8000000c 0x004a77

192.168.13.0 4.4.4.4 824 0x8000000e 0x00d3f4

3.3.3.3 4.4.4.4 824 0x8000000f 0x00929e


Router Link States (Area 2)


Link ID ADV Router Age Seq# Checksum Link count

2.2.2.2 2.2.2.2 1540 0x8000000b 0x003103 1

4.4.4.4 4.4.4.4 1540 0x8000000c 0x0003fd 2


Net Link States (Area 2)

Link ID ADV Router Age Seq# Checksum

192.168.24.2 4.4.4.4 1540 0x80000002 0x00a8a3


Summary Net Link States (Area 2)

Link ID ADV Router Age Seq# Checksum

10.1.1.0 4.4.4.4 889 0x80000012 0x005fd1

4.4.4.4 2.2.2.2 1535 0x8000001a 0x0076b5

192.168.12.0 2.2.2.2 829 0x8000001b 0x00ecd9

192.168.13.0 2.2.2.2 829 0x8000001c 0x00e9d9

3.3.3.3 2.2.2.2 829 0x8000001d 0x00a883


Router Link States (Area 3)


Link ID ADV Router Age Seq# Checksum Link count

4.4.4.4 4.4.4.4 50 0x8000000c 0x00b656 1

3.3.3.3 3.3.3.3 86 0x8000000b 0x00f324 1


Net Link States (Area 3)

Link ID ADV Router Age Seq# Checksum

10.1.1.2 4.4.4.4 87 0x80000007 0x00b00b


Summary Net Link States (Area 3)

Link ID ADV Router Age Seq# Checksum

4.4.4.4 4.4.4.4 890 0x80000010 0x0044ea

192.168.12.0 4.4.4.4 1535 0x8000000c 0x00d8f3

192.168.24.0 4.4.4.4 1535 0x8000000f 0x00447a

192.168.13.0 4.4.4.4 824 0x80000011 0x00cdf7

3.3.3.3 4.4.4.4 824 0x80000012 0x008ca1


R4#sh ip route ospf

3.0.0.0/32 is subnetted, 1 subnets

O IA 3.3.3.3 [110/4] via 192.168.24.1, 00:26:03, GigabitEthernet0/1

O 192.168.12.0 [110/2] via 192.168.24.1, 00:26:03, GigabitEthernet0/1

O IA 192.168.13.0 [110/3] via 192.168.24.1, 00:26:03, GigabitEthernet0/1


R4#sh ip ospf virtual-links

Virtual Link OSPF_VL0 to router 2.2.2.2 is up

Run as demand circuit

Transit area 2, via interface GigabitEthernet0/1, Cost of using 1

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:07

Adjacency State FULL

Index 1/2, 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

-----------------------------------------------------------------------------------------------------------------------------



Comments

Popular Posts