purecopper Posted March 17, 2016 Posted March 17, 2016 Добрый день, коллеги. Прошу помощи с изучением bird, т.к. информации в сети по нему ну очень мало. Собрал стенд, состоящий из трех маршрутизаторов. R1,R2,R3. На R1 и R3 стоит quagga, на R2 - bird. Схему стенда прилагаю :) Конфигурация R1: ! ! Zebra configuration saved from vty ! 2016/02/11 16:52:23 ! password 12345 ! ! ! interface eth0 ! interface eth1 ! interface lo ! router ospf redistribute kernel redistribute connected network 172.16.0.0/24 area 0.0.0.0 network 172.16.1.0/24 area 0.0.0.1 default-information originate metric 10 ! line vty ! Конфигурация R3: ! ! Zebra configuration saved from vty ! 2016/02/12 15:32:58 ! password 12345 ! ! ! interface eth0 ip ospf cost 10 ! interface eth1 ! interface eth2 ip ospf cost 100 ! interface lo ! router ospf redistribute kernel redistribute connected network 172.16.1.0/24 area 0.0.0.1 area 0.0.0.1 nssa ! line vty ! На R3 терминируются клиенты. Соответственно есть куча /32 маршрутов из подсетей 192.168.2.0/24 и 192.168.3.0/24, которые я бы хотел агрегировать и в виде /24 передать в area 0. Для этого на R2 (bird): timeformat base iso long; timeformat log iso long; timeformat protocol iso long; timeformat route iso long; log syslog all; router id 172.16.200.200; protocol kernel { learn; scan time 20; export all; import all; kernel table 254; } protocol device { scan time 10; } protocol ospf n1ospfrouter { import all; export all; area 0 { interface 172.16.0.0/24 { hello 10; retransmit 5; transmit delay 1; dead count 4; wait 40; type broadcast; }; }; area 1 { nssa; default cost 100; external { 192.168.2.0/24; 192.168.3.0/24; }; interface 172.16.1.0/24 { hello 10; retransmit 5; transmit delay 1; dead count 4; wait 40; type broadcast; }; }; } Т.е. провожу агрегацию маршрутов при помощи external. Вопрос: это вообще правильно? При этом на R1 все отлично, агрегированные префиксы появляются в таблице маршрутизации: ip route show default via 172.16.254.254 dev eth0 172.16.0.0/24 dev eth1 proto kernel scope link src 172.16.0.1 172.16.1.0/24 via 172.16.0.3 dev eth1 proto zebra metric 20 172.16.254.0/24 dev eth0 proto kernel scope link src 172.16.254.20 192.168.2.0/24 via 172.16.0.3 dev eth1 proto zebra metric 21 192.168.3.0/24 via 172.16.0.3 dev eth1 proto zebra metric 21 И вопрос номер два: можно ли агрегированным выставить другой cost? Вставить ник Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.