EIGRPの設定を確認する方法
- カテゴリ:
- Cisco
EIGRPを設定するときの注意点です。下記のような設定がしてあり、F0/0 S1/2 Lo0というIPアドレスが設定してあるインターファイス全てでEIGRPをAS100で設定していきます。
R2#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 12.12.12.2 YES manual up up FastEthernet0/1 unassigned YES unset administratively down down Serial1/0 unassigned YES unset administratively down down Serial1/1 unassigned YES unset administratively down down Serial1/2 23.23.23.2 YES manual up up Serial1/3 unassigned YES unset administratively down down Loopback0 17.17.2.2 YES NVRAM up up |
EIGRPをAS100で指定し起動します。複数のASを指定してEIGRPを利用することも出来ますが、今回は1つだけにします。
R2(config)#router eigrp 100 |
次にルータIDを指定します。これは必須ではありませんが、意図しないIDになることを避けるために設定する方が望ましいでしょう。ここではLo0のIPアドレスを利用しています。
R2(config-router)#eigrp router-id 17.17.2.2 |
次にnetworkコマンドを利用しインターフェイスを指定します。ここではワイルドカードを0.0.0.0と指定しています。
R2(config-router)#network 12.12.12.2 0.0.0.0 R2(config-router)#network 23.23.23.2 0.0.0.0 R2(config-router)#network 17.17.2.2 0.0.0.0 |
networkコマンドで正しくインターフェイスが指定できているかを確認するにはshow ip eigrp interfacesを利用します。
R2#show ip eigrp interfaces IP-EIGRP interfaces for process 100 Xmit Queue Mean Pacing Time Multicast Pending Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes Fa0/0 1 0/0 13 0/1 50 0 Se1/2 1 0/0 10 0/15 50 0 Lo0 0 0/0 0 0/1 0 0 |
指定したインターフェイスの接続先でもEIGRPを有効にすると、すぐに下記のようなログが表示され、接続されたことが確認できるでしょう。EIGRPは非常に高速に接続が完了するのが特徴です。
Jan 26 06:04:50.043: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 12.12.12.1 (FastEthernet0/0) is up: new adjacency Jan 26 06:05:05.099: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 23.23.23.3 (Serial1/2) is up: new adjacency |
隣接ルータとの接続状況を確認するにはshow ip eigrp neighborsを利用します。
R2#show ip eigrp neighbors IP-EIGRP neighbors for process 100 H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num 1 23.23.23.3 Se1/2 13 00:14:23 10 200 0 3 0 12.12.12.1 Fa0/0 12 00:14:38 13 200 0 4 |
EIGRPの設定で注意すべき点は初期値では集約ルート(auto-summary)が有効である点です。確認にはshow ip protocolsが利用できます。
R2#show ip protocols | include Automatic network Automatic network summarization is in effect |
集約ルートが有効である現在のルーティングテーブルは下記のようになっています。インターフェイスでは/24と設定されているネットワークが自動的に/8と集約されていることが分かります。
R2#show ip route eigrp 17.0.0.0/8 is variably subnetted, 2 subnets, 2 masks D 17.0.0.0/8 is a summary, 01:27:11, Null0 23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks D 23.0.0.0/8 is a summary, 01:28:52, Null0 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks D 12.0.0.0/8 is a summary, 01:28:52, Null0 |
集約ルートを無効にするにはno auto-summaryを利用します。
R2(config)#router eigrp 100 R2(config-router)#no auto-summary R2#show ip protocols | include Automatic network Automatic network summarization is not in effect |
隣接するルータでもno auto-summaryを設定し、その後ルーティングテーブルをもう一度確認すると17.0.0.0のネットワークが/24で確認できていることが分かります。
R2#show ip route eigrp 17.0.0.0/24 is subnetted, 3 subnets D 17.17.1.0 [90/156160] via 12.12.12.1, 00:14:51, FastEthernet0/0 D 17.17.3.0 [90/2297856] via 23.23.23.3, 00:14:53, Serial1/2 |
EIGRPでのトポロジを表示するにはshow ip eigrp topologyを利用します。さらに表示されているネットワークを指定することで詳細を確認することが出来ます。またこのコマンドで設定したRouter IDを確認できることが分かります。
R2#show ip eigrp topology IP-EIGRP Topology Table for AS(100)/ID(17.17.2.2) Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, r - reply Status, s - sia Status P 17.17.1.0/24, 1 successors, FD is 156160 via 12.12.12.1 (156160/128256), FastEthernet0/0 P 17.17.2.0/24, 1 successors, FD is 128256 via Connected, Loopback0 P 17.17.3.0/24, 1 successors, FD is 2297856 via 23.23.23.3 (2297856/128256), Serial1/2 P 12.12.12.0/24, 1 successors, FD is 28160 via Connected, FastEthernet0/0 P 23.23.23.0/24, 1 successors, FD is 2169856 via Connected, Serial1/2 R2#show ip eigrp topology 17.17.1.0/24 IP-EIGRP (AS 100): Topology entry for 17.17.1.0/24 State is Passive, Query origin flag is 1, 1 Successor(s), FD is 156160 Routing Descriptor Blocks: 12.12.12.1 (FastEthernet0/0), from 12.12.12.1, Send flag is 0x0 Composite metric is (156160/128256), Route is Internal Vector metric: Minimum bandwidth is 100000 Kbit Total delay is 5100 microseconds Reliability is 255/255 Load is 1/255 Minimum MTU is 1500 Hop count is 1 |
EIGRPで全てのインターネットを有効にするにはnetwork 0.0.0.0を利用します。とりあえず複数のルータ間でpingが通るようにしたい場合などに便利です。
R2(config)#no router eigrp 100 R2(config)#router eigrp 100 R2(config-router)#no auto-summary R2(config-router)#network 0.0.0.0 |
コメント