今回の内容
OSPFのルーティング環境下にEIGRPのルーティングプロトコルを追加して、
ルート再配布とLSAタイプの動きを確認します。
実施日:2022/08/06~2022/08/07
状態
ネットワーク構築 #5の状態からR5を追加してR4とR5をEIGRPで接続します。
以下がその図面になります。

設定
R4
R4#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R4(config)#router eigrp 1
R4(config-router)#network 192.168.5.254 0.0.0.0
R4(config-router)#exit
R5
R5(config)#router eigrp 1
R5(config-router)#network 192.168.5.253 0.0.0.0
R5(config-router)#exit  
状態確認
R4
R5未設定時の状態
R4(config)#do sh ip eigrp interfaces
EIGRP-IPv4 Interfaces for AS(1)
                        Xmit Queue   Mean   Pacing Time   Multicast    Pending
Interface        Peers  Un/Reliable  SRTT   Un/Reliable   Flow Timer   Routes
Fa1                0        0/0         0       0/1            0           0
R5設定時の状態
R4(config)#do sh ip eigrp interfaces
EIGRP-IPv4 Interfaces for AS(1)
                        Xmit Queue   Mean   Pacing Time   Multicast    Pending
Interface        Peers  Un/Reliable  SRTT   Un/Reliable   Flow Timer   Routes
Fa1                1        0/0         0       0/1            0           0
R4#sh ip route
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
       + - replicated route, % - next hop override
Gateway of last resort is 192.168.4.254 to network 0.0.0.0
O*E2  0.0.0.0/0 [110/1] via 192.168.4.254, 00:36:55, FastEthernet0
      4.0.0.0/32 is subnetted, 1 subnets
C        4.4.4.4 is directly connected, Loopback0
O IA  192.168.1.0/24 [110/4] via 192.168.4.254, 00:37:00, FastEthernet0
O IA  192.168.2.0/24 [110/3] via 192.168.4.254, 00:37:15, FastEthernet0
O IA  192.168.3.0/24 [110/2] via 192.168.4.254, 00:37:26, FastEthernet0
      192.168.4.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.4.0/24 is directly connected, FastEthernet0
L        192.168.4.253/32 is directly connected, FastEthernet0
      192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.5.0/24 is directly connected, FastEthernet1
L        192.168.5.254/32 is directly connected, FastEthernet1
R5
R5(config)#do sh ip eigrp interfaces
EIGRP-IPv4 Interfaces for AS(1)
                        Xmit Queue   Mean   Pacing Time   Multicast    Pending
Interface        Peers  Un/Reliable  SRTT   Un/Reliable   Flow Timer   Routes
Fa0                1        0/0      1996       0/1            0           0
R5#sh ip route
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
       + - replicated route, % - next hop override
Gateway of last resort is not set
      192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.5.0/24 is directly connected, FastEthernet0
L        192.168.5.253/32 is directly connected, FastEthernet0
R4とR5のみの接続状態のため、EIGRPのプロトコルである「D」の表示がありません。
R5はEIGRPであるため、OSPFのルートを学習出来ていません。
ルート再配送という設定をして、R5にOSPFのルートを学習させます。
ルート再配送設定
R4が学習しているルートをR5に学習させます。
気になる点
192.168.X.X/24のルートをEIGRPに学習させますが、クラスフルでルート集約してしまうのか。
R4の設定
EIGRPのルートを学習させるための設定
R4#router eigrp 1
R4(config-router)#redistribute ospf 1
R4(config-router)#default-metric 100000 1 255 1 1500
R4(config-router)#exit
R4(config)#exit
OSPFのルートを学習させるための設定
R4(config)#router ospf 1
R4(config-router)#redistribute eigrp 1 subnets
R4(config-router)#default-metric 1
R4(config-router)#exit
設定が済んだため、R5のルーティングテーブルを確認してみます。
R5#sh ip route
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
       + - replicated route, % - next hop override
Gateway of last resort is 192.168.5.254 to network 0.0.0.0
D*EX  0.0.0.0/0 [170/28416] via 192.168.5.254, 00:11:18, FastEthernet0
D EX  192.168.1.0/24 [170/28416] via 192.168.5.254, 00:11:18, FastEthernet0
D EX  192.168.2.0/24 [170/28416] via 192.168.5.254, 00:11:18, FastEthernet0
D EX  192.168.3.0/24 [170/28416] via 192.168.5.254, 00:11:18, FastEthernet0
D EX  192.168.4.0/24 [170/28416] via 192.168.5.254, 00:11:18, FastEthernet0
      192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.5.0/24 is directly connected, FastEthernet0
L        192.168.5.253/32 is directly connected, FastEthernet0
R5#ping 8.8.8.8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/105/504 ms
EIGRPが外部ルートとして、192.168.1.0/24から192.168.4.0/24を学習しています。
気になっていたルート集約もEIGRPに学習させる際のコマンドに[subnets]をオプションで含めたためクラスレスルーティングで学習しました。
Google(8.8.8.8)へのpingも疎通が出来ています。
隣接していないルーターからR5のルートが見えているか確認します。
R1#sh ip route
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
       + - replicated route, % - next hop override
Gateway of last resort is 192.168.1.1 to network 0.0.0.0
S*    0.0.0.0/0 [1/0] via 192.168.1.1
      1.0.0.0/32 is subnetted, 1 subnets
C        1.1.1.1 is directly connected, Loopback0
      192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.1.0/24 is directly connected, FastEthernet0
L        192.168.1.254/32 is directly connected, FastEthernet0
      192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C        192.168.2.0/24 is directly connected, FastEthernet1
L        192.168.2.254/32 is directly connected, FastEthernet1
O IA  192.168.3.0/24 [110/2] via 192.168.2.253, 01:40:54, FastEthernet1
O IA  192.168.4.0/24 [110/3] via 192.168.2.253, 01:40:39, FastEthernet1
O E2  192.168.5.0/24 [110/1] via 192.168.2.253, 00:26:06, FastEthernet1
R5へのルートも学習していることが確認出来ました。
本日はここまで。