{"id":384827,"date":"2024-06-29T05:45:13","date_gmt":"2024-06-29T05:45:13","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=384827"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=384827","title":{"rendered":"<span>BGP Synchronization \u0438 OSPF<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041a\u0440\u043e\u0441\u0441\u043f\u043e\u0441\u0442\u0438\u043d\u0433, <a href=\"https:\/\/foxnetwork.ru\/index.php\/new-materials\/35-articles\/articles\/238-bgp-synchronization-ospf\" rel=\"noopener noreferrer nofollow\">\u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f<\/a><\/p>\n<p>Disclaimer: \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0433\u0438\u043a\u043e\u0432; \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0430\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f; \u0441\u0442\u0430\u0442\u044c\u044f \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u201cjust for fun\u201d.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/955\/cbb\/f74\/955cbbf74321494059b1cea0659741e3.jpg\" width=\"3888\" height=\"2592\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/955\/cbb\/f74\/955cbbf74321494059b1cea0659741e3.jpg\" data-blurred=\"true\"\/><\/figure>\n<p>\u0420\u0430\u0437\u043e\u0431\u0440\u0430\u0432\u0448\u0438\u0441\u044c \u0441\u043e \u0441\u043c\u0443\u0437\u0438 \u0438 \u043f\u043e\u0434\u0432\u043e\u0440\u043e\u0442\u0430\u043c\u0438, \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u0441\u0443\u0442\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u2013 BGP synchronization \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 OSPF. \u0421\u0442\u043e\u0438\u0442 \u0441\u0440\u0430\u0437\u0443 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f BGP sync \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u00a0 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0443\u0436\u0435 \u043b\u0435\u0442 \u0446\u0430\u0442\u044c \u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0434\u0430\u0436\u0435 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u0435\u0451. \u0412 \u0441\u0432\u043e\u0451 \u0432\u0440\u0435\u043c\u044f \u044f \u043d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0437\u0430\u043d\u044f\u0442\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0439 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 BGP sync \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441 OSPF \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 IGP \u0438 \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c \u043e\u043f\u044b\u0442\u043e\u043c. <\/p>\n<p>\u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u0437\u0430\u0439\u043c\u0451\u043c\u0441\u044f \u043b\u0430\u0431\u043e\u0439; \u0447\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u0442\u043e\u043f\u043e\u043b\u043e\u0433\u0438\u044f, \u0442\u0435\u043c \u043f\u0440\u043e\u0449\u0435 \u0435\u0451 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5d6\/cd3\/9e1\/5d6cd39e1654a1a9d6b41775dbcdcf4f.png\" width=\"569\" height=\"319\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5d6\/cd3\/9e1\/5d6cd39e1654a1a9d6b41775dbcdcf4f.png\"\/><\/figure>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u043b\u0438\u0448\u044c \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u044f:<\/p>\n<pre><code class=\"xml\">R1(config)#int f0\/0 R1(config-if)#ip address 192.168.12.1 255.255.255.0 R1(config-if)#no shutdown<\/code><\/pre>\n<pre><code class=\"xml\">R2(config)#int f0\/0 R2(config-if)#ip address 192.168.12.2 255.255.255.0 R2(config-if)#no shutdown R2(config)#int f0\/1 R2(config-if)#ip address 192.168.23.2 255.255.255.0 R2(config-if)#no shutdown<\/code><\/pre>\n<pre><code class=\"xml\">R3(config)#int f0\/1 R3(config-if)#ip address 192.168.23.3 255.255.255.0 R3(config-if)#no shutdown<\/code><\/pre>\n<p>\u0412\u043a\u043b\u044e\u0447\u0438\u043c BGP \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 synchronization \u043d\u0430 R1 \u0438 R3:<\/p>\n<pre><code class=\"xml\">R1(config)#router bgp 1 R1(config-router)#synchronization  R1(config-router)#neighbor 192.168.23.3 remote 1<\/code><\/pre>\n<pre><code class=\"xml\">R3(config)#router bgp 1 R3(config-router)#synchronization  R3(config-router)#neighbor 192.168.12.1 remote 1<\/code><\/pre>\n<p>\u0421\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0449\u0435\u043f\u043e\u0442\u043a\u0443 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c loopback 0 \u043d\u0430 R1 \u0441 \u0430\u0434\u0440\u0435\u0441\u043e\u043c 1.1.1.1\/32 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0435\u0433\u043e \u0432 BGP:<\/p>\n<pre><code class=\"xml\">R1(config)#interface Loopback 0 R1(config-if)#ip address 1.1.1.1 255.255.255.255 R1(config)#router bgp 1  R1(config-router)#network 1.1.1.1 mask 255.255.255.255<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432 \u0441\u0445\u0435\u043c\u0435 OSPF, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c \u043c\u0435\u0436\u0434\u0443 BGP \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u043c\u0438:<\/p>\n<pre><code class=\"xml\">R1(config)#int f0\/0 R1(config-if)#ip ospf 1 area 0<\/code><\/pre>\n<pre><code class=\"xml\">R2(config)#router ospf 1 R2(config-router)#network 0.0.0.0 255.255.255.255 area 0<\/code><\/pre>\n<pre><code class=\"xml\">R3(config)#int f0\/1 R3(config-if)#ip ospf 1 area 0<\/code><\/pre>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0432 BGP RIB \u043d\u0430 R3, \u043e\u0434\u043d\u0430\u043a\u043e \u043e\u043d \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0432 global RIB \u0432\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 BGP sync:<\/p>\n<pre><code class=\"xml\">R3#sho ip bgp 1.1.1.1\/32 BGP routing table entry for 1.1.1.1\/32, version 0 Paths: (1 available, no best path)   Not advertised to any peer   Refresh Epoch 1   Local     192.168.12.1 (metric 2) from 192.168.12.1 (192.168.12.1)       Origin IGP, metric 0, localpref 100, valid, internal, not synchronized  R3#sho ip bgp &lt;output omitted>      Network          Next Hop            Metric LocPrf Weight Path  * i 1.1.1.1\/32       192.168.12.1             0    100      0 i <\/code><\/pre>\n<p>\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0432 \u0441\u0432\u043e\u0451 \u0432\u0440\u0435\u043c\u044f \u0431\u044b\u043b\u0430 \u043f\u0440\u0438\u0437\u0432\u0430\u043d\u0430 \u0437\u0430\u0449\u0438\u0442\u0438\u0442\u044c \u0441\u0435\u0442\u044c \u043e\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0434\u044b\u0440 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u043a\u043e\u0433\u0434\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u043d\u0430 \u043e\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 BGP \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u0445, \u043d\u043e \u043d\u0435 \u043d\u0430 \u0442\u0440\u0430\u043d\u0437\u0438\u0442\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445. \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u043c \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0443\u044e \u201c\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443\u201d, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 1.1.1.1\/32 \u0432 \u0441\u0435\u0442\u044c OSPF c \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 \u044d\u0442\u043e\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u0438\u0437 BGP:<\/p>\n<pre><code class=\"xml\">R1(config)#router ospf 1 R1(config-router)#redistribute bgp 1 subnets <\/code><\/pre>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 iBGP \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u0438 \u043f\u043e BGP, \u0438 \u043f\u043e OSPF, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u043e\u0439\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 BGP sync, \u043e\u0434\u043d\u0430\u043a\u043e \u043f\u043e \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 1.1.1.1\/32 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 not synchronized:<\/p>\n<pre><code class=\"xml\">R3#sho ip bgp &lt;output omitted>      Network          Next Hop            Metric LocPrf Weight Path * i 1.1.1.1\/32       192.168.12.1             0    100      0 i  R3# sho ip bgp 1.1.1.1\/32 BGP routing table entry for 1.1.1.1\/32, version 3 Paths: (1 available, no best path)   Not advertised to any peer   Refresh Epoch 1   Local     192.168.12.1 (metric 2) from 192.168.12.1 (192.168.12.1)       Origin IGP, metric 0, localpref 100, valid, internal, not synchronized<\/code><\/pre>\n<p>\u041c\u043d\u0435 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0439\u0442\u0438 \u0441\u043a\u043e\u043b\u044c\u043a\u043e-\u0442\u043e \u0432\u043d\u044f\u0442\u043d\u043e\u0433\u043e \u0434\u0435\u0431\u0430\u0433\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u043b\u0438\u043b \u0431\u044b \u0441\u0432\u0435\u0442 \u043d\u0430 \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f. \u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u0430\u044f <a href=\"https:\/\/www.cisco.com\/c\/en\/us\/support\/docs\/ip\/border-gateway-protocol-bgp\/13753-25.html#anc1\" rel=\"noopener noreferrer nofollow\">\u0437\u0430\u043c\u0435\u0442\u043a\u0430 \u043f\u043e \u043e\u0442\u043b\u0430\u0434\u043a\u0435 BGP<\/a>:<\/p>\n<blockquote>\n<p><em>If BGP synchronization is enabled, there must be a match for the prefix in the IP routing table in order for an internal BGP (iBGP) path to be considered a valid path. &lt;&#8230;> If the matching route is learned from an Open Shortest Path First (OSPF) neighbor, its OSPF router ID must match the BGP router ID of the iBGP neighbor.<\/em><\/p>\n<p><em>\u00a0\u0412\u043e\u043b\u044c\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434<\/em><\/p>\n<p><em>\u0415\u0441\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f BGP synchronization \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430, \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u043c \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 BGP \u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u0442\u0430\u043a\u043e\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u043f\u043e iBGP, \u0441\u0447\u0438\u0442\u0430\u043b\u0441\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u043c. &lt;&#8230;> \u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u043f\u043e OSPF, \u0442\u043e OSPF RID \u0441\u043e\u0441\u0435\u0434\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 RID \u0441\u043e\u0441\u0435\u0434\u0430 iBGP.<\/em><\/p>\n<\/blockquote>\n<p>\u041c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u0447\u043d\u0435\u0435 \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0448\u0435\u0438\u0437\u043b\u043e\u0436\u0435\u043d\u043d\u0443\u044e \u043c\u044b\u0441\u043b\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: BGP RID \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 OSPF RID \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e LSA5, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2013 1.1.1.1\/32. \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430\u043c\u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e iBGP \u0441\u043e\u0441\u0435\u0434 \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u043d \u0431\u044b\u0442\u044c OSPF \u0441\u043e\u0441\u0435\u0434\u043e\u043c. \u0422\u0430\u043a\u0436\u0435 \u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0432 \u0441\u0438\u043b\u0443 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f BGP sync \u043d\u0430 \u0441\u0442\u044b\u043a\u0435 \u0442\u0440\u0430\u043d\u0437\u0438\u0442\u043d\u043e\u0439 \u0438 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0435\u0439 \u044d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e LSA5, \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 OSPF \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u043d\u0430 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442 (\u044f \u043e\u0441\u0442\u0430\u0432\u043b\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u043a\u0442\u0430 \u043d\u0430 \u0441\u043e\u0432\u0435\u0441\u0442\u0438 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f).<\/p>\n<p>\u0421\u043c\u043e\u0436\u0435\u0442\u0435, \u0432\u043e\u043e\u0440\u0443\u0436\u0438\u0432\u0448\u0438\u0441\u044c \u044d\u0442\u0438\u043c \u0437\u043d\u0430\u043d\u0438\u0435\u043c, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c RID \u0434\u043b\u044f OSPF \u0438 BGP? \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u044d\u0442\u043e 1.1.1.1\/32 \u0434\u043b\u044f OSPF \u0438 192.168.12.1 \u0434\u043b\u044f BGP \u2013 \u0432\u044b \u0443\u0433\u0430\u0434\u0430\u043b\u0438:<\/p>\n<pre><code class=\"xml\">R3#sho ip bgp neighbors | i ID     BGP version 4, remote router ID 192.168.12.1 R3#sho ip ospf database external | i Advertising   Advertising Router: 1.1.1.1<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 loopback \u043f\u043e\u0441\u043b\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 BGP, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0438\u0439 IP \u0430\u0434\u0440\u0435\u0441 \u043d\u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u0445 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 RID; \u0447\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f OSPF, \u0442\u043e \u043e\u043d \u0443\u0436\u0435 \u043c\u043e\u0433 \u0432\u044b\u0431\u0440\u0430\u0442\u044c RID \u0441\u0440\u0435\u0434\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0442\u0438\u043f\u0430 loopback. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0447\u0442\u043e \u043a\u043e\u0440\u0435\u043d\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b\u00a0 &#8212; \u044d\u0442\u043e \u043d\u0435\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435 RID:<\/p>\n<pre><code class=\"xml\">R1(config)#router bgp 1 R1(config-router)#bgp router-id 1.1.1.1<\/code><\/pre>\n<pre><code class=\"xml\">R3#sho ip bgp &lt;output omitted>      Network          Next Hop            Metric LocPrf Weight Path  r>i 1.1.1.1\/32       192.168.12.1             0    100      0 I  R3#sho ip bgp nei | i ID   BGP version 4, remote router ID 1.1.1.1 R3#sho ip ospf database external | i Advertising   Advertising Router: 1.1.1.1<\/code><\/pre>\n<p>\u041a\u0430\u043a \u043c\u044b \u0432\u0438\u0434\u0438\u043c, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u043c \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f BGP, \u0438 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435.<\/p>\n<p>BGP synchronization, \u0445\u043e\u0442\u044c \u0438 \u043a\u043e\u0448\u043c\u0430\u0440\u0438\u043b \u0440\u0430\u043d\u044c\u0448\u0435 \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432 \u043d\u0430 CCIE, \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0448\u0451\u043b \u043d\u0430 \u043f\u043e\u043a\u043e\u0439, \u0442\u0430\u043a \u0447\u0442\u043e \u044d\u0442\u0430 \u0442\u0435\u043c\u0430 \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0434 \u0433\u0440\u0438\u0444\u043e\u043c \u201cjust for fun\u201d \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0437\u043d\u0430\u043d\u0438\u0439.<\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0440\u0435\u0446\u0435\u043d\u0437\u0438\u044e<strong>: \u0410\u043d\u0430\u0441\u0442\u0430\u0441\u0438\u0438 \u041a\u0443\u0440\u0430\u043b\u0451\u0432\u043e\u0439<\/strong>, <strong>\u041c\u0430\u043a\u0441\u0438\u043c\u0443 \u041a\u043b\u0438\u043c\u0430\u043d\u043e\u0432\u0443<\/strong> <\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/573616\/\"> https:\/\/habr.com\/ru\/articles\/573616\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041a\u0440\u043e\u0441\u0441\u043f\u043e\u0441\u0442\u0438\u043d\u0433, <a href=\"https:\/\/foxnetwork.ru\/index.php\/new-materials\/35-articles\/articles\/238-bgp-synchronization-ospf\" rel=\"noopener noreferrer nofollow\">\u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f<\/a><\/p>\n<p>Disclaimer: \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0433\u0438\u043a\u043e\u0432; \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0430\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f; \u0441\u0442\u0430\u0442\u044c\u044f \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u201cjust for fun\u201d.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0420\u0430\u0437\u043e\u0431\u0440\u0430\u0432\u0448\u0438\u0441\u044c \u0441\u043e \u0441\u043c\u0443\u0437\u0438 \u0438 \u043f\u043e\u0434\u0432\u043e\u0440\u043e\u0442\u0430\u043c\u0438, \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u0441\u0443\u0442\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 \u2013 BGP synchronization \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 OSPF. \u0421\u0442\u043e\u0438\u0442 \u0441\u0440\u0430\u0437\u0443 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f BGP sync \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u00a0 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u0443\u0436\u0435 \u043b\u0435\u0442 \u0446\u0430\u0442\u044c \u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0434\u0430\u0436\u0435 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u0435\u0451. \u0412 \u0441\u0432\u043e\u0451 \u0432\u0440\u0435\u043c\u044f \u044f \u043d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0437\u0430\u043d\u044f\u0442\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0439 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 BGP sync \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441 OSPF \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 IGP \u0438 \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c \u043e\u043f\u044b\u0442\u043e\u043c. <\/p>\n<p>\u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u0437\u0430\u0439\u043c\u0451\u043c\u0441\u044f \u043b\u0430\u0431\u043e\u0439; \u0447\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u0442\u043e\u043f\u043e\u043b\u043e\u0433\u0438\u044f, \u0442\u0435\u043c \u043f\u0440\u043e\u0449\u0435 \u0435\u0451 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u043b\u0438\u0448\u044c \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u044f:<\/p>\n<pre><code class=\"xml\">R1(config)#int f0\/0 R1(config-if)#ip address 192.168.12.1 255.255.255.0 R1(config-if)#no shutdown<\/code><\/pre>\n<pre><code class=\"xml\">R2(config)#int f0\/0 R2(config-if)#ip address 192.168.12.2 255.255.255.0 R2(config-if)#no shutdown R2(config)#int f0\/1 R2(config-if)#ip address 192.168.23.2 255.255.255.0 R2(config-if)#no shutdown<\/code><\/pre>\n<pre><code class=\"xml\">R3(config)#int f0\/1 R3(config-if)#ip address 192.168.23.3 255.255.255.0 R3(config-if)#no shutdown<\/code><\/pre>\n<p>\u0412\u043a\u043b\u044e\u0447\u0438\u043c BGP \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 synchronization \u043d\u0430 R1 \u0438 R3:<\/p>\n<pre><code class=\"xml\">R1(config)#router bgp 1 R1(config-router)#synchronization  R1(config-router)#neighbor 192.168.23.3 remote 1<\/code><\/pre>\n<pre><code class=\"xml\">R3(config)#router bgp 1 R3(config-router)#synchronization  R3(config-router)#neighbor 192.168.12.1 remote 1<\/code><\/pre>\n<p>\u0421\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0449\u0435\u043f\u043e\u0442\u043a\u0443 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c loopback 0 \u043d\u0430 R1 \u0441 \u0430\u0434\u0440\u0435\u0441\u043e\u043c 1.1.1.1\/32 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0435\u0433\u043e \u0432 BGP:<\/p>\n<pre><code class=\"xml\">R1(config)#interface Loopback 0 R1(config-if)#ip address 1.1.1.1 255.255.255.255 R1(config)#router bgp 1  R1(config-router)#network 1.1.1.1 mask 255.255.255.255<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432 \u0441\u0445\u0435\u043c\u0435 OSPF, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c \u043c\u0435\u0436\u0434\u0443 BGP \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u043c\u0438:<\/p>\n<pre><code class=\"xml\">R1(config)#int f0\/0 R1(config-if)#ip ospf 1 area 0<\/code><\/pre>\n<pre><code class=\"xml\">R2(config)#router ospf 1 R2(config-router)#network 0.0.0.0 255.255.255.255 area 0<\/code><\/pre>\n<pre><code class=\"xml\">R3(config)#int f0\/1 R3(config-if)#ip ospf 1 area 0<\/code><\/pre>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0432 BGP RIB \u043d\u0430 R3, \u043e\u0434\u043d\u0430\u043a\u043e \u043e\u043d \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0432 global RIB \u0432\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 BGP sync:<\/p>\n<pre><code class=\"xml\">R3#sho ip bgp 1.1.1.1\/32 BGP routing table entry for 1.1.1.1\/32, version 0 Paths: (1 available, no best path)   Not advertised to any peer   Refresh Epoch 1   Local     192.168.12.1 (metric 2) from 192.168.12.1 (192.168.12.1)       Origin IGP, metric 0, localpref 100, valid, internal, not synchronized  R3#sho ip bgp &lt;output omitted>      Network          Next Hop            Metric LocPrf Weight Path  * i 1.1.1.1\/32       192.168.12.1             0    100      0 i <\/code><\/pre>\n<p>\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0432 \u0441\u0432\u043e\u0451 \u0432\u0440\u0435\u043c\u044f \u0431\u044b\u043b\u0430 \u043f\u0440\u0438\u0437\u0432\u0430\u043d\u0430 \u0437\u0430\u0449\u0438\u0442\u0438\u0442\u044c \u0441\u0435\u0442\u044c \u043e\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0434\u044b\u0440 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u043a\u043e\u0433\u0434\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u043d\u0430 \u043e\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 BGP \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u0445, \u043d\u043e \u043d\u0435 \u043d\u0430 \u0442\u0440\u0430\u043d\u0437\u0438\u0442\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445. \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u043c \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0443\u044e \u201c\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443\u201d, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 1.1.1.1\/32 \u0432 \u0441\u0435\u0442\u044c OSPF c \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 \u044d\u0442\u043e\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u0438\u0437 BGP:<\/p>\n<pre><code class=\"xml\">R1(config)#router ospf 1 R1(config-router)#redistribute bgp 1 subnets <\/code><\/pre>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 iBGP \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u0438 \u043f\u043e BGP, \u0438 \u043f\u043e OSPF, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u043e\u0439\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 BGP sync, \u043e\u0434\u043d\u0430\u043a\u043e \u043f\u043e \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 1.1.1.1\/32 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 not synchronized:<\/p>\n<pre><code class=\"xml\">R3#sho ip bgp &lt;output omitted>      Network          Next Hop            Metric LocPrf Weight Path * i 1.1.1.1\/32       192.168.12.1             0    100      0 i  R3# sho ip bgp 1.1.1.1\/32 BGP routing table entry for 1.1.1.1\/32, version 3 Paths: (1 available, no best path)   Not advertised to any peer   Refresh Epoch 1   Local     192.168.12.1 (metric 2) from 192.168.12.1 (192.168.12.1)       Origin IGP, metric 0, localpref 100, valid, internal, not synchronized<\/code><\/pre>\n<p>\u041c\u043d\u0435 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0439\u0442\u0438 \u0441\u043a\u043e\u043b\u044c\u043a\u043e-\u0442\u043e \u0432\u043d\u044f\u0442\u043d\u043e\u0433\u043e \u0434\u0435\u0431\u0430\u0433\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u043b\u0438\u043b \u0431\u044b \u0441\u0432\u0435\u0442 \u043d\u0430 \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f. \u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u0430\u044f <a href=\"https:\/\/www.cisco.com\/c\/en\/us\/support\/docs\/ip\/border-gateway-protocol-bgp\/13753-25.html#anc1\" rel=\"noopener noreferrer nofollow\">\u0437\u0430\u043c\u0435\u0442\u043a\u0430 \u043f\u043e \u043e\u0442\u043b\u0430\u0434\u043a\u0435 BGP<\/a>:<\/p>\n<blockquote>\n<p><em>If BGP synchronization is enabled, there must be a match for the prefix in the IP routing table in order for an internal BGP (iBGP) path to be considered a valid path. &lt;&#8230;> If the matching route is learned from an Open Shortest Path First (OSPF) neighbor, its OSPF router ID must match the BGP router ID of the iBGP neighbor.<\/em><\/p>\n<p><em>\u00a0\u0412\u043e\u043b\u044c\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434<\/em><\/p>\n<p><em>\u0415\u0441\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f BGP synchronization \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430, \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u043c \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 BGP \u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u0442\u0430\u043a\u043e\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u043f\u043e iBGP, \u0441\u0447\u0438\u0442\u0430\u043b\u0441\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u043c. &lt;&#8230;> \u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u043f\u043e OSPF, \u0442\u043e OSPF RID \u0441\u043e\u0441\u0435\u0434\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 RID \u0441\u043e\u0441\u0435\u0434\u0430 iBGP.<\/em><\/p>\n<\/blockquote>\n<p>\u041c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u0447\u043d\u0435\u0435 \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0448\u0435\u0438\u0437\u043b\u043e\u0436\u0435\u043d\u043d\u0443\u044e \u043c\u044b\u0441\u043b\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: BGP RID \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 OSPF RID \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e LSA5, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2013 1.1.1.1\/32. \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430\u043c\u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e iBGP \u0441\u043e\u0441\u0435\u0434 \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u043d \u0431\u044b\u0442\u044c OSPF \u0441\u043e\u0441\u0435\u0434\u043e\u043c. \u0422\u0430\u043a\u0436\u0435 \u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0432 \u0441\u0438\u043b\u0443 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f BGP sync \u043d\u0430 \u0441\u0442\u044b\u043a\u0435 \u0442\u0440\u0430\u043d\u0437\u0438\u0442\u043d\u043e\u0439 \u0438 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0435\u0439 \u044d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e LSA5, \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 OSPF \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u043d\u0430 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442 (\u044f \u043e\u0441\u0442\u0430\u0432\u043b\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u043a\u0442\u0430 \u043d\u0430 \u0441\u043e\u0432\u0435\u0441\u0442\u0438 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f).<\/p>\n<p>\u0421\u043c\u043e\u0436\u0435\u0442\u0435, \u0432\u043e\u043e\u0440\u0443\u0436\u0438\u0432\u0448\u0438\u0441\u044c \u044d\u0442\u0438\u043c \u0437\u043d\u0430\u043d\u0438\u0435\u043c, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c RID \u0434\u043b\u044f OSPF \u0438 BGP? \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u044d\u0442\u043e 1.1.1.1\/32 \u0434\u043b\u044f OSPF \u0438 192.168.12.1 \u0434\u043b\u044f BGP \u2013 \u0432\u044b \u0443\u0433\u0430\u0434\u0430\u043b\u0438:<\/p>\n<pre><code class=\"xml\">R3#sho ip bgp neighbors | i ID     BGP version 4, remote router ID 192.168.12.1 R3#sho ip ospf database external | i Advertising   Advertising Router: 1.1.1.1<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 loopback \u043f\u043e\u0441\u043b\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 BGP, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0438\u0439 IP \u0430\u0434\u0440\u0435\u0441 \u043d\u0430 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u0445 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 RID; \u0447\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f OSPF, \u0442\u043e \u043e\u043d \u0443\u0436\u0435 \u043c\u043e\u0433 \u0432\u044b\u0431\u0440\u0430\u0442\u044c RID \u0441\u0440\u0435\u0434\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0442\u0438\u043f\u0430 loopback. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0447\u0442\u043e \u043a\u043e\u0440\u0435\u043d\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b\u00a0 &#8212; \u044d\u0442\u043e \u043d\u0435\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435 RID:<\/p>\n<pre><code class=\"xml\">R1(config)#router bgp 1 R1(config-router)#bgp router-id 1.1.1.1<\/code><\/pre>\n<pre><code class=\"xml\">R3#sho ip bgp &lt;output omitted>      Network          Next Hop            Metric LocPrf Weight Path  r>i 1.1.1.1\/32       192.168.12.1             0    100      0 I  R3#sho ip bgp nei | i ID   BGP version 4, remote router ID 1.1.1.1 R3#sho ip ospf database external | i Advertising   Advertising Router: 1.1.1.1<\/code><\/pre>\n<p>\u041a\u0430\u043a \u043c\u044b \u0432\u0438\u0434\u0438\u043c, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u043c \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f BGP, \u0438 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435.<\/p>\n<p>BGP synchronization, \u0445\u043e\u0442\u044c \u0438 \u043a\u043e\u0448\u043c\u0430\u0440\u0438\u043b \u0440\u0430\u043d\u044c\u0448\u0435 \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432 \u043d\u0430 CCIE, \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0448\u0451\u043b \u043d\u0430 \u043f\u043e\u043a\u043e\u0439, \u0442\u0430\u043a \u0447\u0442\u043e \u044d\u0442\u0430 \u0442\u0435\u043c\u0430 \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0434 \u0433\u0440\u0438\u0444\u043e\u043c \u201cjust for fun\u201d \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0437\u043d\u0430\u043d\u0438\u0439.<\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0440\u0435\u0446\u0435\u043d\u0437\u0438\u044e<strong>: \u0410\u043d\u0430\u0441\u0442\u0430\u0441\u0438\u0438 \u041a\u0443\u0440\u0430\u043b\u0451\u0432\u043e\u0439<\/strong>, <strong>\u041c\u0430\u043a\u0441\u0438\u043c\u0443 \u041a\u043b\u0438\u043c\u0430\u043d\u043e\u0432\u0443<\/strong> <\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/573616\/\"> https:\/\/habr.com\/ru\/articles\/573616\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-384827","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/384827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=384827"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/384827\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=384827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=384827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=384827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}