Contents
EIGRPを使ったダイナミックルーティングの設定をする
各ルータには既にIPアドレスが割り当てられています。
◆R1のルーティングテーブル
R1#sh ip route ~略~ 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.1.0/24 is directly connected, FastEthernet0/0 L 192.168.1.1/32 is directly connected, FastEthernet0/0 R1#
◆R2のルーティングテーブル
R2#sh ip route ~略~ 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.1.0/24 is directly connected, FastEthernet0/0 L 192.168.1.2/32 is directly connected, FastEthernet0/0 192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.2.0/24 is directly connected, FastEthernet1/0 L 192.168.2.2/32 is directly connected, FastEthernet1/0 192.168.3.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.3.0/24 is directly connected, FastEthernet2/0 L 192.168.3.2/32 is directly connected, FastEthernet2/0 R2#
◆R3のルーティングテーブル
R3#sh ip route ~略~ 192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.2.0/24 is directly connected, FastEthernet1/0 L 192.168.2.1/32 is directly connected, FastEthernet1/0 R3#
◆R4のルーティングテーブル
R4#sh ip route ~略~ 192.168.3.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.3.0/24 is directly connected, FastEthernet2/0 L 192.168.3.1/32 is directly connected, FastEthernet2/0 R4#
◆R5のルーティングテーブル
R5#sh ip route ~略~ 192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.5.0/24 is directly connected, FastEthernet1/0 L 192.168.5.2/32 is directly connected, FastEthernet1/0 R5#
R1~R5のルーティングテーブルには直接接続の情報のみ存在しています。
◆R1にEIGRPを設定
R1#conf t R1(config)#router eigrp 1 R1(config-router)#network 192.168.1.0 0.0.0.255 R1(config-router)#end R1#
◆R2にEIGRPを設定
R2#conf t R2(config)#router eigrp 1 R2(config-router)#network 192.168.1.0 0.0.0.255 R2(config-router)#network 192.168.2.0 0.0.0.255 R2(config-router)#network 192.168.3.0 0.0.0.255 R2(config-router)#end R2#
◆R3にEIGRPを設定
R3#conf t R3(config)#router eigrp 1 R3(config-router)#network 192.168.2.0 0.0.0.255 R3(config-router)#network 192.168.5.0 0.0.0.255 R3(config-router)#end R3#
◆R4にEIGRPを設定
R4#conf t R4(config)#router eigrp 1 R4(config-router)#network 192.168.3.0 0.0.0.255 R4(config-router)#network 192.168.3.0 0.0.0.255 R4(config-router)#network 192.168.4.0 0.0.0.255 R4(config-router)#end R4#
◆R5にEIGRPを設定
R5#conf t R5(config)#router eigrp 1 R5(config-router)#network 192.168.4.0 0.0.0.255 R5(config-router)#network 192.168.5.0 0.0.0.255 R5(config-router)#end R5#
EIGRP設定後の各ルータのルーティングテーブルを見てみましょう。
◆R1のルーティングテーブルを確認
R1#sh ip route ~略~ 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.1.0/24 is directly connected, FastEthernet0/0 L 192.168.1.1/32 is directly connected, FastEthernet0/0 D 192.168.2.0/24 [90/30720] via 192.168.1.2, 00:27:36, FastEthernet0/0 D 192.168.3.0/24 [90/30720] via 192.168.1.2, 00:27:32, FastEthernet0/0 D 192.168.4.0/24 [90/33280] via 192.168.1.2, 00:24:32, FastEthernet0/0 D 192.168.5.0/24 [90/33280] via 192.168.1.2, 00:26:18, FastEthernet0/0 R1#
◆R2のルーティングテーブルを確認
R2#sh ip route ~略~ 192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.1.0/24 is directly connected, FastEthernet0/0 L 192.168.1.2/32 is directly connected, FastEthernet0/0 192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.2.0/24 is directly connected, FastEthernet1/0 L 192.168.2.2/32 is directly connected, FastEthernet1/0 192.168.3.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.3.0/24 is directly connected, FastEthernet2/0 L 192.168.3.2/32 is directly connected, FastEthernet2/0 D 192.168.4.0/24 [90/30720] via 192.168.3.1, 00:37:24, FastEthernet2/0 D 192.168.5.0/24 [90/30720] via 192.168.2.1, 00:39:10, FastEthernet1/0 R2#
◆R3のルーティングテーブルを確認
R3#sh ip route ~略~ D 192.168.1.0/24 [90/30720] via 192.168.2.2, 00:46:30, FastEthernet1/0 192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.2.0/24 is directly connected, FastEthernet1/0 L 192.168.2.1/32 is directly connected, FastEthernet1/0 D 192.168.3.0/24 [90/30720] via 192.168.2.2, 00:46:30, FastEthernet1/0 D 192.168.4.0/24 [90/33280] via 192.168.2.2, 00:44:40, FastEthernet1/0 192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.5.0/24 is directly connected, FastEthernet0/0 L 192.168.5.1/32 is directly connected, FastEthernet0/0 R3#
◆R4のルーティングテーブルを確認
R4#sh ip route ~略~ D 192.168.1.0/24 [90/30720] via 192.168.3.2, 00:45:21, FastEthernet2/0 D 192.168.2.0/24 [90/30720] via 192.168.3.2, 00:45:21, FastEthernet2/0 192.168.3.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.3.0/24 is directly connected, FastEthernet2/0 L 192.168.3.1/32 is directly connected, FastEthernet2/0 192.168.4.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.4.0/24 is directly connected, FastEthernet0/0 L 192.168.4.1/32 is directly connected, FastEthernet0/0 D 192.168.5.0/24 [90/33280] via 192.168.3.2, 00:45:21, FastEthernet2/0 R4#
◆R5のルーティングテーブルを確認
R5#sh ip route ~略~ D 192.168.1.0/24 [90/33280] via 192.168.5.1, 00:47:04, FastEthernet1/0 192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.2.0/24 is directly connected, FastEthernet2/0 L 192.168.2.2/32 is directly connected, FastEthernet2/0 D 192.168.3.0/24 [90/33280] via 192.168.5.1, 00:47:04, FastEthernet1/0 D 192.168.4.0/24 [90/35840] via 192.168.5.1, 00:46:05, FastEthernet1/0 192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.5.0/24 is directly connected, FastEthernet1/0 L 192.168.5.2/32 is directly connected, FastEthernet1/0 R5#
<<解説>>
・router eigrp [AS番号]
・network [NWアドレス] [ワイルドカードマスク]
まず(config)#router eigrp [AS番号]コマンドでEIGRPを動作させます。
このとき[AS番号]はネイバー関係となるルータ間では全て同じにする必要があります。
OSPFのプロセス番号はローカル上でのみ意味を持ちましたが、
EIGRPのAS番号はグローバルで意味を持ちます。
混同しないように注意しましょう。
network [NWアドレス] [ワイルドカードマスク]で
EIGRPを動かすインタフェースを指定します。
今回は簡単な設定方法の確認のみとして、
EIGRPの詳細については別途まとめていこうと思います。