...
Блок кода |
---|
ISP-ONE(config)# ip route 0.0.0.0/0 blackhole ISP-ONE(config)# route-map OUT ISP-ONE(config-route-map)# rule 1 ISP-ONE(config-route-map-rule)# exit ISP-ONE(config-route-map)# exit ISP-ONE(config)# router bgp 64517 ISP-ONE(config-bgp)# neighbor 192.0.2.5 ISP-ONE(config-bgp-neighbor)# address-family ipv4 unicast ISP-ONE(config-bgp-neighbor-af)# route-map OUT out ISP-ONE(config-bgp-neighbor-af)# enable ISP-ONE(config-bgp-neighbor-af)# exit ISP-ONE(config-bgp-neighbor)# remote-as 64516 ISP-ONE(config-bgp-neighbor)# enable ISP-ONE(config-bgp-neighbor)# exit ISP-ONE(config-bgp)# enable ISP-ONE(config-bgp)# address-family ipv4 unicast ISP-ONE(config-bgp-af)# redistribute static ISP-ONE(config-bgp-af)# do commit ISP-ONE(config-bgp-af)# do confirm |
Опишем advertise и condition maps на ESR:
Блок кода |
---|
ESR(config)# ip route 198.51.100.0/24 blackhole
ESR(config)# route-map CONDITION
ESR(config-route-map)# rule 1
ESR(config-route-map-rule)# match ip address 10.1.1.1/32
ESR(config-route-map-rule)# exit
ESR(config-route-map)# exit
ESR(config)# route-map ADVERTISE
ESR(config-route-map)# rule 1
ESR(config-route-map-rule)# match ip address 198.51.100.0/24
ESR(config-route-map-rule)# exit
ESR(config-route-map)# exit
ESR(config)# router bgp 64516
ESR(config-bgp)# address-family ipv4 unicast
ESR(config-bgp-af)# network 198.51.100.0/24
ESR(config-bgp-af)# do commit
ESR(config-bgp-af)# do confirm |
Активируем функционал conditional advertisement применив ранее созданные маршрутные карты:
Блок кода |
---|
ESR(config)# router bgp 64516
ESR(config-bgp)# neighbor 192.0.2.6
ESR(config-bgp-neighbor)# address-family ipv4 unicast
ESR(config-bgp-neighbor-af)# advertise-map ADVERTISE not exist-map CONDITION
ESR(config-bgp-neighbor-af)# do commit
ESR(config-bgp-neighbor-af)# do confirm |
Настройка BFD
BFD (Bidirectional Forwarding Detection) — это протокол, работающий поверх других протоколов, позволяющий сократить время обнаружения проблемы до 50 мс. BFD является двусторонним протоколом, т. е. требует настройки обоих маршрутизаторов (оба маршрутизатора генерируют BFD-пакеты и отвечают друг другу).
...