R1#sho ip int bri
Interface                  IP-Address      OK? Method Status                Protocol
Serial0/0                  10.1.12.1       YES manual up                    down   
Loopback1                  10.1.1.1        YES manual up                    up     
Loopback30                 172.30.30.1     YES manual up                    up  

R2(config)#int lo2
R2(config-if)#ip add 10.1.2.1 255.255.255.0
R2(config-if)#exit
R2(config)#int s0/0
R2(config-if)#ip add 10.1.12.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#int s0/1
R2(config-if)#ip add 10.1.23.2 255.255.255.0
R2(config-if)#no shut

R3(config)#int s0/0
R3(config-if)#ip add 10.1.23.3 255.255.255.0
R3(config-if)#no shut
R3(config-if)#exit
R3(config)#int lo3
R3(config-if)#ip add 10.1.3.1 255.255.255.0
R3(config-if)#exit

R3(config)#int lo100
R3(config-if)#ip add 192.168.100.1 255.255.255.0
R3(config-if)#int lo101
R3(config-if)#ip add 192.168.101.1 255.255.255.0
R3(config-if)#exit
R3(config)#int lo102
R3(config-if)#ip add 192.168.102.1 255.255.255.0
R3(config-if)#exit
R3(config)#int lo103
R3(config-if)#ip add 192.168.103.1 255.255.255.0
R3(config-if)#end

Step 2 Add interface into OSPF

R1(config)#router ospf 1
R1(config-router)#net 10.1.12.0 0.0.0.255 a 0
R1(config-router)#net 10.1.1.0 0.0.0.255 a 0
R1(config-router)#exit   
R1(config)#int loopback 1
R1(config-if)#ip ospf network point-to-point

R2(config)#router ospf 1
R2(config-router)#net 10.1.2.0 0.0.0.255 a 0
R2(config-router)#net 10.1.23.0 0.0.0.255 a 23
R2(config-router)#net 10.1.12.0 0.0.0.255 a 0
R2(config-router)#exit
R2(config)#int lo2
R2(config-if)#ip ospf network point-to-point
R2(config-if)#exit

R3(config)#router ospf 1
R3(config-router)#net 10.1.23.0 0.0.0.255 a 23
R3(config-router)#net 10.1.3.0 0.0.0.255 a 23
R3(config-router)#exit
R3(config)#int lo3
R3(config-if)#ip ospf network point-to-point
R3(config-if)#exit

Step 3. Create a virtual link

R2(config)#router ospf 1
R2(config-router)#area 23 virtual-link 192.168.103.1

R3(config)#router ospf 1
R3(config-router)#net 192.168.100.0 0.0.0.255 a 100
R3(config-router)#exit
R3(config)#int loopback 100
R3(config-if)#ip ospf network point-to-point 
R3(config-if)#exit


R3(config)#int lo101
R3(config-if)#ip ospf network point-to-point
R3(config-if)#exi
R3(config)#int lo102
R3(config-if)#ip ospf network point-to-point
R3(config-if)#exi
R3(config)#int lo103
R3(config-if)#ip ospf network point-to-point
R3(config-if)#exit

R3(config)#router ospf 1
R3(config-router)#area 23 virtual-link 10.1.2.1

Step4.summarize an area

R3(config)#router ospf 1
R3(config-router)#area 100 range 192.168.100.0 255.255.255.0

Step5.Generate a default route into OSPF.

R3(config)#router ospf 1
R3(config-router)#default-information originate always

To Verify

Show ip ospf database
Show ip route
Show ip ospf interface
Show ip ospf neibour
Show ip ospf

R1#sho ip ospf database

            OSPF Router with ID (172.30.30.1) (Process ID 1)

                        Router Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum Link count
10.1.2.1        10.1.2.1        577         0x80000005 0x0024DF 4
172.30.30.1     172.30.30.1     1229        0x80000004 0x000A69 3
192.168.103.1   192.168.103.1   2     (DNA) 0x80000003 0x00A96C 1

                        Summary Net Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum
10.1.3.0        10.1.2.1        1086        0x80000001 0x00EFEF
10.1.3.0        192.168.103.1   7     (DNA) 0x80000001 0x00FD5E
10.1.23.0       10.1.2.1        1237        0x80000001 0x0009C3
10.1.23.0       192.168.103.1   7     (DNA) 0x80000001 0x00996F
192.168.100.0   192.168.103.1   7     (DNA) 0x80000001 0x00ABF0

                        Summary ASB Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum
192.168.103.1   10.1.2.1        468         0x80000001 0x005AC1
          
                        Type-5 AS External Link States

Link ID         ADV Router      Age         Seq#       Checksum Tag
0.0.0.0         192.168.103.1   475         0x80000001 0x00558B 1

R1#sho ip route

Gateway of last resort is 10.1.12.2 to network 0.0.0.0

     172.30.0.0/30 is subnetted, 1 subnets
C       172.30.30.0 is directly connected, Loopback30
     10.0.0.0/24 is subnetted, 5 subnets
C       10.1.12.0 is directly connected, Serial0/0
O IA    10.1.3.0 [110/129] via 10.1.12.2, 00:08:34, Serial0/0
O       10.1.2.0 [110/65] via 10.1.12.2, 00:08:34, Serial0/0
C       10.1.1.0 is directly connected, Loopback1
O IA    10.1.23.0 [110/128] via 10.1.12.2, 00:08:34, Serial0/0
O IA 192.168.100.0/24 [110/129] via 10.1.12.2, 00:08:34, Serial0/0
O*E2 0.0.0.0/0 [110/1] via 10.1.12.2, 00:08:26, Serial0/0

R1#sho ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
10.1.2.1          0   FULL/  -        00:00:30    10.1.12.2       Serial0/0

R2#sho ip ospf database

            OSPF Router with ID (10.1.2.1) (Process ID 1)

                        Router Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum Link count
10.1.2.1        10.1.2.1        736         0x80000005 0x0024DF 4
172.30.30.1     172.30.30.1     1390        0x80000004 0x000A69 3
192.168.103.1   192.168.103.1   1     (DNA) 0x80000003 0x00A96C 1

                        Summary Net Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum
10.1.3.0        10.1.2.1        1245        0x80000001 0x00EFEF
10.1.3.0        192.168.103.1   6     (DNA) 0x80000001 0x00FD5E
10.1.23.0       10.1.2.1        1396        0x80000001 0x0009C3
10.1.23.0       192.168.103.1   6     (DNA) 0x80000001 0x00996F
192.168.100.0   192.168.103.1   6     (DNA) 0x80000001 0x00ABF0

                        Summary ASB Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum
192.168.103.1   10.1.2.1        627         0x80000001 0x005AC1
         
                        Router Link States (Area 23)

Link ID         ADV Router      Age         Seq#       Checksum Link count
10.1.2.1        10.1.2.1        736         0x80000003 0x00DD8B 2
192.168.103.1   192.168.103.1   635         0x80000006 0x002E52 3

                        Summary Net Link States (Area 23)

Link ID         ADV Router      Age         Seq#       Checksum
10.1.1.0        10.1.2.1        1388        0x80000001 0x0006DB
10.1.2.0        10.1.2.1        1365        0x80000001 0x0078A8
10.1.12.0       10.1.2.1        1388        0x80000001 0x008255
192.168.100.0   192.168.103.1   746         0x80000001 0x00ABF0

                        Summary ASB Link States (Area 23)

Link ID         ADV Router      Age         Seq#       Checksum
192.168.103.1   10.1.2.1        629         0x80000001 0x005AC1

                        Type-5 AS External Link States

Link ID         ADV Router      Age         Seq#       Checksum Tag
0.0.0.0         192.168.103.1   636         0x80000001 0x00558B 1

R2#sho ip route

Gateway of last resort is 10.1.23.3 to network 0.0.0.0

     10.0.0.0/24 is subnetted, 5 subnets
C       10.1.12.0 is directly connected, Serial0/0
O       10.1.3.0 [110/65] via 10.1.23.3, 00:11:04, Serial0/1
C       10.1.2.0 is directly connected, Loopback2
O       10.1.1.0 [110/65] via 10.1.12.1, 00:11:04, Serial0/0
C       10.1.23.0 is directly connected, Serial0/1
O IA 192.168.100.0/24 [110/65] via 10.1.23.3, 00:11:04, Serial0/1
O*E2 0.0.0.0/0 [110/1] via 10.1.23.3, 00:11:04, Serial0/1





R2#sho ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
192.168.103.1     0   FULL/  -           -        10.1.23.3       OSPF_VL0
172.30.30.1       0   FULL/  -        00:00:39    10.1.12.1       Serial0/0
192.168.103.1     0   FULL/  -        00:00:37    10.1.23.3       Serial0/1

R3#sho ip ospf database

            OSPF Router with ID (192.168.103.1) (Process ID 1)

                        Router Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum Link count
10.1.2.1        10.1.2.1        1     (DNA) 0x80000005 0x0024DF 4
172.30.30.1     172.30.30.1     653   (DNA) 0x80000004 0x000A69 3
192.168.103.1   192.168.103.1   757         0x80000003 0x00A96C 1

                        Summary Net Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum
10.1.3.0        10.1.2.1        509   (DNA) 0x80000001 0x00EFEF
10.1.3.0        192.168.103.1   868         0x80000001 0x00FD5E
10.1.23.0       10.1.2.1        660   (DNA) 0x80000001 0x0009C3
10.1.23.0       192.168.103.1   868         0x80000001 0x00996F
192.168.100.0   192.168.103.1   868         0x80000001 0x00ABF0

                        Summary ASB Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum
192.168.103.1   10.1.2.1        1     (DNA) 0x80000001 0x005AC1
         
                        Router Link States (Area 23)

Link ID         ADV Router      Age         Seq#       Checksum Link count
10.1.2.1        10.1.2.1        863         0x80000003 0x00DD8B 2
192.168.103.1   192.168.103.1   760         0x80000006 0x002E52 3

                        Summary Net Link States (Area 23)

Link ID         ADV Router      Age         Seq#       Checksum
10.1.1.0        10.1.2.1        1514        0x80000001 0x0006DB
10.1.2.0        10.1.2.1        1491        0x80000001 0x0078A8
10.1.12.0       10.1.2.1        1514        0x80000001 0x008255
192.168.100.0   192.168.103.1   870         0x80000001 0x00ABF0

                        Summary ASB Link States (Area 23)

Link ID         ADV Router      Age         Seq#       Checksum
192.168.103.1   10.1.2.1        756         0x80000001 0x005AC1

                        Router Link States (Area 100)

Link ID         ADV Router      Age         Seq#       Checksum Link count
192.168.103.1   192.168.103.1   760         0x80000004 0x00FCBD 1

                        Summary Net Link States (Area 100)

Link ID         ADV Router      Age         Seq#       Checksum
10.1.1.0        192.168.103.1   857         0x80000001 0x0019C4
10.1.2.0        192.168.103.1   857         0x80000001 0x008B91
10.1.3.0        192.168.103.1   872         0x80000001 0x00FD5E
10.1.12.0       192.168.103.1   857         0x80000001 0x00953E
10.1.23.0       192.168.103.1   872         0x80000001 0x00996F

                        Type-5 AS External Link States

Link ID         ADV Router      Age         Seq#       Checksum Tag
0.0.0.0         192.168.103.1   762         0x80000001 0x00558B 1

R3# sho ip route

Gateway of last resort is not set

     10.0.0.0/24 is subnetted, 5 subnets
O       10.1.12.0 [110/128] via 10.1.23.2, 00:13:38, Serial0/0
C       10.1.3.0 is directly connected, Loopback3
O       10.1.2.0 [110/65] via 10.1.23.2, 00:13:38, Serial0/0
O       10.1.1.0 [110/129] via 10.1.23.2, 00:13:38, Serial0/0
C       10.1.23.0 is directly connected, Serial0/0
C    192.168.102.0/24 is directly connected, Loopback102
C    192.168.103.0/24 is directly connected, Loopback103
C    192.168.100.0/24 is directly connected, Loopback100
C    192.168.101.0/24 is directly connected, Loopback101

R3#sho ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
10.1.2.1          0   FULL/  -           -        10.1.23.2       OSPF_VL0
10.1.2.1          0   FULL/  -        00:00:32    10.1.23.2       Serial0/0

0 comments:

Post a Comment

 
Top