Note 2 – OSPF Configurations and Verifications – Networking – 350-601 Study Guide

Example 1-6 OSFPv3 ABR Verification (SW9621-1)

SW9621-1#
show ospfv3 neighbors


OSPFv3 Process ID 23 VRF default
Total number of neighbors: 1
Neighbor ID Pri State Up Time Interface ID Interface
1.1.1.15 1 FULL/DR 00:00:54 36 Eth2/3
Neighbor address fe80::200:ff:feff:1ff
OSPFv3 Process ID 21 VRF default
Total number of neighbors: 1
Neighbor ID Pri State Up Time Interface ID Interface
1.1.1.10 1 FULL/DR 01:02:49 38 Eth2/1
Neighbor address fe80::200:ff:fe00:2f

SW9621-1#
show ipv6 ospfv3 interface


Ethernet2/3 is up, line protocol is up
IPv6 address 2201:db2::1/48
Process ID 23 VRF default, Instance ID 0, area 0.0.0.5
Enabled by interface configuration
State BDR, Network type BROADCAST, cost 40
Index 1, Transmit delay 1 sec, Router Priority 1
Designated Router ID: 1.1.1.15, address: fe80::200:ff:feff:1ff
Backup Designated Router ID: 1.1.1.1, address: fe80::200:ff:feff:ddfe
1 Neighbors, flooding to 1, adjacent with 1
Timer intervals: Hello 10, Dead 40, Wait 40, Retransmit 5
Hello timer due in 00:00:05
Number of link LSAs: 2, checksum sum 0xe4da
Ethernet2/1 is up, line protocol is up
IPv6 address 2201:db1::1/48
Process ID 21 VRF default, Instance ID 0, area 0.0.0.0
Enabled by interface configuration
State BDR, Network type BROADCAST, cost 40
Index 2, Transmit delay 1 sec, Router Priority 1
Designated Router ID: 1.1.1.10, address: fe80::200:ff:fe00:2f
Backup Designated Router ID: 1.1.1.1, address: fe80::200:ff:feff:ef22
1 Neighbors, flooding to 1, adjacent with 1
Timer intervals: Hello 10, Dead 40, Wait 40, Retransmit 5
Hello timer due in 00:00:00
Number of link LSAs: 2, checksum sum 0xbaac

Example 1-7 shows the SW9621-10 OSPFv2/v3 configurations and status.

Example 1-7 Router 1 Configuration and Verification (SW9621-10)

SW9621-10(config)#
feature ospf

SW9621-10(config)#
feature ospfv3

SW9621-10(config)#
router ospf 21

SW9621-10(config-router)#
router-id 1.1.1.10

SW9621-10(config-router)#
area 0.0.0.0 authentication message-digest

SW9621-10(config)#
router ospfv3 21

SW9621-10(config-router)#
router-id 1.1.1.10

SW9621-10(config-router)#
key chain mypass

SW9621-10(config-keychain)#
key 0

SW9621-10(config-keychain-key)#
key-string cisco


SW9621-10(config-keychain-key)#
interface loopback0

SW9621-10(config-if)#
ip address 1.1.1.10/32

SW9621-10(config-if)#
ip router ospf 21 area 0.0.0.0


SW9621-10(config-if)#
interface loopback10

SW9621-10(config-if)#
ip address 192.168.10.1/24

SW9621-10(config-if)#
ip router ospf 21 area 0.0.0.0


SW9621-10(config-if)#
interface Ethernet2/1

SW9621-10(config-if)#
no switchport

SW9621-10(config-if)#
ip address 10.10.10.2/30

SW9621-10(config-if)#
ip ospf authentication key-chain mypass

SW9621-10(config-if)#
ip ospf priority 10
!#
Note
higher priorities win the
DR election
SW9621-10(config-if)#
ipv6 address 2201:db1::2/48

SW9621-10(config-if)#
ip router ospf 21 area 0.0.0.0

SW9621-10(config-if)#
ipv6 router ospfv3 21 area 0.0.0.0

SW9621-10(config-if)#
no shutdown

SW9621-10#
show ip ospf neighbors

OSPF Process ID 21 VRF default
Total number of neighbors: 1
Neighbor ID Pri State Up Time Address Interface
1.1.1.1 1 FULL/DR 00:00:26 10.10.10.1 Eth2/1

SW9621-10#
show ipv6 ospfv3 neighbors

OSPFv3 Process ID 21 VRF default
Total number of neighbors: 1
Neighbor ID Pri State Up Time Interface ID Interface
1.1.1.1 1 FULL/DR 00:01:54 37 Eth2/1
Neighbor address fe80::200:ff:feff:ef22

Example 1-8 shows the SW9621-11 OSPFv2 configurations and status.

Example 1-8 Router 2 Configuration and Verification (SW9621-11)

SW9621-11(config)#
feature ospf

SW9621-11(config)#
router ospf 21

SW9621-11(config-router)#
router-id 1.1.1.11

SW9621-11(config-router)#
area 0.0.0.0 authentication message-digest

SW9621-11(config-router)#
key chain mypass

SW9621-11(config-keychain)#
key 0

SW9621-11(config-keychain-key)#
key-string cisco

SW9621-11(config-keychain-key)#
interface loopback0

SW9621-11(config-if)#
ip address 1.1.1.11/32

SW9621-11(config-if)#
ip router ospf 21 area 0.0.0.0

SW9621-11(config-if)#
interface loopback11

SW9621-11(config-if)#
ip address 192.168.11.1/24

SW9621-11(config-if)#
ip router ospf 21 area 0.0.0.0

SW9621-11(config-if)#
interface Ethernet2/1

SW9621-11(config-if)#
mtu 9216

SW9621-11(config-if)#
ip address 10.10.10.6/30

SW9621-11(config-if)#
ip ospf authentication key-chain mypass

SW9621-11(config-if)#
ip ospf network point-to-point

SW9621-11(config-if)#
ip router ospf 21 area 0.0.0.0

SW9621-11(config-if)#
no shutdown


SW9261-11# show ip ospf neighbors

OSPF Process ID 21 VRF default
Total number of neighbors: 1
Neighbor ID Pri State Up Time Interface ID Interface
1.1.1.1 1 FULL/ – 01:23:31 10.10.10.5 Eth2/1

SW9261-11#
show ipv6 osp?
<-== Note: ospfv3 feature not
enabled
^
% Invalid command at ‘^’ marker

Example 1-9 shows the SW9621-15 OSPF configuration and verification status.

Example 1-9 Router 3 Configuration and Verification (SW9621-15)

SW9621-15(config)#
feature ospf

SW9621-15(config)#
feature ospfv3


SW9621-15(config)#
router ospf 21

SW9621-15(config-router)#
router-id 1.1.1.15

SW9621-15(config-router)#
area 0.0.0.5 stub

SW9621-15(config)#
router ospfv3 23

SW9621-15(config-router)#
area 0.0.0.5 stub

SW9621-15(config-keychain-key)#
interface loopback0

SW9621-15(config-if)#
ip address 1.1.1.15/32

SW9621-15(config-if)#
ip router ospf 21 area 0.0.0.5

SW9621-15(config-if)#
interface loopback15

SW9621-15(config-if)#
ip address 192.168.15.1/24

SW9621-15(config-if)#
ip router ospf 21 area 0.0.0.5

SW9621-15(config-if)#
interface Ethernet2/1

SW9621-15(config-if)#
no switchport

SW9621-15(config-if)#
ip address 10.10.10.10/30

SW9621-15(config-if)#
ip ospf hello-interval 25

SW9621-15(config-if)#
ip router ospf 21 area 0.0.0.5

SW9621-15(config-if)#
ipv6 address 2201:db2::2/48

SW9621-15(config-if)#
ipv6 router ospfv3 23 area 0.0.0.5

SW9621-15(config-if)#
no shutdown


SW9621-15
# show ip ospf neighbors

OSPF Process ID 21 VRF default
Total number of neighbors: 1
Neighbor ID Pri State Up Time Interface ID Interface
1.1.1.1 1 FULL/DR 01:08:08 10.10.10.9 Eth2/1

SW9621-15
# show ipv6 ospfv3 neighbors

OSPFv3 Process ID 23 VRF default
Total number of neighbors: 1
Neighbor ID Pri State Up Time Interface ID Interface
1.1.1.1 1 FULL/BDR 00:07:55 39 Eth2/1
Neighbor address fe80::200:ff:feff:ddfe