◾️EIGRP 自動集約設定(ip summary-address eigrp )
【課題】・EIGRPのおける集約設定(ip summary-address eigrp )の挙動を理解する。
※集約設定はR2で実施する事。 【補足】
EIGRPで集約する方法は大きく2パターンある。
①自動集約による集約経路の広告
・ルータコンフィグレーションモードにて設定
・クラスフルネットワークの境界ルータにて設定する必要があり。
・クラスフルでの集約のみサポート
・EIGRP内部経路のみ集約可能
②集約による集約経路の広告
・IFモードにて設定
・集約プレフィックスを細かく設定可能
・EIGRP内部経路/外部経路共に集約可能
・設定方法は以下の2パターンあります。
(1)ip summary-address eigrp [AS番号][ネットワークアドレス][サブネットマスク]
<例>ip summary-address eigrp 1 172.16.0.0 255.255.240.0
(2)ip summary-address eigrp [AS番号][ネットワークアドレス][プレフィックス]
<例>ip summary-address eigrp 1 172.16.0.0/20
◾️検証環境図
(1)EIGRPネイバー確認
EIGRPネイバーが正常に張れている事を確認する。
※EIGRPネイバーの正常性確認時に確認するポイントは「Q Cnt」です。
「Q Cnt」は送信キューに溜まっているEIGRPパケット数がカウントされており、
正常時は「0」です。
(2)R3 EIGRPネットワーク追加
R3にて172.16.1.0~172.16.10.0はEIGRP内部ルートとして広告、192.168.101.0~192.168.110.0
は外部ルートして広告する。
(3)ルーティング確認
(2)R1/R2/R3にてルーティング確認をする。
※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)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
(3)ルーティング確認
設定前のルーティングを確認する。
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
②設定変更(ip summary-address eigrp )
(1)R2にてip summary-address eigrp を設定する。
※ネイバーが一度切れます。
★EIGRP内部経路
R2(config)#router eigrp 1
R2(config-if)#ip summary-address eigrp 1 172.16.0.0 255.255.240.0
May 30 01:58:26.297: %DUAL-5-NBRCHANGE: EIGRP-IPv4 1: Neighbor 192.168.12.1 (Ethernet0/0) is resync: summary configured
★EIGRP外部経路
R2(config)#router eigrp 1
R2(config-if)#ip summary-address eigrp 1 192.168.96.0/20
May 30 02:05:47.257: %DUAL-5-NBRCHANGE: EIGRP-IPv4 1: Neighbor 192.168.12.1 (Ethernet0/0) is resync: summary configured
(2)R1/R2/R3にてルーティング確認をする。
R1#sh ip route eigrp
Gateway of last resort is not set
172.16.0.0/20 is subnetted, 1 subnets
D 172.16.0.0 [90/435200] via 192.168.12.2, 00:07:26, Ethernet0/0 //EIGRP内部経路が集約されている事
D 192.168.23.0/24 [90/307200] via 192.168.12.2, 01:03:44, Ethernet0/0
D 192.168.96.0/20 [90/435200] via 192.168.12.2, 00:00:05, Ethernet0/0 //EIGRP外部経路が集約されている事
R2#sh ip route eigrp
Codes: L - local, 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, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 11 subnets, 2 masks
D 172.16.0.0/20 is a summary, 00:12:26, Null0 //ループ防止用のNull0がインストールされている
D 172.16.1.3/32 [90/409600] via 192.168.23.3, 00:13:12, Ethernet0/1
D 172.16.2.3/32 [90/409600] via 192.168.23.3, 00:13:12, Ethernet0/1
D 172.16.3.3/32 [90/409600] via 192.168.23.3, 00:13:12, Ethernet0/1
D 172.16.4.3/32 [90/409600] via 192.168.23.3, 00:13:12, Ethernet0/1
D 172.16.5.3/32 [90/409600] via 192.168.23.3, 00:13:12, Ethernet0/1
D 172.16.6.3/32 [90/409600] via 192.168.23.3, 00:13:12, Ethernet0/1
D 172.16.7.3/32 [90/409600] via 192.168.23.3, 00:13:12, Ethernet0/1
D 172.16.8.3/32 [90/409600] via 192.168.23.3, 00:13:12, Ethernet0/1
D 172.16.9.3/32 [90/409600] via 192.168.23.3, 00:13:12, Ethernet0/1
D 172.16.10.3/32 [90/409600] via 192.168.23.3, 00:13:12, Ethernet0/1
D 192.168.96.0/20 is a summary, 00:05:05, Null0 //ループ防止用のNull0がインストールされている
192.168.101.0/32 is subnetted, 1 subnets
D EX 192.168.101.3 [170/409600] via 192.168.23.3, 00:06: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:06: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:06: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:06: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:06: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:06: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:06: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:06: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:06: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:06: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, 01:02:47, Ethernet0/1