我们上一个实验配置了NSSA的完全末节,配置之后的默认路由将自动进行通告,它是以type-3 LSA通告的
下面我们配置 NSSA ABR路由器使用Type-7 LSA通告默认路由

【实验拓扑】

 

配置 NSSA ABR路由器使用Type-7 LSA通告默认路由_第1张图片

【实验基本配置】
1、按照上图配置接口地址及OSPF
2、配置AREA1为NSSA区域
3、R6上配置静态路由160.1.60.0/24 到 Null0,重定向到OSPF中
4、R1上配置更高的路由器ID150.1.100.100,使得LSA7转换LSA5在R1上进行
【实验要求】
配置 ABR路由器R1与R4使用Type-7 LSA通告默认路由
并配置默认路由的cost为100

 
【实验配置】

R1&R4
 

router ospf 1
area 1 nssa default-information-originate metric 100

 
【实验验证】
配置之前-------------------------------------------------------->>
R6#show ip route ospf
155.1.0.0/24 is subnetted, 2 subnets
O IA 155.1.0.0 [110/65] via 155.1.146.1, 00:46:49, GigabitEthernet0/1
150.1.0.0/16 is variably subnetted, 4 subnets, 2 masks
O IA 150.1.5.5/32 [110/66] via 155.1.146.1, 00:00:15, GigabitEthernet0/1
O 150.1.4.4/32 [110/2] via 155.1.146.4, 00:46:49, GigabitEthernet0/1
O 150.1.1.1/32 [110/2] via 155.1.146.1, 00:46:49, GigabitEthernet0/1
配置之后-------------------------------------------------------->>
R6#show ip route ospf
155.1.0.0/24 is subnetted, 2 subnets
O IA 155.1.0.0 [110/65] via 155.1.146.1, 00:00:33, GigabitEthernet0/1
150.1.0.0/16 is variably subnetted, 4 subnets, 2 masks
O IA 150.1.5.5/32 [110/66] via 155.1.146.1, 00:00:33, GigabitEthernet0/1
O 150.1.4.4/32 [110/2] via 155.1.146.4, 00:03:01, GigabitEthernet0/1
O 150.1.1.1/32 [110/2] via 155.1.146.1, 00:03:01, GigabitEthernet0/1
O*N2 0.0.0.0/0 [110/100] via 155.1.146.4, 00:00:03, GigabitEthernet0/1
[110/100] via 155.1.146.1, 00:00:03, GigabitEthernet0/1
使用N2标志,为类型7的LSA。

 
【实验基本配置】
R1:
interface Fa 0/0
ip address 155.1.146.1 255.255.255.0
no shut
!
interface Serial 0/0
encapsulation frame-relay
no frame-relay inverse-arp
ip address 155.1.0.1 255.255.255.0
frame-relay map ip 155.1.0.5 105
frame-relay map ip 155.1.0.4 105
ip ospf priority 0
no shutdown
!
interface Loopback0
ip address 150.1.1.1 255.255.255.0
!
router ospf 1
router-id 150.1.100.100
network 155.1.146.1 0.0.0.0 area 1
network 150.1.1.1 0.0.0.0 area 1
network 155.1.0.1 0.0.0.0 area 0
area 1 nssa

 
R4:
interface Eth 0/1
ip address 155.1.146.4 255.255.255.0
!
interface Serial 0/0
encapsulation frame-relay
no frame-relay inverse-arp
ip address 155.1.0.4 255.255.255.0
frame-relay map ip 155.1.0.5 405
frame-relay map ip 155.1.0.1 405
ip ospf priority 0
!
interface Loopback0
ip address 150.1.4.4 255.255.255.0
!
router ospf 1
router-id 150.1.4.4
network 155.1.146.4 0.0.0.0 area 1
network 150.1.4.4 0.0.0.0 area 1
network 155.1.0.4 0.0.0.0 area 0
area 1 nssa

 
R5:
interface Serial 0/0
encapsulation frame-relay
no frame-relay inverse-arp
ip address 155.1.0.5 255.255.255.0
frame-relay map ip 155.1.0.4 504
frame-relay map ip 155.1.0.1 501
!
interface Loopback0
ip address 150.1.5.5 255.255.255.0
router ospf 1
router-id 150.1.5.5
network 150.1.5.5 0.0.0.0 area 0
network 155.1.0.5 0.0.0.0 area 0
neighbor 155.1.0.4
neighbor 155.1.0.1
area 1 nssa
R6:
i
 
 
 
浩龙推荐阅读:
ospf 配置NSSA为完全末节 2012.04.08 ospf 配置NSSA为完全末节