(例1) この場合、破棄される
192.168.1.0/27 —- RT A — 192.168.1.64/26 — RT B
192.168.1.32/27 —-
(例2) この場合、集約せずに172.16.1.0、172.16.2.0のルート情報が送出される
172.16.1.0/24 —- RT A — 172.16.3.0/24 — RT B
172.16.2.0/24 —-
(例2) この場合、集約されたルート情報(192.168.1.0)が送出される
192.168.1.0/27 —- RT A — 192.168.2.0/24 — RT B
192.168.1.32/27 —-
ccstudyさんの構成を参考に不連続サブネットの確認
http://www.ccstudy.org/study/rip/Discontiguous/discontiguous.html
■RouterA
RouterA# *Oct 18 08:38:13.807: RIP: sending v1 update to 255.255.255.255 via FastEthernet0 (172.17.1.1) *Oct 18 08:38:13.807: RIP: build update entries *Oct 18 08:38:13.807: network 172.16.0.0 metric 1 :FastEthernet0から172.16.0.0をRIP通知 *Oct 18 08:38:31.835: RIP: sending v1 update to 255.255.255.255 via FastEthernet1 (172.16.1.1) *Oct 18 08:38:31.835: RIP: build update entries *Oct 18 08:38:31.835: network 172.17.0.0 metric 1 :FastEthernet1から172.17.0.0をRIP通知 *Oct 18 08:38:33.835: RIP: received v1 update from 172.17.1.2 on FastEthernet0 *Oct 18 08:38:33.835: 172.16.0.0 in 1 hops
↑172.17.1.2から172.16.0.0のルートを受け取っている。
①送信側のRouterBは「通知しようとしている経路情報のメジャー・ネット」と「経路情報を送り出すインタフェースのメジャー・ネット」が違う、 ので自動集約して送信している。
RouterA#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 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.16.1.0/24 is directly connected, FastEthernet1 L 172.16.1.1/32 is directly connected, FastEthernet1 172.17.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.17.1.0/24 is directly connected, FastEthernet0 L 172.17.1.1/32 is directly connected, FastEthernet0
RIP受信した172.16.0.0が反映されていない。
① 「受信した経路情報のメジャー・ネット」と「経路情報を受け取ったインタフェースのメジャー・ネット」が違い、
② 受信した経路情報と同じメジャー・ネットのサブネットがルーティング・テーブルにある、
のでその情報を破棄している。
自身のFastEthernet1に172.16.0.0のサブネットがすでに接続されているのでこれがRouterBの先にあるとするのは間違いと判断する。
■RouterB
RouterB# *Oct 18 08:28:02.467: RIP: sending v1 update to 255.255.255.255 via FastEthernet1 (172.16.2.1) *Oct 18 08:28:02.467: RIP: build update entries *Oct 18 08:28:02.467: network 172.17.0.0 metric 1 *Oct 18 08:28:08.951: RIP: sending v1 update to 255.255.255.255 via FastEthernet0 (172.17.1.2) *Oct 18 08:28:08.951: RIP: build update entries *Oct 18 08:28:08.951: network 172.16.0.0 metric 1 *Oct 18 08:28:15.443: RIP: received v1 update from 172.17.1.1 on FastEthernet0 *Oct 18 08:28:15.443: 172.16.0.0 in 1 hops
RouterB#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 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.16.2.0/24 is directly connected, FastEthernet1 L 172.16.2.1/32 is directly connected, FastEthernet1 172.17.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.17.1.0/24 is directly connected, FastEthernet0 L 172.17.1.2/32 is directly connected, FastEthernet0