忍者ブログ
Kossyの生活・仕事・ゲームのブログです^p^ 音ゲーは楽しい
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。


OSPFネットワーク構築その6 Virtual Link (1/2)」の続き。

今度はバックボーンエリア0がトランジットエリア1を挟んで分かれているネットワークについて、
どのようなルーティングテーブルになるのかを検証してみます。

・使用機器
Cisco1812×4台

ネットワーク構成図は以下の通り。

ospf-7-virtual_link-2OSPF_Virtual_Link-2構成図.png

拍手[0回]


最初はバーチャルリンクを設定せずにルータ構築。
前回の設定をちょっと変更。
(R2とR3のバーチャルリンクの設定外しと、エリア変更。)

<ルータR1の設定変更>
R1(config)# router ospf 100
R1(config-router)# network 172.16.1.0 0.0.0.255 area 0
R1(config-router)# network 172.16.2.0 0.0.0.255 area 2

<ルータR2の設定変更>

R2(config)# router ospf 100
R2(config-router)# no area 1 virtual-link 10.3.3.3

<ルータR3の設定変更>
R3(config)# router ospf 100
R3(config-router)# network 10.1.1.0 0.0.0.255 area 0
R3(config-router)# no area 1 virtual-link 10.2.2.2

<ルータR4の設定変更>
R4(config)# router ospf 100
R4(config-router)# network 10.1.1.0 0.0.0.255 area 0
R4(config-router)# network 10.1.2.0 0.0.0.255 area 3


バーチャルリンク設定前のルーティングテーブルを確認する。

<<< ルータR1 >>>

R1# sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, 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, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     172.16.0.0/24 is subnetted, 2 subnets
C       172.16.1.0 is directly connected, FastEthernet0
C       172.16.2.0 is directly connected, Loopback0
O IA 192.168.1.0/24 [110/2] via 172.16.1.2, 00:00:48, FastEthernet0
O IA 192.168.2.0/24 [110/2] via 172.16.1.2, 00:00:48, FastEthernet0
O IA 192.168.3.0/24 [110/3] via 172.16.1.2, 00:00:48, FastEthernet0


<<< ルータR2 >>>
R2# sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, 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, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     172.16.0.0/24 is subnetted, 2 subnets
C       172.16.1.0 is directly connected, FastEthernet1
O IA    172.16.2.0 [110/2] via 172.16.1.1, 00:00:45, FastEthernet1
C    192.168.1.0/24 is directly connected, FastEthernet0
C    192.168.2.0/24 is directly connected, Loopback0
O    192.168.3.0/24 [110/2] via 192.168.1.3, 00:00:45, FastEthernet0


<<< ルータR3 >>>
R3# sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, 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, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/24 is subnetted, 2 subnets
O IA    10.1.2.0 [110/2] via 10.1.1.4, 00:01:19, FastEthernet1
C       10.1.1.0 is directly connected, FastEthernet1
C    192.168.1.0/24 is directly connected, FastEthernet0
O    192.168.2.0/24 [110/2] via 192.168.1.2, 00:01:19, FastEthernet0
C    192.168.3.0/24 is directly connected, Loopback0


<<< ルータR4 >>>
R4# sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, 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, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/24 is subnetted, 2 subnets
C       10.1.2.0 is directly connected, Loopback0
C       10.1.1.0 is directly connected, FastEthernet0
O IA 192.168.1.0/24 [110/2] via 10.1.1.3, 00:01:57, FastEthernet0
O IA 192.168.2.0/24 [110/3] via 10.1.1.3, 00:01:57, FastEthernet0
O IA 192.168.3.0/24 [110/2] via 10.1.1.3, 00:01:57, FastEthernet0



エリア1を境にして、左右でルート情報が異なっている。
バックボーンエリア0に隣接しているエリアのルートは載っているが、
当然のごとくエリア1の先にあるルートはお互いに載っていない。



バックボーンエリア同士を繋げるために、バーチャルリンクを設定する。

R2(config)# router ospf 100
R2(config-router)# area 1 virtual-link 10.3.3.3

R3(config)# router ospf 100
R3(config-router)# area 1 virtual-link 10.2.2.2


各ルータでshow ip routeを確認。

<<< R1 >>>
R1# sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, 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, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     172.16.0.0/24 is subnetted, 2 subnets
C       172.16.1.0 is directly connected, FastEthernet0
C       172.16.2.0 is directly connected, Loopback0
     10.0.0.0/24 is subnetted, 2 subnets
O IA    10.1.2.0 [110/4] via 172.16.1.2, 00:00:22, FastEthernet0
O       10.1.1.0 [110/3] via 172.16.1.2, 00:00:22, FastEthernet0

O IA 192.168.1.0/24 [110/2] via 172.16.1.2, 00:00:22, FastEthernet0
O IA 192.168.2.0/24 [110/2] via 172.16.1.2, 00:00:22, FastEthernet0
O IA 192.168.3.0/24 [110/3] via 172.16.1.2, 00:00:23, FastEthernet0


<<< R2 >>>
R2# sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, 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, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     172.16.0.0/24 is subnetted, 2 subnets
C       172.16.1.0 is directly connected, FastEthernet1
O IA    172.16.2.0 [110/2] via 172.16.1.1, 00:00:39, FastEthernet1
     10.0.0.0/24 is subnetted, 2 subnets
O IA    10.1.2.0 [110/3] via 192.168.1.3, 00:00:39, FastEthernet0
O       10.1.1.0 [110/2] via 192.168.1.3, 00:00:39, FastEthernet0

C    192.168.1.0/24 is directly connected, FastEthernet0
C    192.168.2.0/24 is directly connected, Loopback0
O    192.168.3.0/24 [110/2] via 192.168.1.3, 00:00:39, FastEthernet0


<<< R3 >>>
R3# sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, 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, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     172.16.0.0/24 is subnetted, 2 subnets
O       172.16.1.0 [110/2] via 192.168.1.2, 00:00:48, FastEthernet0
O IA    172.16.2.0 [110/3] via 192.168.1.2, 00:00:48, FastEthernet0

     10.0.0.0/24 is subnetted, 2 subnets
O IA    10.1.2.0 [110/2] via 10.1.1.4, 00:00:48, FastEthernet1
C       10.1.1.0 is directly connected, FastEthernet1
C    192.168.1.0/24 is directly connected, FastEthernet0
O    192.168.2.0/24 [110/2] via 192.168.1.2, 00:00:58, FastEthernet0
C    192.168.3.0/24 is directly connected, Loopback0


<<< R4 >>>

R4# sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, 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, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     172.16.0.0/24 is subnetted, 2 subnets
O       172.16.1.0 [110/3] via 10.1.1.3, 00:01:18, FastEthernet0
O IA    172.16.2.0 [110/4] via 10.1.1.3, 00:01:18, FastEthernet0

     10.0.0.0/24 is subnetted, 2 subnets
C       10.1.2.0 is directly connected, Loopback0
C       10.1.1.0 is directly connected, FastEthernet0
O IA 192.168.1.0/24 [110/2] via 10.1.1.3, 00:01:18, FastEthernet0
O IA 192.168.2.0/24 [110/3] via 10.1.1.3, 00:01:18, FastEthernet0
O IA 192.168.3.0/24 [110/2] via 10.1.1.3, 00:01:19, FastEthernet0


上記出力結果から分かるように、左右にあるバックボーンエリアが繋がり、、
エリア1の先にあるルートがルーティングテーブルに載っていることが確認できる。

たとえバックボーンエリアが分断されていたとしても、バーチャルリンクの設定を行うことでルーティング可能ととなる。


PR

Comment
Name
Title
Mail
URL
Comment
Pass   Vodafone絵文字 i-mode絵文字 Ezweb絵文字
この記事へのトラックバック
この記事にトラックバックする:
[167] [166] [165] [164] [163] [162] [161] [160] [159] [158] [157
«  Back :   HOME   : Next  »
カウンター
カレンダー
03 2024/04 05
S M T W T F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
プロフィール

[Author] Kossy
[Steam_ID] Kossy

定時帰りそこそこ復活<(╹ヮ╹)>

最新コメント
[07/17 Kossy]
[07/17 カサハンラ]
[09/04 Kossy]
[09/03 おちんちん]
[08/04 testes]
[08/03 Kossy]
[08/02 testes]
マシンスペック

【メインPC】
[OS] Windows11 Pro
[CPU] Core i5-10400 @2.9GHz
[MEM] 32GB
[VGA] NVIDIA GTX1660 SUPER
[マウス] Logicool M550L
[PAD] SteelSeries QcK 63004
[キーボード] Logicool K295

【Webサーバー機】
[Model] MINISFORUM N40
[OS] Rocky Linux
[CPU] Celeron N4020 @2.8GHz
[MEM] 4GB
[SSD] 64GB
ブログ内検索
アーカイブ
バーコード
最新トラックバック
忍者ブログ [PR]