вторник, 15 октября 2013 г.

RIP supernet

Провести суммаризацию мо меньшей маске реализация RIP в циско не даст:

R1(config)# interface serial 0/0/0
R1(config-if)# ip summary-address rip 192.168.48.0 255.255.252.0
Summary mask must be greater or equal to major net

Чтобы обойти эту проблему делаем статический маршрут:
R1(config)# ip route 192.168.48.0 255.255.252.0 null0

И редистрибутим его в RIP:
R1(config)# router rip
R1(config-router)# redistribute static

В итоге получим:
R1# show ip route

172.16.0.0/24 is subnetted, 4 subnets
C 192.168.51.0/24 is directly connected, Loopback51
C 192.168.50.0/24 is directly connected, Loopback50
C 192.168.49.0/24 is directly connected, Loopback49
C 192.168.70.0/24 is directly connected, Loopback70
C 192.168.48.0/24 is directly connected, Loopback48
S 192.168.48.0/22 is directly connected, Null0

R2# show ip route


Gateway of last resort is not set

172.16.0.0/24 is subnetted, 4 subnets
C 172.16.23.0 is directly connected, Serial0/0/1
C 172.16.12.0 is directly connected, Serial0/0/0
R 172.16.1.0 [120/1] via 172.16.12.1, 00:00:05, Serial0/0/0
C 172.16.2.0 is directly connected, Loopback0
R 192.168.51.0/24 [120/1] via 172.16.12.1, 00:00:05, Serial0/0/0
R 192.168.50.0/24 [120/1] via 172.16.12.1, 00:00:05, Serial0/0/0
R 192.168.49.0/24 [120/1] via 172.16.12.1, 00:00:05, Serial0/0/0
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:07, Serial0/0/0
R 192.168.48.0/24 [120/1] via 172.16.12.1, 00:00:07, Serial0/0/0
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:07, Serial0/0/0

Т.е. R1 будет показыать другим маршрутизаторам более общий маршрут, а на нем самом пакеты будут падать в битовую корзину, если один из суммаризованых маршрутов отвалится.

Комментариев нет:

Отправить комментарий