- Код: Выделить всё
router bgp 5***8
bgp router-id 195.*.*.158
bgp log-neighbor-changes
network a.a.54.0/23
network a.a.54.0/24
network a.a.55.0/24
network b.b.248.0/22
network b.b.248.0/24
network b.b.249.0/24
network b.b.250.0/24
network b.b.251.0/24
network c.c.248.0/21
network c.c.248.0/24
network c.c.249.0/24
network c.c.250.0/24
network c.c.251.0/24
network c.c.252.0/24
network c.c.253.0/24
network c.c.254.0/24
network c.c.255.0/24
neighbor x.x.x.109 remote-as 31133
neighbor x.x.x.109 description Megafon
neighbor x.x.x.109 next-hop-self
neighbor x.x.x.109 soft-reconfiguration inbound
neighbor x.x.x.109 route-map Megafon-in in
neighbor x.x.x.109 route-map Megafon-out out
neighbor y.y.y.157 remote-as 3216
neighbor y.y.y.157 description Beeline
neighbor y.y.y.157 next-hop-self
neighbor y.y.y.157 soft-reconfiguration inbound
neighbor y.y.y.157 route-map Beeline-in in
neighbor y.y.y.157 route-map Beeline-out out
!
ip prefix-list bogons description bogus nets
ip prefix-list bogons seq 20 permit 127.0.0.0/8 le 32
ip prefix-list bogons seq 30 permit 10.0.0.0/8 le 32
ip prefix-list bogons seq 35 permit 172.16.0.0/12 le 32
ip prefix-list bogons seq 40 permit 192.168.0.0/16 le 32
ip prefix-list bogons seq 45 permit 169.254.0.0/16 le 32
ip prefix-list bogons seq 50 permit 224.0.0.0/4 le 32
ip prefix-list bogons seq 55 permit 240.0.0.0/4 le 32
ip prefix-list full-net seq 10 permit a.a.54.0/24
ip prefix-list full-net seq 15 permit a.a.55.0/24
ip prefix-list full-net seq 20 permit b.b.248.0/24
ip prefix-list full-net seq 25 permit b.b.249.0/24
ip prefix-list full-net seq 30 permit b.b.250.0/24
ip prefix-list full-net seq 35 permit b.b.251.0/24
ip prefix-list full-net seq 40 permit c.c.248.0/24
ip prefix-list full-net seq 45 permit c.c.249.0/24
ip prefix-list full-net seq 50 permit c.c.250.0/24
ip prefix-list full-net seq 55 permit c.c.251.0/24
ip prefix-list full-net seq 60 permit c.c.252.0/24
ip prefix-list full-net seq 65 permit c.c.253.0/24
ip prefix-list full-net seq 70 permit c.c.254.0/24
ip prefix-list full-net seq 75 permit c.c.255.0/24
ip prefix-list upstream-out seq 10 permit a.a.54.0/23
ip prefix-list upstream-out seq 20 permit b.b.248.0/22
ip prefix-list upstream-out seq 30 permit c.c.248.0/21
!
ip as-path access-list 1 permit _6451[2-9]_
ip as-path access-list 1 permit _645[2-9][0-9]_
ip as-path access-list 1 permit _64[6-9][0-9][0-9]_
ip as-path access-list 1 permit _65[0-9][0-9][0-9]_
!
route-map Megafon-in permit 200
set local-preference 100
!
route-map Megafon-out permit 100
match ip address prefix-list upstream-out
set as-path prepend 5***8 5***8 5***8 5***8 5***8
!
route-map Beeline-in deny 100
match as-path 1
!
route-map Beeline-in deny 110
match ip address prefix-list bogons
!
route-map Beeline-in permit 200
set local-preference 200
!
route-map Beeline-out permit 100
match ip address prefix-list full-net
!
route-map Beeline-out deny 200
!
ip forwarding
Все таки на выходе хочется получить чтоб все уходило через Beeline а при потере канала переключалось на Megafon