Работаю в небольшой компании, руководством поставлена задача поднять BGP-сессию с провайдером. Ранее ни когда подобным не занимался, поэтому искренне надеюсь на помощь знатоков. Поднимать multihop bgp сессию решено через Quagga.
Что мы имеем:
1. Наш ASN
205000 и PA-адреса
46.1.1.0\24 (46.1.1.0-46.1.1.255)
2. ASN провайдера
49000 и ip-адрес для подключения
188.1.1.373. ip-адрес нашего сервера для подключения к провайдеру
82.1.1.186\29nano /etc/quagga/daemons# This file tells the quagga package which daemons to start.
zebra=yes
bgpd=yes
ospfd=no
ospf6d=no
ripd=no
ripngd=no
isisd=no
babeld=no
nano /etc/quagga/bgpd.conf! -*- bgp -*-
hostname bgpd.test
password 123456
enable password 1234567
!
!bgp mulitple-instance
!
router bgp 205000
bgp router-id 82.1.1.186
network 46.1.1.0 mask 255.255.255.0
neighbor 188.1.1.37 remote-as 49000
neighbor 188.1.1.37 route-map set-nexthop out
neighbor 188.1.1.37 description Provider
neighbor 188.1.1.37 ebgp-multihop
neighbor 188.1.1.37 next-hop-self
!
!
! route-map set-nexthop permit 10
! match ip address all
! set ip next-hop 10.0.0.1
!
log file /var/log/quagga/bgpd.log
!
log stdout
!
line vty
nano /etc/quagga/zebra.conf! -*- zebra -*-
hostname zebra.test
password 123456
enable password 1234567
!
! Interface's description.
!
log file /var/log/quagga/zebra.log
!
interface lo
!
interface enp13s0
ip address 82.1.1.186/29
!
interface enp15s0
ip address 46.1.1.2/24
!
ip forwarding
!
ip route 46.1.1.0/24 Null0 254
!
log file /var/log/quagga/zebra.log
!
line vty
Старт quagga проходит без ошибок. Сессия поднимается (
vtysh -> sh ip bgp neighbors)
BGP neighbor is 188.1.1.37, remote AS 49000, local AS 205000, external link
Description: Provider
BGP version 4, remote router ID 188.1.1.37
BGP state = Established, up for 00:25:31
Last read 00:00:15, hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
4 Byte AS: advertised and received
Route refresh: advertised and received(old & new)
Address family IPv4 Unicast: advertised and received
Graceful Restart Capabilty: advertised and received
Remote Restart timer is 120 seconds
Address families by peer:
none
Graceful restart informations:
End-of-RIB send: IPv4 Unicast
End-of-RIB received: IPv4 Unicast
Message statistics:
Inq depth is 0
Outq depth is 0
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 1 2
Keepalives: 53 54
Route Refresh: 0 0
Capability: 0 0
Total: 55 57
Minimum time between advertisement runs is 30 seconds
For address family: IPv4 Unicast
NEXT_HOP is always this router
Community attribute sent to this neighbor(both)
Outbound path policy configured
Route map for outgoing advertisements is set-nexthop
1 accepted prefixes
Connections established 1; dropped 0
Last reset never
External BGP neighbor may be up to 255 hops away.
Local host: 82.1.1.186, Local port: 37788
Foreign host: 188.1.1.37, Foreign port: 179
Nexthop: 82.1.1.186
Nexthop global: fe80::225:90ff:fe01:5f2a
Nexthop local: ::
BGP connection: non shared network
Read thread: on Write thread: off
Однако
vtysh -> sh ip bgp neighbors показывает:
BGP table version is 0, local router ID is 82.202.255.186
Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
i internal, r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 0.0.0.0 188.1.1.37 0 49505 i
*> 46.1.1.0/24 0.0.0.0 0 32768 i
Total number of prefixes 2
vtysh ->
sh ip routeCodes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel,
> - selected route, * - FIB route
B 0.0.0.0/0 [20/0] via 188.1.1.37 inactive, 00:30:35
K>* 0.0.0.0/0 via 82.1.1.185, enp13s0
S 46.1.1.0/24 [254/0] is directly connected, Null0, bh
C>* 46.1.1.0/24 is directly connected, enp15s0
C>* 82.1.1.184/29 is directly connected, enp13s0
C>* 127.0.0.0/8 is directly connected, lo
По уверению провайдера с их стороны все настройки выполнены. В чем дело ни как понять не могу
. Прошу помощи.
cat /var/log/quagga/bgpd.log2017/11/14 07:19:41 BGP: Terminating on signal
2017/11/14 07:19:41 BGP: Notification sent to neighbor 188.1.1.37: shutdown
2017/11/14 07:19:45 BGP: BGPd 0.99.24.1 starting: vty@2605, bgp@<all>:179
2017/11/14 07:21:54 BGP: Terminating on signal
2017/11/14 07:22:19 BGP: BGPd 0.99.24.1 starting: vty@2605, bgp@<all>:179
2017/11/14 07:23:01 BGP: Terminating on signal
2017/11/14 07:23:05 BGP: BGPd 0.99.24.1 starting: vty@2605, bgp@<all>:179
2017/11/14 07:23:10 BGP: 188.1.1.37 unrecognized capability code: 71 - ignored