◾️EIGRP 自動集約設定(auto summary / no auto summary )
【課題】・EIGRPのおける集約設定(auto summary / no auto summary )の挙動を理解する。
【補足】
EIGRPで集約する方法は大きく2パターンある。
①自動集約による集約経路の広告
・ルータコンフィグレーションモードにて設定
・クラスフルネットワークの境界ルータにて設定する必要があり。
・クラスフルでの集約のみサポート
・EIGRP内部経路のみ集約可能
②手動集約による集約経路の広告
・IFモードにて設定
・集約プレフィックスを細かく設定可能
・EIGRP内部経路/外部経路共に集約可能
◾️検証環境図
(1)EIGRPネイバー確認
EIGRPネイバーが正常に張れている事を確認する。
※EIGRPネイバーの正常性確認時に確認するポイントは「Q Cnt」です。
「Q Cnt」は送信キューに溜まっているEIGRPパケット数がカウントされており、
正常時は「0」です。
(2)自動集約設定デフォルト値確認
(3)R3 EIGRPネットワーク追加
R3にて172.16.1.0~172.16.10.0はEIGRP内部ルートとして広告、192.168.101.0~192.168.110.0
は外部ルートして広告する。
(4)ルーティング確認
(2)R1にてルーティング確認をする。
※自動集約はクラスフルネットワークの境界ルータ(本検証環境でいうとR3)で実施する必要がある為、R2にauto-summaryを設定しても集約されていない事を確認する。
・R3にてループ防止のNull0が設定されている事を確認する。
・外部経路は集約されていない事を確認する。
※/16以外(例えば/20)で集約したい場合は、手動集約にて設定する必要があります。
又、外部経路を集約する必要がある場合は手動集約にて設定する必要があります。
※EIGRPネイバーの正常性確認時に確認するポイントは「Q Cnt」です。
「Q Cnt」は送信キューに溜まっているEIGRPパケット数がカウントされており、
正常時は「0」です。
R1#show ip eigrp neighbors
EIGRP-IPv4 Neighbors for AS(1)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.12.2 Et0/0 11 00:05:59 12 100 0 3
R2#show ip eigrp neighbors
EIGRP-IPv4 Neighbors for AS(1)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
1 192.168.23.3 Et0/1 11 00:00:08 11 100 0 3
0 192.168.12.1 Et0/0 13 00:06:38 1284 5000 0 4
R3#show ip eigrp neighbors
EIGRP-IPv4 Neighbors for AS(1)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.23.2 Et0/1 12 00:00:04 1 3000 1 7
(2)自動集約設定デフォルト値確認
R1#show run all | section router eigrp
router eigrp 1
timers active-time 3
timers graceful-restart purge-time 240
metric maximum-hops 100
metric weights 0 1 0 1 0 0
traffic-share balanced
variance 1
network 192.168.12.0
distance eigrp 90 170
no auto-summary //デフォルト状態では自動集約設定は無効化されております。
no passive-interface default
eigrp log-neighbor-changes
eigrp log-neighbor-warnings 10
eigrp event-log-size 500
no shutdown
(3)R3 EIGRPネットワーク追加
R3にて172.16.1.0~172.16.10.0はEIGRP内部ルートとして広告、192.168.101.0~192.168.110.0
は外部ルートして広告する。
R3#show run | section router eigrp
router eigrp 1
network 172.16.0.0 0.0.15.255
network 192.168.23.0
redistribute connected route-map connect-to-eigrp
R3#sh run | section route-map connect-to-eigrp
redistribute connected route-map connect-to-eigrp
route-map connect-to-eigrp permit 10
match interface Loopback101 Loopback102 Loopback103 Loopback104 Loopback105 Loopback106 Loopback107 Loopback108 Loopback109 Loopback110
(4)ルーティング確認
設定前のルーティングを確認する。
R1#sh ip route eigrp
Gateway of last resort is not set
172.16.0.0/32 is subnetted, 10 subnets
D 172.16.1.3 [90/435200] via 192.168.12.2, 00:18:58, Ethernet0/0
D 172.16.2.3 [90/435200] via 192.168.12.2, 00:18:58, Ethernet0/0
D 172.16.3.3 [90/435200] via 192.168.12.2, 00:18:58, Ethernet0/0
D 172.16.4.3 [90/435200] via 192.168.12.2, 00:18:58, Ethernet0/0
D 172.16.5.3 [90/435200] via 192.168.12.2, 00:18:58, Ethernet0/0
D 172.16.6.3 [90/435200] via 192.168.12.2, 00:18:58, Ethernet0/0
D 172.16.7.3 [90/435200] via 192.168.12.2, 00:18:58, Ethernet0/0
D 172.16.8.3 [90/435200] via 192.168.12.2, 00:18:58, Ethernet0/0
D 172.16.9.3 [90/435200] via 192.168.12.2, 00:18:58, Ethernet0/0
D 172.16.10.3 [90/435200] via 192.168.12.2, 00:18:58, Ethernet0/0
D 192.168.23.0/24 [90/307200] via 192.168.12.2, 00:25:20, Ethernet0/0
192.168.101.0/32 is subnetted, 1 subnets
D EX 192.168.101.3 [170/435200] via 192.168.12.2, 00:02:05, Ethernet0/0
192.168.102.0/32 is subnetted, 1 subnets
D EX 192.168.102.3 [170/435200] via 192.168.12.2, 00:02:05, Ethernet0/0
192.168.103.0/32 is subnetted, 1 subnets
D EX 192.168.103.3 [170/435200] via 192.168.12.2, 00:02:05, Ethernet0/0
192.168.104.0/32 is subnetted, 1 subnets
D EX 192.168.104.3 [170/435200] via 192.168.12.2, 00:02:05, Ethernet0/0
192.168.105.0/32 is subnetted, 1 subnets
D EX 192.168.105.3 [170/435200] via 192.168.12.2, 00:02:05, Ethernet0/0
192.168.106.0/32 is subnetted, 1 subnets
D EX 192.168.106.3 [170/435200] via 192.168.12.2, 00:02:05, Ethernet0/0
192.168.107.0/32 is subnetted, 1 subnets
D EX 192.168.107.3 [170/435200] via 192.168.12.2, 00:02:05, Ethernet0/0
192.168.108.0/32 is subnetted, 1 subnets
D EX 192.168.108.3 [170/435200] via 192.168.12.2, 00:02:05, Ethernet0/0
192.168.109.0/32 is subnetted, 1 subnets
D EX 192.168.109.3 [170/435200] via 192.168.12.2, 00:02:05, Ethernet0/0
192.168.110.0/32 is subnetted, 1 subnets
D EX 192.168.110.3 [170/435200] via 192.168.12.2, 00:02:05, Ethernet0/0
R2#sh ip route eigrp
Gateway of last resort is not set
172.16.0.0/32 is subnetted, 10 subnets
D 172.16.1.3 [90/409600] via 192.168.23.3, 00:19:20, Ethernet0/1
D 172.16.2.3 [90/409600] via 192.168.23.3, 00:19:20, Ethernet0/1
D 172.16.3.3 [90/409600] via 192.168.23.3, 00:19:20, Ethernet0/1
D 172.16.4.3 [90/409600] via 192.168.23.3, 00:19:20, Ethernet0/1
D 172.16.5.3 [90/409600] via 192.168.23.3, 00:19:20, Ethernet0/1
D 172.16.6.3 [90/409600] via 192.168.23.3, 00:19:20, Ethernet0/1
D 172.16.7.3 [90/409600] via 192.168.23.3, 00:19:20, Ethernet0/1
D 172.16.8.3 [90/409600] via 192.168.23.3, 00:19:20, Ethernet0/1
D 172.16.9.3 [90/409600] via 192.168.23.3, 00:19:20, Ethernet0/1
D 172.16.10.3 [90/409600] via 192.168.23.3, 00:19:20, Ethernet0/1
192.168.101.0/32 is subnetted, 1 subnets
D EX 192.168.101.3 [170/409600] via 192.168.23.3, 00:02:28, Ethernet0/1
192.168.102.0/32 is subnetted, 1 subnets
D EX 192.168.102.3 [170/409600] via 192.168.23.3, 00:02:28, Ethernet0/1
192.168.103.0/32 is subnetted, 1 subnets
D EX 192.168.103.3 [170/409600] via 192.168.23.3, 00:02:28, Ethernet0/1
192.168.104.0/32 is subnetted, 1 subnets
D EX 192.168.104.3 [170/409600] via 192.168.23.3, 00:02:28, Ethernet0/1
192.168.105.0/32 is subnetted, 1 subnets
D EX 192.168.105.3 [170/409600] via 192.168.23.3, 00:02:28, Ethernet0/1
192.168.106.0/32 is subnetted, 1 subnets
D EX 192.168.106.3 [170/409600] via 192.168.23.3, 00:02:28, Ethernet0/1
192.168.107.0/32 is subnetted, 1 subnets
D EX 192.168.107.3 [170/409600] via 192.168.23.3, 00:02:28, Ethernet0/1
192.168.108.0/32 is subnetted, 1 subnets
D EX 192.168.108.3 [170/409600] via 192.168.23.3, 00:02:28, Ethernet0/1
192.168.109.0/32 is subnetted, 1 subnets
D EX 192.168.109.3 [170/409600] via 192.168.23.3, 00:02:28, Ethernet0/1
192.168.110.0/32 is subnetted, 1 subnets
D EX 192.168.110.3 [170/409600] via 192.168.23.3, 00:02:28, Ethernet0/1
R3#sh ip route eigrp
Gateway of last resort is not set
D 192.168.12.0/24 [90/307200] via 192.168.23.2, 00:07:22, Ethernet0/1
②設定変更1(EIGRP auto-summary)
(1)R2にてauto-summaryを設定する。
※ネイバーが一度切れます。
※ネイバーが一度切れます。
R2(config)#router eigrp 1
R2(config-router)#no auto-summary
May 30 01:32:38.643: %DUAL-5-NBRCHANGE: EIGRP-IPv4 1: Neighbor 192.168.23.3 (Ethernet0/1) is resync: summary configured
May 30 01:32:38.643: %DUAL-5-NBRCHANGE: EIGRP-IPv4 1: Neighbor 192.168.12.1 (Ethernet0/0) is resync: summary configured
(2)R1にてルーティング確認をする。
※自動集約はクラスフルネットワークの境界ルータ(本検証環境でいうとR3)で実施する必要がある為、R2にauto-summaryを設定しても集約されていない事を確認する。
R1#sh ip route eigrp
Gateway of last resort is not set
172.16.0.0/32 is subnetted, 10 subnets
D 172.16.1.3 [90/435200] via 192.168.12.2, 00:00:11, Ethernet0/0
D 172.16.2.3 [90/435200] via 192.168.12.2, 00:00:11, Ethernet0/0
D 172.16.3.3 [90/435200] via 192.168.12.2, 00:00:11, Ethernet0/0
D 172.16.4.3 [90/435200] via 192.168.12.2, 00:00:11, Ethernet0/0
D 172.16.5.3 [90/435200] via 192.168.12.2, 00:00:11, Ethernet0/0
D 172.16.6.3 [90/435200] via 192.168.12.2, 00:00:11, Ethernet0/0
D 172.16.7.3 [90/435200] via 192.168.12.2, 00:00:11, Ethernet0/0
D 172.16.8.3 [90/435200] via 192.168.12.2, 00:00:11, Ethernet0/0
D 172.16.9.3 [90/435200] via 192.168.12.2, 00:00:11, Ethernet0/0
D 172.16.10.3 [90/435200] via 192.168.12.2, 00:00:11, Ethernet0/0
D 192.168.23.0/24 [90/307200] via 192.168.12.2, 00:31:41, Ethernet0/0
192.168.101.0/32 is subnetted, 1 subnets
D EX 192.168.101.3 [170/435200] via 192.168.12.2, 00:08:26, Ethernet0/0
192.168.102.0/32 is subnetted, 1 subnets
D EX 192.168.102.3 [170/435200] via 192.168.12.2, 00:08:26, Ethernet0/0
192.168.103.0/32 is subnetted, 1 subnets
D EX 192.168.103.3 [170/435200] via 192.168.12.2, 00:08:26, Ethernet0/0
192.168.104.0/32 is subnetted, 1 subnets
D EX 192.168.104.3 [170/435200] via 192.168.12.2, 00:08:26, Ethernet0/0
192.168.105.0/32 is subnetted, 1 subnets
D EX 192.168.105.3 [170/435200] via 192.168.12.2, 00:08:26, Ethernet0/0
192.168.106.0/32 is subnetted, 1 subnets
D EX 192.168.106.3 [170/435200] via 192.168.12.2, 00:08:26, Ethernet0/0
192.168.107.0/32 is subnetted, 1 subnets
D EX 192.168.107.3 [170/435200] via 192.168.12.2, 00:08:26, Ethernet0/0
192.168.108.0/32 is subnetted, 1 subnets
D EX 192.168.108.3 [170/435200] via 192.168.12.2, 00:08:26, Ethernet0/0
192.168.109.0/32 is subnetted, 1 subnets
D EX 192.168.109.3 [170/435200] via 192.168.12.2, 00:08:26, Ethernet0/0
192.168.110.0/32 is subnetted, 1 subnets
D EX 192.168.110.3 [170/435200] via 192.168.12.2, 00:08:26, Ethernet0/0
②設定変更2(EIGRP auto-summary)
(1)R3にてauto-summaryを設定する。
R3(config)#router eigrp 1
R3(config-router)#auto-summary
May 30 01:39:08.173: %DUAL-5-NBRCHANGE: EIGRP-IPv4 1: Neighbor 192.168.23.2 (Ethernet0/1) is resync: summary configured
May 30 01:39:08.189: %DUAL-5-NBRCHANGE: EIGRP-IPv4 1: Neighbor 192.168.23.2 (Ethernet0/1) is resync: summary up, remove components
(2)R1/R2/R3にてルーティング確認をする。
・R1-R2にて172.16.経路が集約されている事を確認する。・R3にてループ防止のNull0が設定されている事を確認する。
・外部経路は集約されていない事を確認する。
※/16以外(例えば/20)で集約したい場合は、手動集約にて設定する必要があります。
又、外部経路を集約する必要がある場合は手動集約にて設定する必要があります。
R1#sh ip route eigrp
Gateway of last resort is not set
172.16.0.0/16 is subnetted, 1 subnets
D 172.16.0.0 [90/435200] via 192.168.12.2, 00:01:14, Ethernet0/0
D 192.168.23.0/24 [90/307200] via 192.168.12.2, 00:38:12, Ethernet0/0
192.168.101.0/32 is subnetted, 1 subnets
D EX 192.168.101.3 [170/435200] via 192.168.12.2, 00:14:57, Ethernet0/0
192.168.102.0/32 is subnetted, 1 subnets
D EX 192.168.102.3 [170/435200] via 192.168.12.2, 00:14:57, Ethernet0/0
192.168.103.0/32 is subnetted, 1 subnets
D EX 192.168.103.3 [170/435200] via 192.168.12.2, 00:14:57, Ethernet0/0
192.168.104.0/32 is subnetted, 1 subnets
D EX 192.168.104.3 [170/435200] via 192.168.12.2, 00:14:57, Ethernet0/0
192.168.105.0/32 is subnetted, 1 subnets
D EX 192.168.105.3 [170/435200] via 192.168.12.2, 00:14:57, Ethernet0/0
192.168.106.0/32 is subnetted, 1 subnets
D EX 192.168.106.3 [170/435200] via 192.168.12.2, 00:14:57, Ethernet0/0
192.168.107.0/32 is subnetted, 1 subnets
D EX 192.168.107.3 [170/435200] via 192.168.12.2, 00:14:57, Ethernet0/0
192.168.108.0/32 is subnetted, 1 subnets
D EX 192.168.108.3 [170/435200] via 192.168.12.2, 00:14:57, Ethernet0/0
192.168.109.0/32 is subnetted, 1 subnets
D EX 192.168.109.3 [170/435200] via 192.168.12.2, 00:14:57, Ethernet0/0
192.168.110.0/32 is subnetted, 1 subnets
D EX 192.168.110.3 [170/435200] via 192.168.12.2, 00:14:57, Ethernet0/0
R2#sh ip route eigrp
Gateway of last resort is not set
D 172.16.0.0/16 [90/409600] via 192.168.23.3, 00:01:35, Ethernet0/1 //集約されている。
192.168.101.0/32 is subnetted, 1 subnets
D EX 192.168.101.3 [170/409600] via 192.168.23.3, 00:15:19, Ethernet0/1
192.168.102.0/32 is subnetted, 1 subnets
D EX 192.168.102.3 [170/409600] via 192.168.23.3, 00:15:19, Ethernet0/1
192.168.103.0/32 is subnetted, 1 subnets
D EX 192.168.103.3 [170/409600] via 192.168.23.3, 00:15:19, Ethernet0/1
192.168.104.0/32 is subnetted, 1 subnets
D EX 192.168.104.3 [170/409600] via 192.168.23.3, 00:15:19, Ethernet0/1
192.168.105.0/32 is subnetted, 1 subnets
D EX 192.168.105.3 [170/409600] via 192.168.23.3, 00:15:19, Ethernet0/1
192.168.106.0/32 is subnetted, 1 subnets
D EX 192.168.106.3 [170/409600] via 192.168.23.3, 00:15:19, Ethernet0/1
192.168.107.0/32 is subnetted, 1 subnets
D EX 192.168.107.3 [170/409600] via 192.168.23.3, 00:15:19, Ethernet0/1
192.168.108.0/32 is subnetted, 1 subnets
D EX 192.168.108.3 [170/409600] via 192.168.23.3, 00:15:19, Ethernet0/1
192.168.109.0/32 is subnetted, 1 subnets
D EX 192.168.109.3 [170/409600] via 192.168.23.3, 00:15:19, Ethernet0/1
192.168.110.0/32 is subnetted, 1 subnets
D EX 192.168.110.3 [170/409600] via 192.168.23.3, 00:15:19, Ethernet0/1
R3#sh ip route eigrp
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 11 subnets, 2 masks
D 172.16.0.0/16 is a summary, 00:01:56, Null0 //ループ防止用のNull0がインストールされている
D 192.168.12.0/24 [90/307200] via 192.168.23.2, 00:32:32, Ethernet0/1