SystemSyn Опубликовано 12 декабря, 2013 (изменено) · Жалоба as-set создан. Пытаюсь анонсировать каждую подсеть через свою AS (если все подсети через одну AS то все нормально). Делаю через bgp multiple-instance bgp multiple-instance ! router bgp AS1 view 1 bgp router-id i.i.i.i bgp log-neighbor-changes no synchronization no auto-summary ! network x.x.x.x/22 ! neighbor isp1 remote-as NNN neighbor isp1 send-community neighbor isp1 route-map isp1-IN in neighbor isp1 route-map isp1-OUT out neighbor isp1 weight 200 ! neighbor isp2 remote-as NNN2 neighbor isp2 send-community neighbor isp2 route-map isp2-IN2 in neighbor isp2 route-map isp2-OUT2 out neighbor isp2 weight 200 ! router bgp AS2 view 2 bgp router-id i.i.i.i bgp log-neighbor-changes no synchronization no auto-summary ! network y.y.y.y/22 network z.z.z.z/21 ! neighbor isp1 remote-as NNN neighbor isp1 send-community neighbor isp1 route-map isp1-IN in neighbor isp1 route-map isp1-OUT out neighbor isp1 weight 200 ! neighbor isp2 remote-as NNN2 neighbor isp2 send-community neighbor isp2 route-map isp2-IN2 in neighbor isp2 route-map isp2-OUT2 out neighbor isp2 weight 200 в логах соединение есть, правда с ошибкой от одного isp: 2013/12/12 10:59:26 BGP: %ADJCHANGE: neighbor isp1 Up 2013/12/12 10:59:30 BGP: %NOTIFICATION: received from neighbor isp1 2/2 (OPEN Message Error/Bad Peer AS) 0 bytes 2013/12/12 10:59:49 BGP: %ADJCHANGE: neighbor isp2 Up Маршруты вроде получаем: router-BGP# sh ip bgp neighbors isp2 routes BGP table version is 0, local router ID is i.i.i.i Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale, R Removed Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path * 1.0.0.0/24 78.25.77.189 200 31133 15169 i * 1.0.4.0/24 78.25.77.189 100 31133 3356 6453 7545 56203 i * 1.0.5.0/24 78.25.77.189 100 31133 3356 6453 7545 56203 i * 1.0.6.0/24 78.25.77.189 200 31133 3356 174 4826 38803 56203 i * 1.0.7.0/24 78.25.77.189 200 31133 3356 174 4826 38803 56203 i * 1.0.20.0/23 78.25.77.189 200 31133 3356 2516 2519 i * 1.0.22.0/23 78.25.77.189 200 31133 3356 2516 2519 i * 1.0.24.0/23 78.25.77.189 200 31133 3356 2516 2519 i * 1.0.26.0/23 78.25.77.189 200 31133 3356 2516 2519 i * 1.0.28.0/22 78.25.77.189 200 31133 3356 2516 2519 i * 1.0.64.0/18 78.25.77.189 200 31133 6939 4725 7670 7670 7670 18144 i * 1.0.128.0/17 78.25.77.189 200 31133 10026 38040 9737 9737 i * 1.0.128.0/18 78.25.77.189 200 31133 10026 38040 9737 i ................... а через route -n маршруты только локальные И еще - если убираешь из конфига view, оставляешь только router bgp AS1 и route bgp AS2 то получаем: Starting bgpd service: BGP view name and AS number mismatch BGP instance is already running; AS is AS1 Изменено 17 декабря, 2013 пользователем SystemSyn Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
SystemSyn Опубликовано 13 декабря, 2013 (изменено) · Жалоба Согласно документации Quagga насчет view маршруты и не должны попадать в kernel routes. Вопрос об ошибке остается открытым. Для теста делаю конфиг из доки квагги: bgp multiple-instance ! router bgp 1 neighbor 10.0.0.1 remote-as 2 neighbor 10.0.0.2 remote-as 3 ! router bgp 2 neighbor 10.0.0.3 remote-as 4 neighbor 10.0.0.4 remote-as 5 получаю Starting bgpd service: BGP view name and AS number mismatch BGP instance is already running; AS is 1 There is no such command. Error occured during reading below line. neighbor 10.0.0.3 remote-as 4 quagga-0.99.22 Видимо стоит смотреть в сторону Bird Изменено 13 декабря, 2013 пользователем SystemSyn Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...
vlad11 Опубликовано 14 декабря, 2013 · Жалоба На квагге работает. Вы намудрили с интерфейсными IP. Вставить ник Цитата Ответить с цитированием Поделиться сообщением Ссылка на сообщение Поделиться на других сайтах More sharing options...