底辺エンジニアの備忘録

30過ぎて、記憶力低下が著しい為、メモ代わりにしていく予定。 自身のスキルが低いので、内容の正確さは保障できません・・・OTL

JUNOSのOSPF_その4

stubとNSSA確認

f:id:klock_3rd:20180505131749p:plain

構成は↑

・R4-R6はeBGPで(1.1.1.4)の経路を受理
・R3-R5がエリア0、R7-R8-R6がエリア700


この状態で、StubとNSSAを確認

 まず、標準エリアの場合のR6のOSPFと再配布関連

set policy-options policy-statement to_ospf term 1 from protocol bgp
set policy-options policy-statement to_ospf term 1 then external type 1
set policy-options policy-statement to_ospf term 1 then accept
set protocols ospf export to_ospf
set protocols ospf area 0.0.2.188 interface ge-0/0/1.0
set protocols ospf area 0.0.2.188 interface lo0.0 passive

 

この状態で、R3から1.1.1.4の経路確認

 R3#show ip route ospf
Gateway of last resort is not set

O E1   1.1.1.4 [110/4] via 172.16.5.254, 00:02:28, GigabitEthernet4
   2.0.0.0/32 is subnetted, 4 subnets

 

エリア700をStubにし、R3で再度確認

R3#show ip route 1.1.1.4
% Subnet not in table

 TotallyStubも同様

 

エリア700をNSSAにし、R3で再度確認

R5 config

 admin@R5# show protocols ospf | display set
set protocols ospf area 0.0.0.0 interface lo0.0 passive
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0
set protocols ospf area 0.0.2.188 nssa default-lsa default-metric 5
set protocols ospf area 0.0.2.188 nssa default-lsa metric-type 1
set protocols ospf area 0.0.2.188 nssa default-lsa type-7
set protocols ospf area 0.0.2.188 interface ge-0/0/1.0

 R6 config

admin@R6# show protocols ospf | display set
set protocols ospf export to_ospf
set protocols ospf area 0.0.2.188 nssa
set protocols ospf area 0.0.2.188 interface ge-0/0/1.0
set protocols ospf area 0.0.2.188 interface lo0.0 passive 

 

R3で確認

R3#show ip route
Gateway of last resort is not set

O E1   1.1.1.4 [110/4] via 172.16.5.254, 00:02:21, GigabitEthernet4

 

 

OSPFは一旦終了