底辺エンジニアの備忘録

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

JUNOSのOSPF_その3

構成は↓

f:id:klock_3rd:20180503154933p:plainただしR3,R5,R6,R7のみ利用し、↓の感じで構成してみる

1.R3,R5をエリア0
2.R7をエリア700

 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 interface ge-0/0/1.0
set protocols ospf area 0.0.2.88 interface ge-0/0/0.0

 R7 config

 admin@R7# show protocols ospf | display set
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

 
R7で確認

admin@R7# run show route protocol ospf


1.1.1.3/32   *[OSPF/10] 00:14:22, metric 3
       > to 172.16.8.1 via ge-0/0/1.0
2.1.1.5/32   *[OSPF/10] 00:14:31, metric 1
       > to 172.16.8.1 via ge-0/0/1.0
2.1.1.6/32   *[OSPF/10] 00:14:31, metric 2
       > to 172.16.8.1 via ge-0/0/1.0
172.16.4.0/24  *[OSPF/10] 00:14:22, metric 3
       > to 172.16.8.1 via ge-0/0/1.0
172.16.5.0/24  *[OSPF/10] 00:14:31, metric 2
       > to 172.16.8.1 via ge-0/0/1.0
172.16.7.0/24  *[OSPF/10] 00:14:31, metric 2
       > to 172.16.8.1 via ge-0/0/1.0
224.0.0.5/32   *[OSPF/10] 1d 21:13:39, metric 1
        MultiRecv

 

今度はR7をStubにしてみる。
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 stub default-metric 5
set protocols ospf area 0.0.2.188 interface ge-0/0/1.0
set protocols ospf area 0.0.2.88 interface ge-0/0/0.0

 R7 Config

 admin@R7# show protocols ospf | display set
set protocols ospf area 0.0.2.188 stub
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

 

R7確認

admin@R7# run show route protocol ospf 

0.0.0.0/0    *[OSPF/10] 00:00:46, metric 6
       > to 172.16.8.1 via ge-0/0/1.0
1.1.1.3/32   *[OSPF/10] 00:00:46, metric 3
       > to 172.16.8.1 via ge-0/0/1.0
2.1.1.5/32   *[OSPF/10] 00:00:46, metric 1
       > to 172.16.8.1 via ge-0/0/1.0
2.1.1.6/32   *[OSPF/10] 00:00:46, metric 2
       > to 172.16.8.1 via ge-0/0/1.0
172.16.4.0/24  *[OSPF/10] 00:00:46, metric 3
       > to 172.16.8.1 via ge-0/0/1.0
172.16.5.0/24  *[OSPF/10] 00:00:46, metric 2
       > to 172.16.8.1 via ge-0/0/1.0
172.16.7.0/24  *[OSPF/10] 00:00:46, metric 2
       > to 172.16.8.1 via ge-0/0/1.0
224.0.0.5/32   *[OSPF/10] 1d 21:17:25, metric 1
        MultiRecv

  

admin@R7# run show ospf database   

  OSPF database, Area 0.0.2.188
Type   ID     Adv Rtr  
Router 2.1.1.5    2.1.1.5   
Router *2.1.1.7    2.1.1.7   
Network *172.16.8.254  2.1.1.7   
Summary 0.0.0.0    2.1.1.5   
Summary 1.1.1.3    2.1.1.5   
Summary 2.1.1.5    2.1.1.5   
Summary 2.1.1.6    2.1.1.5   
Summary 172.16.4.0   2.1.1.5   
Summary 172.16.5.0   2.1.1.5   
Summary 172.16.7.0   2.1.1.5   

 

 

 

今度はTotally Stubにしてみる。 

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 stub default-metric 5
set protocols ospf area 0.0.2.188 stub no-summaries
set protocols ospf area 0.0.2.188 interface ge-0/0/1.0
set protocols ospf area 0.0.2.88 interface ge-0/0/0.0
 

 R7確認

admin@R7# run show route protocol ospf 

0.0.0.0/0    *[OSPF/10] 00:03:27, metric 6
       > to 172.16.8.1 via ge-0/0/1.0
224.0.0.5/32   *[OSPF/10] 1d 21:27:56, metric 1
        MultiRecv

  

admin@R7# run show ospf database

  OSPF database, Area 0.0.2.188
Type   ID     Adv Rtr   
Router 2.1.1.5    2.1.1.5   
Router *2.1.1.7    2.1.1.7  
Network *172.16.8.254  2.1.1.7 
Summary 0.0.0.0    2.1.1.5  

 

 

LSAのタイプについてはすっかり忘れてるので要復習