Re: 同じエリアのOSPFルータが同じLSDBを持つとは限らない?
ゲスト
投稿数: 0
この確認方法でいいのか正直分かりませんが、シュミレータ上で複数プロセスを起動して、
show ip ospf databaseで確認したところ、プロセスID毎の表示になりました(プロセス毎にLSDBを持つ)。
SWで3つのルータを接続した単純な構成です。
RT1 fa0/0 192.168.10.1(プロセス1、2起動)
RT2 fa0/0 192.168.10.2(プロセス1のみ起動)
RT3 fa0/0 192.168.10.3
5行目でプロセス1を起動して、73行目でプロセス2を起動しています。
81行目の確認で83行目、99行目でそれぞれ別々のDB出力になっています。
蛇足ですが、同じルータ上で複数プロセスを起動した場合、ルータIDは同じIDを使えないようです。
プロセスの数だけrouter-idかIFを上げていないとダメなようです。
さらにLSAヘッダの中にAdvertising Routerフィールドがあり、ここにはルータIDが入るので、
LSAも当然、プロセス毎にやりとりされていると想定できます。
networkコマンドの箇所がちょっと変な入力になってますが
影響はないと思いますので無視してください。
---------------------
[001] RT3#show ip protocols
[002]
[003] RT3#conf t
[004] Enter configuration commands, one per line. End with CNTL/Z.
[005] RT3(config)#router ospf 1
[006] RT3(config-router)#network 192.168.10.3 0.0.0.255 area 0
[007] RT3(config-router)#
[008] *Mar 1 00:31:45.655: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.10.1 on FastEthernet0/0 from LOADING to FULL, Loading Done
[009] *Mar 1 00:31:45.703: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.10.2 on FastEthernet0/0 from LOADING to FULL, Loading Done
[010] RT3(config-router)#do show ip ospf nei
[011]
[012] Neighbor ID Pri State Dead Time Address Interface
[013] 192.168.10.1 1 FULL/DR 00:00:38 192.168.10.1 FastEthernet0/0
[014] 192.168.10.2 1 FULL/BDR 00:00:34 192.168.10.2 FastEthernet0/0
[015] RT3(config-router)#
[016] RT3(config-router)#do show ip so ospf database router
[017]
[018] OSPF Router with ID (1.1.1.3) (Process ID 1)
[019]
[020] Router Link States (Area 0)
[021]
[022] LS age: 67
[023] Options: (No TOS-capability, DC)
[024] LS Type: Router Links
[025] Link State ID: 1.1.1.3
[026] Advertising Router: 1.1.1.3
[027] LS Seq Number: 80000002
[028] Checksum: 0xEB46
[029] Length: 36
[030] Number of Links: 1
[031]
[032] Link connected to: a Transit Network
[033] (Link ID) Designated Router address: 192.168.10.1
[034] (Link Data) Router Interface address: 192.168.10.3
[035] Number of TOS metrics: 0
[036] TOS 0 Metrics: 10
[037]
[038]
[039] LS age: 373
[040] Options: (No TOS-capability, DC)
[041] LS Type: Router Links
[042] Link State ID: 192.168.10.1
[043] Advertising Router: 192.168.10.1
[044] LS Seq Number: 80000002
[045] Checksum: 0xB99D
[046] Length: 36
[047] Number of Links: 1
[048]
[049] Link connected to: a Transit Network
[050] (Link ID) Designated Router address: 192.168.10.1
[051] (Link Data) Router Interface address: 192.168.10.1
[052] Number of TOS metrics: 0
[053] TOS 0 Metrics: 10
[054]
[055]
[056] LS age: 369
[057] Options: (No TOS-capability, DC)
[058] LS Type: Router Links
[059] Link State ID: 192.168.10.2
[060] Advertising Router: 192.168.10.2
[061] LS Seq Number: 80000002
[062] Checksum: 0xB79C
[063] Length: 36
[064] Number of Links: 1
[065]
[066] Link connected to: a Transit Network
[067] (Link ID) Designated Router address: 192.168.10.1
[068] (Link Data) Router Interface address: 192.168.10.2
[069] Number of TOS metrics: 0
[070] TOS 0 Metrics: 10
[071]
[072] RT3(config-router)#
[073] RT3(config-router)#router ospf 2
[074] RT3(config-router)#network 192.168.10.2 0 0.0.0.255 area 0
[075] RT3(config-router)#do show ip ospf nei
[076]
[077] Neighbor ID Pri State Dead Time Address Interface
[078] 192.168.10.1 1 FULL/DR 00:00:39 192.168.10.1 FastEthernet0/0
[079] 192.168.10.2 1 FULL/BDR 00:00:34 192.168.10.2 FastEthernet0/0
[080] RT3(config-router)#
[081] RT3(config-router)#do show ip ospf database router
[082]
[083] OSPF Router with ID (192.168.10.3) (Process ID 2)
[084]
[085] Router Link States (Area 0)
[086]
[087] LS age: 105
[088] Options: (No TOS-capability, DC)
[089] LS Type: Router Links
[090] Link State ID: 192.168.10.3
[091] Advertising Router: 192.168.10.3
[092] LS Seq Number: 80000001
[093] Checksum: 0xFA5B
[094] Length: 24
[095] Number of Links: 0
[096]
[097]
[098]
[099] OSPF Router with ID (1.1.1.3) (Process ID 1)
[100]
[101] Router Link States (Area 0)
[102]
[103] LS age: 295
[104] Options: (No TOS-capability, DC)
[105] LS Type: Router Links
[106] Link State ID: 1.1.1.3
[107] Advertising Router: 1.1.1.3
[108] LS Seq Number: 80000002
[109] Checksum: 0xEB46
[110] Length: 36
[111] Number of Links: 1
[112]
[113] Link connected to: a Transit Network
[114] (Link ID) Designated Router address: 192.168.10.1
[115] (Link Data) Router Interface address: 192.168.10.3
[116] Number of TOS metrics: 0
[117] TOS 0 Metrics: 10
[118]
[119]
[120] LS age: 600
[121] Options: (No TOS-capability, DC)
[122] LS Type: Router Links
[123] Link State ID: 192.168.10.1
[124] Advertising Router: 192.168.10.1
[125] LS Seq Number: 80000002
[126] Checksum: 0xB99D
[127] Length: 36
[128] Number of Links: 1
[129]
[130] Link connected to: a Transit Network
[131] (Link ID) Designated Router address: 192.168.10.1
[132] (Link Data) Router Interface address: 192.168.10.1
[133] Number of TOS metrics: 0
[134] TOS 0 Metrics: 10
[135]
[136]
[137] LS age: 596
[138] Options: (No TOS-capability, DC)
[139] LS Type: Router Links
[140] Link State ID: 192.168.10.2
[141] Advertising Router: 192.168.10.2
[142] LS Seq Number: 80000002
[143] Checksum: 0xB79C
[144] Length: 36
[145] Number of Links: 1
[146]
[147] Link connected to: a Transit Network
[148] (Link ID) Designated Router address: 192.168.10.1
[149] (Link Data) Router Interface address: 192.168.10.2
[150] Number of TOS metrics: 0
[151] TOS 0 Metrics: 10
[152]
[153]
[154] RT3(config-router)#end
[155] RT3#
show ip ospf databaseで確認したところ、プロセスID毎の表示になりました(プロセス毎にLSDBを持つ)。
SWで3つのルータを接続した単純な構成です。
RT1 fa0/0 192.168.10.1(プロセス1、2起動)
RT2 fa0/0 192.168.10.2(プロセス1のみ起動)
RT3 fa0/0 192.168.10.3
5行目でプロセス1を起動して、73行目でプロセス2を起動しています。
81行目の確認で83行目、99行目でそれぞれ別々のDB出力になっています。
蛇足ですが、同じルータ上で複数プロセスを起動した場合、ルータIDは同じIDを使えないようです。
プロセスの数だけrouter-idかIFを上げていないとダメなようです。
さらにLSAヘッダの中にAdvertising Routerフィールドがあり、ここにはルータIDが入るので、
LSAも当然、プロセス毎にやりとりされていると想定できます。
networkコマンドの箇所がちょっと変な入力になってますが
影響はないと思いますので無視してください。
---------------------
[001] RT3#show ip protocols
[002]
[003] RT3#conf t
[004] Enter configuration commands, one per line. End with CNTL/Z.
[005] RT3(config)#router ospf 1
[006] RT3(config-router)#network 192.168.10.3 0.0.0.255 area 0
[007] RT3(config-router)#
[008] *Mar 1 00:31:45.655: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.10.1 on FastEthernet0/0 from LOADING to FULL, Loading Done
[009] *Mar 1 00:31:45.703: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.10.2 on FastEthernet0/0 from LOADING to FULL, Loading Done
[010] RT3(config-router)#do show ip ospf nei
[011]
[012] Neighbor ID Pri State Dead Time Address Interface
[013] 192.168.10.1 1 FULL/DR 00:00:38 192.168.10.1 FastEthernet0/0
[014] 192.168.10.2 1 FULL/BDR 00:00:34 192.168.10.2 FastEthernet0/0
[015] RT3(config-router)#
[016] RT3(config-router)#do show ip so ospf database router
[017]
[018] OSPF Router with ID (1.1.1.3) (Process ID 1)
[019]
[020] Router Link States (Area 0)
[021]
[022] LS age: 67
[023] Options: (No TOS-capability, DC)
[024] LS Type: Router Links
[025] Link State ID: 1.1.1.3
[026] Advertising Router: 1.1.1.3
[027] LS Seq Number: 80000002
[028] Checksum: 0xEB46
[029] Length: 36
[030] Number of Links: 1
[031]
[032] Link connected to: a Transit Network
[033] (Link ID) Designated Router address: 192.168.10.1
[034] (Link Data) Router Interface address: 192.168.10.3
[035] Number of TOS metrics: 0
[036] TOS 0 Metrics: 10
[037]
[038]
[039] LS age: 373
[040] Options: (No TOS-capability, DC)
[041] LS Type: Router Links
[042] Link State ID: 192.168.10.1
[043] Advertising Router: 192.168.10.1
[044] LS Seq Number: 80000002
[045] Checksum: 0xB99D
[046] Length: 36
[047] Number of Links: 1
[048]
[049] Link connected to: a Transit Network
[050] (Link ID) Designated Router address: 192.168.10.1
[051] (Link Data) Router Interface address: 192.168.10.1
[052] Number of TOS metrics: 0
[053] TOS 0 Metrics: 10
[054]
[055]
[056] LS age: 369
[057] Options: (No TOS-capability, DC)
[058] LS Type: Router Links
[059] Link State ID: 192.168.10.2
[060] Advertising Router: 192.168.10.2
[061] LS Seq Number: 80000002
[062] Checksum: 0xB79C
[063] Length: 36
[064] Number of Links: 1
[065]
[066] Link connected to: a Transit Network
[067] (Link ID) Designated Router address: 192.168.10.1
[068] (Link Data) Router Interface address: 192.168.10.2
[069] Number of TOS metrics: 0
[070] TOS 0 Metrics: 10
[071]
[072] RT3(config-router)#
[073] RT3(config-router)#router ospf 2
[074] RT3(config-router)#network 192.168.10.2 0 0.0.0.255 area 0
[075] RT3(config-router)#do show ip ospf nei
[076]
[077] Neighbor ID Pri State Dead Time Address Interface
[078] 192.168.10.1 1 FULL/DR 00:00:39 192.168.10.1 FastEthernet0/0
[079] 192.168.10.2 1 FULL/BDR 00:00:34 192.168.10.2 FastEthernet0/0
[080] RT3(config-router)#
[081] RT3(config-router)#do show ip ospf database router
[082]
[083] OSPF Router with ID (192.168.10.3) (Process ID 2)
[084]
[085] Router Link States (Area 0)
[086]
[087] LS age: 105
[088] Options: (No TOS-capability, DC)
[089] LS Type: Router Links
[090] Link State ID: 192.168.10.3
[091] Advertising Router: 192.168.10.3
[092] LS Seq Number: 80000001
[093] Checksum: 0xFA5B
[094] Length: 24
[095] Number of Links: 0
[096]
[097]
[098]
[099] OSPF Router with ID (1.1.1.3) (Process ID 1)
[100]
[101] Router Link States (Area 0)
[102]
[103] LS age: 295
[104] Options: (No TOS-capability, DC)
[105] LS Type: Router Links
[106] Link State ID: 1.1.1.3
[107] Advertising Router: 1.1.1.3
[108] LS Seq Number: 80000002
[109] Checksum: 0xEB46
[110] Length: 36
[111] Number of Links: 1
[112]
[113] Link connected to: a Transit Network
[114] (Link ID) Designated Router address: 192.168.10.1
[115] (Link Data) Router Interface address: 192.168.10.3
[116] Number of TOS metrics: 0
[117] TOS 0 Metrics: 10
[118]
[119]
[120] LS age: 600
[121] Options: (No TOS-capability, DC)
[122] LS Type: Router Links
[123] Link State ID: 192.168.10.1
[124] Advertising Router: 192.168.10.1
[125] LS Seq Number: 80000002
[126] Checksum: 0xB99D
[127] Length: 36
[128] Number of Links: 1
[129]
[130] Link connected to: a Transit Network
[131] (Link ID) Designated Router address: 192.168.10.1
[132] (Link Data) Router Interface address: 192.168.10.1
[133] Number of TOS metrics: 0
[134] TOS 0 Metrics: 10
[135]
[136]
[137] LS age: 596
[138] Options: (No TOS-capability, DC)
[139] LS Type: Router Links
[140] Link State ID: 192.168.10.2
[141] Advertising Router: 192.168.10.2
[142] LS Seq Number: 80000002
[143] Checksum: 0xB79C
[144] Length: 36
[145] Number of Links: 1
[146]
[147] Link connected to: a Transit Network
[148] (Link ID) Designated Router address: 192.168.10.1
[149] (Link Data) Router Interface address: 192.168.10.2
[150] Number of TOS metrics: 0
[151] TOS 0 Metrics: 10
[152]
[153]
[154] RT3(config-router)#end
[155] RT3#
投稿ツリー
-
同じエリアのOSPFルータが同じLSDBを持つとは限らない?
(takamoto463, 2014-3-10 17:24)
-
Re: 同じエリアのOSPFルータが同じLSDBを持つとは限らない?
(ゲスト, 2014-3-10 20:53)
- Re: 同じエリアのOSPFルータが同じLSDBを持つとは限らない? (takamoto463, 2014-3-12 12:20)
- Re: 同じエリアのOSPFルータが同じLSDBを持つとは限らない? (ゲスト, 2014-3-12 20:26)
- Re: 同じエリアのOSPFルータが同じLSDBを持つとは限らない? (takamoto463, 2014-3-12 23:27)
-
Re: 同じエリアのOSPFルータが同じLSDBを持つとは限らない?
(ゲスト, 2014-3-10 20:53)