OcNOS-SP : Layer 3 Guide : Layer 3 Unicast Configuration Guide : OSPFv3 : Originate Type-7 LSAs and Translate to Type-5
Originate Type-7 LSAs and Translate to Type-5
Figure 12-97 shows the configuration to originate Type-7 LSAs and translate them into Type-5 LSAs. R3 is an NSSA-ASBR that originates Type-7 LSAs into the NSSA which are converted to Type-5 LSAs by R2 which is an NSSA-ABR. R1 is a backbone router.
Topology
Figure 12-97: Originate Type-7 LSAs and Translate to Type-5 under Address Family IPv4
Configuration
R1
 
#configure terminal
Enter configure mode.
(config)#router ipv6 ospf 100-ABC
Configure the routing process and specify the tag (100-ABC) which uniquely identifies the routing process
(config-router)#router-id 10.12.49.123
Configure the router ID to use on this tag
(config-router)#exit
Exit OSPF router mode
(config)#interface eth1
Enter interface mode
(config-if)#ipv6 router ospf area 0 tag 100- ABC instance-id 31
Configure the interface in an area assigned with the area ID (0) which uniquely identifies the routing process and the instance identifier which is 0-31 for the IPv6 address family
(config-router)#commit
Commit the candidate configuration to the running configuration.
(config-if)#exit
Exit interface mode
R2
 
#configure terminal
Enter configure mode.
(config)#router ipv6 ospf 100-ABC
Configure the routing process and specify the tag (100-ABC) which uniquely identifies the routing process.
(config-router)#ip route 15.15.15.0/24 null
Configure the static route with the nexthop address set to null
(config-router)#router-id 10.12.49.125
Configure the router ID to use for this process
(config-router)#area 1 nssa
Configure the area 1 as NSSA.
(config-router)#exit
Exit OSPF router mode
(config)#interface eth1
Enter interface mode
(config-if)#ipv6 router ospf area 0 tag 100-ABC instance-id 31
Configure the interface in an area assigned with the area ID (1) which uniquely identifies the routing process and the instance identifier which is 64-95 for the IPv4 address family.
(config-if)#exit
Exit interface mode
(config)#interface eth2
Enter interface mode
(config-if)#ipv6 router ospf area 1 tag 100-ABC instance-id 30
Configure the interface in an area assigned with the area ID (1) which uniquely identifies the routing process and the instance identifier which is 0-30 for the IPv6 address family.
(config-router)#commit
Commit the candidate configuration to the running configuration.
(config-if)#exit
Exit interface mode
R3
 
#configure terminal
Enter configure mode.
(config)#router ipv6 ospf 100-ABC
Configure the routing process and specify the tag (100-ABC) which uniquely identifies the routing process.
(config-router)#router-id 10.12.49.125
Configure the router ID to use for this process
(config-router)#area 1 nssa
Configure the area 1 as NSSA.
(config-router)#exit
Exit OSPF router mode
(config)#interface eth1
Enter interface mode
(config-if)#ipv6 router ospf area 1 tag 100-ABC instance-id 30
Configure the interface in an area assigned with the area ID (1) which uniquely identifies the routing process and the instance identifier which is 0-31 for the IPv6 address family.
(config-router)#commit
Commit the candidate configuration to the running configuration.
Validation 1
Verify that adjacency has been established with the configured instance identifier.
R2#sh ipv6 ospf neighbor
OSPFv3 Process (1)
Neighbor ID Pri State Dead Time Interface Instance ID
10.12.49.123 1 Full/DR 00:00:31 eth1 31
10.12.49.125 1 Full/Backup 00:00:38 eth2 30
 
Validation 2
Verify that R3 has generated a Type-7 LSA and that the ABR R2 has External LSA Type 5 in its Database.
R3
R3#show ipv6 ospf database nssa-external
 
OSPFv3 Router with ID (10.12.49.125) (Process 100-ABC)
 
NSSA-external-LSA (Area 0.0.0.1)
 
LS age: 139
LS Type: NSSA-external-LSA
Link State ID: 0.0.0.1
Advertising Router: 10.12.49.125
LS Seq Number: 0x80000001
Checksum: 0xAB34
Length: 48
Metric Type: 2 (Larger than any link state path)
Metric: 20
Prefix: 15.15.15.0/24
Prefix Options: 8 (P|-|-|-)
Forwarding Address: 22.1.1.2
External Route Tag: 0
 
 
R3#show ipv6 ospf database external
 
OSPFv3 Router with ID (10.12.49.125) (Process 100-ABC)
 
R3#
 
 
 
Validation 3
R2
R2#show ipv6 ospf database nssa-external
 
OSPFv3 Router with ID (10.12.49.124) (Process 100-ABC)
 
NSSA-external-LSA (Area 0.0.0.1)
 
LS age: 105
LS Type: NSSA-external-LSA
Link State ID: 0.0.0.1
Advertising Router: 10.12.49.125
LS Seq Number: 0x80000001
Checksum: 0xAB34
Length: 48
Metric Type: 2 (Larger than any link state path)
Metric: 20
Prefix: 15.15.15.0/24
Prefix Options: 8 (P|-|-|-)
Forwarding Address: 22.1.1.2
External Route Tag: 0
 
R2#
 
R2#show ipv6 ospf database external
 
OSPFv3 Router with ID (10.12.49.124) (Process 100-ABC)
 
AS-external-LSA
 
LS age: 706
LS Type: AS-External-LSA
Link State ID: 0.0.0.1
Advertising Router: 10.12.49.124
LS Seq Number: 0x80000001
Checksum: 0xAB1F
Length: 48
Metric Type: 2 (Larger than any link state path)
Metric: 20
Prefix: 15.15.15.0/24
Prefix Options: 0 (-|-|-|-)
Forwarding Address: 22.1.1.2
 
 
R2#
 
R2#show ip route
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
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, L1 - IS-IS level-1, L2 - IS-IS level-2,
ia - IS-IS inter area, E - EVPN,
v - vrf leaked
* - candidate default
 
IP Route Table for VRF "default"
C 10.0.0.0/8 is directly connected, eth0, 15:43:05
C 11.1.1.0/24 is directly connected, eth1, 14:54:49
O N2 15.15.15.0/24 [110/20] via 22.1.1.2, eth2, 12:09:25
C 22.1.1.0/24 is directly connected, eth2, 12:22:45
C 127.0.0.0/8 is directly connected, lo, 15:43:05
 
Gateway of last resort is not set
R2#
Validation 3
Verify that FIB of backbone router has External Route as “O E2”.
R1#
Verify that FIB of backbone router R1 has External Route as "O E2".
R1#show ip route
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
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, L1 - IS-IS level-1, L2 - IS-IS level-2,
ia - IS-IS inter area, E - EVPN,
v - vrf leaked
* - candidate default
 
IP Route Table for VRF "default"
C 10.0.0.0/8 is directly connected, eth0, 03:34:25
C 11.1.1.0/24 is directly connected, eth1, 02:46:18
O E2 15.15.15.0/24 [110/20] via 11.1.1.2, eth1, 00:00:36
O IA 22.1.1.0/24 [110/2] via 11.1.1.2, eth1, 00:05:01
C 127.0.0.0/8 is directly connected, lo, 03:34:25
 
Gateway of last resort is not set
Last modified date: 10/16/2023