{"id":329641,"date":"2022-02-15T21:02:01","date_gmt":"2022-02-15T21:02:01","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=329641"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=329641","title":{"rendered":"<span>\u041c\u0430\u0433\u0438\u044f OSPF: \u0444\u0438\u043b\u044c\u0442\u0440\u0443\u0435\u043c LSA5<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043b\u0438 \u0432\u0430\u043c \u043a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u0432\u044b\u0431\u043e\u0440\u043e\u0447\u043d\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c LSA5? \u041d\u0430\u0434\u043e\u0435\u043b\u043e, \u0447\u0442\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 ASBR? \u0412\u044b \u043e\u0431\u0440\u0430\u0442\u0438\u043b\u0438\u0441\u044c \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443! \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0431\u044b \u0445\u043e\u0442\u0435\u043b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e \u043f\u043e\u0434\u0445\u043e\u0434, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c LSA5 \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043d\u0430 ABR. \u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u0438\u0445 \u0441\u043b\u043e\u0432 \u043d\u0430 \u0443\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 stub \u0437\u043e\u043d\u044b, \u0442\u043e \u0441\u0442\u0430\u0442\u044c\u0435 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0431\u0443\u0434\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c: \u0432\u0438\u0448\u0435\u043d\u043a\u0430 \u043d\u0430 \u0442\u043e\u0440\u0442\u0435 \u043d\u0435\u0438\u0437\u0431\u0435\u0436\u043d\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c OSPF \u043d\u0430 \u0437\u043e\u043d\u044b, \u0445\u043e\u0442\u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437 \u043f\u0440\u043e stub \u2013 \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f.<\/p>\n<p>\u0420\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0451\u0442 \u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0442\u043e\u043f\u043e\u043b\u043e\u0433\u0438\u0438:<\/p>\n<figure class=\"full-width\"><img decoding=\"async\" src=\"\/img\/image-loader.svg\" height=\"168\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d9a\/3ae\/8a6\/d9a3ae8a62222bbb72805c6925509425.png\" data-width=\"886\"\/><figcaption><\/figcaption><\/figure>\n<p>OSPF \u0437\u043e\u043d\u044b \u2013 \u0441\u0430\u043c\u044b\u0435 \u0447\u0442\u043e \u043d\u0438 \u043d\u0430 \u0435\u0441\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0435, \u0431\u0435\u0437 \u0438\u0437\u043b\u0438\u0448\u0435\u0441\u0442\u0432. \u0420\u043e\u043b\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0445\u0435\u043c\u0435 \u0442\u0430\u043a\u0438\u0435:<\/p>\n<ul>\n<li>\n<p>R2 \u0438 R3 \u2013 ABR\u2019\u044b;<\/p>\n<\/li>\n<li>\n<p>R1 \u2013 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0434\u043b\u044f \u0437\u043e\u043d\u044b 1;<\/p>\n<\/li>\n<li>\n<p>R4 \u2013 ASBR, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0432 OSPF \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u043e\u0442 R5 \u043f\u043e  eBGP.  <\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f: \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c \u0441 R5 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 \u0434\u043e\u043c\u0435\u043d\u0430 OSPF, \u043a\u0440\u043e\u043c\u0435 \u0442\u0435\u0445, \u0447\u0442\u043e \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u0437\u043e\u043d\u0435 1. R2 \u043c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u044c\u044e \u0437\u043e\u043d\u044b 0, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e R5 \u0435\u043c\u0443 \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d. \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e R4 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438:<\/p>\n<pre><code class=\"xml\">R4(config)#int lo 0 R4(config-if)#ip address 4.4.4.4 255.255.255.255 R4(config)#int f0\/0 R4(config-if)#ip address 192.168.34.4 255.255.255.0 R4(config-if)#no sh R4(config)#int f0\/1 R4(config-if)#ip address 192.168.45.4 255.255.255.0 R4(config-if)#no sh R4(config)#router ospf 1 R4(config-router)#network 192.168.34.0 0.0.0.255 area 2 R4(config-router)#network 4.4.4.4 0.0.0.0 area 2         R4(config-router)#redistribute bgp 4 subnets R4(config)#router bgp 4 R4(config-router)#bgp router-id 4.4.4.4 R4(config-router)#no bgp default ipv4-unicast  R4(config-router)#neighbor 192.168.45.5 remote 5 R4(config-router)#address-family ipv4 R4(config-router-af)#neighbor 192.168.45.5 activate  R4(config-router-af)#redistribute ospf 1 <\/code><\/pre>\n<p>\u0421\u0430\u043c\u044b\u0439 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u043f\u043e\u043f\u0430\u0434\u0430\u043d\u0438\u0435 5.5.5.5\/32 \u0432 \u0437\u043e\u043d\u0443 1 \u2013 \u044d\u0442\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0435\u0451 \u0432 stub \u0437\u043e\u043d\u0443. \u041e\u0434\u043d\u0430\u043a\u043e \u0443 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u0435\u0441\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a: \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u0437\u043e\u043d\u044b \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441 <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc2328#page-38\" rel=\"noopener noreferrer nofollow\">\u043f\u0435\u0440\u0435\u0440\u044b\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0430<\/a>:<\/p>\n<blockquote>\n<p><em>The OSPF protocol ensures that all routers belonging to an area agree on whether the area has been configured as a stub.  This guarantees that no confusion will arise in the flooding of AS-external-LSAs.<\/em><\/p>\n<p><em>\u0412\u043e\u043b\u044c\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434:<\/em><\/p>\n<p><em>\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b OSPF \u0442\u0440\u0435\u0431\u0443\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0437\u043e\u043d\u044b \u0438\u043c\u0435\u043b\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u0442\u043e\u043c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0437\u043e\u043d\u0430 stub. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0438 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0435 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 LSA \u0432\u043d\u0443\u0442\u0440\u0438 \u0437\u043e\u043d\u044b.<\/em><\/p>\n<\/blockquote>\n<p>\u0427\u0442\u043e \u0436\u0435 \u0434\u0435\u043b\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c 5.5.5.5\/32 \u0431\u0435\u0437 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430? \u041c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 OSPF \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438. \u042d\u0442\u043e\u0442 \u043f\u043e\u0434\u0445\u043e\u0434, \u043e\u0434\u043d\u0430\u043a\u043e, \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0447\u0442\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u0440\u0443\u0434\u043e\u0451\u043c\u043a\u0438\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u043c \u0438, \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043a\u0438.<\/p>\n<p>\u041e\u0442\u043a\u0440\u043e\u0432\u0435\u043d\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c LSA5 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432 \u043e\u0431\u0445\u043e\u0434 ASBR \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u044d\u0442\u043e \u0432\u044b\u0442\u0435\u043a\u0430\u0435\u0442 \u0438\u0437 \u043f\u0440\u0430\u0432\u0438\u043b \u0440\u0430\u0431\u043e\u0442\u044b OSPF. \u041e\u0434\u043d\u0430\u043a\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u043e \u201c\u0438\u0441\u043f\u043e\u0440\u0442\u0438\u0442\u044c\u201d LSA5 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0437\u043e\u043d\u044b \u043d\u0435 \u043c\u043e\u0433\u043b\u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0440\u0430\u0441\u0447\u0451\u0442\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u0438, \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc2328#page-214\" rel=\"noopener noreferrer nofollow\">\u0444\u043e\u0440\u043c\u0430\u0442 LSA5<\/a>, \u043a\u0430\u043a\u0438\u0435 \u043f\u043e\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043e\u043c?<\/p>\n<pre><code class=\"xml\">0                   1                   2                   3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |            LS age             |     Options   |      5        | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |                        Link State ID                          | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |                     Advertising Router                        | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |                     LS sequence number                        | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |         LS checksum           |             length            | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |                         Network Mask                          | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |E|     0       |                  metric                       | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |                      Forwarding address                       | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |                      External Route Tag                       | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<\/code><\/pre>\n<p> \u0415\u0441\u043b\u0438 \u0432\u044b\u0431\u043e\u0440 \u043f\u0430\u043b \u043d\u0430 Forwarding address (FA), \u0442\u043e \u0432\u044b \u043d\u0430 <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc2328#page-174\" rel=\"noopener noreferrer nofollow\">\u0432\u0435\u0440\u043d\u043e\u043c \u043f\u0443\u0442\u0438<\/a>:<\/p>\n<blockquote>\n<p><em>If the forwarding address is non-zero, look up the forwarding address in the routing table. The matching routing table entry must specify an intra-area or inter-area path; if no such path exists, do nothing with the LSA and consider the next in the list.<\/em><\/p>\n<p><em>\u0412\u043e\u043b\u044c\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434:<\/em><\/p>\n<p><em>\u0415\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 FA \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u043e\u0435, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0432\u0435\u0440\u0438\u0442\u044c \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438. \u041f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u043c OSPF, \u0432\u043d\u0443\u0442\u0440\u0438\u0437\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u0438\u043b\u0438 \u043c\u0435\u0436\u0437\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c. \u0415\u0441\u043b\u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0448\u0438\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 LSA \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e LSA \u0432 \u0441\u043f\u0438\u0441\u043a\u0435.<\/em><\/p>\n<\/blockquote>\n<p>\u041f\u043e\u043a\u0430 \u0447\u0442\u043e FA \u0432 LSA5 \u0434\u043b\u044f 5.5.5.5\/32 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d \u043d\u0443\u043b\u044f\u043c\u0438:<\/p>\n<pre><code class=\"xml\">R1#show ip ospf database external 5.5.5.5              OSPF Router with ID (1.1.1.1) (Process ID 1)  Type-5 AS External Link States    Routing Bit Set on this LSA in topology Base with MTID 0   LS age: 139   Options: (No TOS-capability, DC, Upward)   LS Type: AS External Link   Link State ID: 5.5.5.5 (External Network Number )   Advertising Router: 4.4.4.4   LS Seq Number: 80000001   Checksum: 0x2466   Length: 36   Network Mask: \/32 Metric Type: 2 (Larger than any link state path) MTID: 0  Metric: 1  Forward Address: 0.0.0.0 External Route Tag: 5<\/code><\/pre>\n<p>\u0412 Cisco IOS \u0435\u0441\u0442\u044c <a href=\"https:\/\/www.cisco.com\/c\/en\/us\/support\/docs\/ip\/open-shortest-path-first-ospf\/13682-10.html#topic1\" rel=\"noopener noreferrer nofollow\">\u0440\u044f\u0434 \u0443\u0441\u043b\u043e\u0432\u0438\u0439<\/a> \u0434\u043b\u044f \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f FA \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c:<\/p>\n<ul>\n<li>\n<p><em>OSPF \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u043d\u0430 next-hop \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 ASBR; <\/em> <\/p>\n<\/li>\n<li>\n<p><em>ASBR next-hop \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u043c;<\/em><\/p>\n<\/li>\n<li>\n<p><em>\u0442\u0438\u043f next-hop \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 ASBR \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c point-to-point \u0438\u043b\u0438 point-to-multipoint;<\/em><\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e \u0438\u0437 \u044d\u0442\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u0439 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e. \u0427\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c OSPF \u043d\u0430 R4 f0\/1 (next-hop \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441); \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0442\u0438\u043f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 OSPF \u0432 Cisco IOS \u2013 \u0448\u0438\u0440\u043e\u043a\u043e\u0432\u0435\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u044f\u0432\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.<\/p>\n<pre><code class=\"xml\">R4(config)#int f0\/1      R4(config-if)#ip ospf 1 area 2<\/code><\/pre>\n<pre><code class=\"xml\">R1#show ip ospf database external 5.5.5.5              OSPF Router with ID (1.1.1.1) (Process ID 1)  Type-5 AS External Link States    Routing Bit Set on this LSA in topology Base with MTID 0   LS age: 35   Options: (No TOS-capability, DC, Upward)   LS Type: AS External Link   Link State ID: 5.5.5.5 (External Network Number )   Advertising Router: 4.4.4.4   LS Seq Number: 80000002   Checksum: 0xE30A   Length: 36   Network Mask: \/32 Metric Type: 2 (Larger than any link state path) MTID: 0  Metric: 1  Forward Address: 192.168.45.5 External Route Tag: 5<\/code><\/pre>\n<p>\u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e RFC, FA \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0447\u0435\u0440\u0435\u0437 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 OSPF. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 \u043d\u0430 R2 (ABR), \u0447\u0442\u043e\u0431\u044b 5.5.5.5\/32 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u201c\u043d\u0435\u0433\u043e\u0434\u043d\u044b\u043c\u201d \u0434\u043b\u044f \u0432\u0441\u0435\u0439 \u0437\u043e\u043d\u044b:<\/p>\n<pre><code class=\"xml\">R2(config)#ip prefix-list NO_FA deny 192.168.45.0\/24 R2(config)#ip prefix-list NO_FA permit 0.0.0.0\/0 le 32 R2(config)#router ospf 1 R2(config-router)#area 1 filter-list prefix NO_FA in<\/code><\/pre>\n<pre><code class=\"xml\">R1#show ip route 5.5.5.5 255.255.255.255 % Network not in table R1#show ip ospf database external 5.5.5.5              OSPF Router with ID (1.1.1.1) (Process ID 1)  Type-5 AS External Link States    LS age: 336   Options: (No TOS-capability, DC, Upward)   LS Type: AS External Link   Link State ID: 5.5.5.5 (External Network Number )   Advertising Router: 4.4.4.4   LS Seq Number: 80000002   Checksum: 0xE30A   Length: 36   Network Mask: \/32 Metric Type: 2 (Larger than any link state path) MTID: 0  Metric: 1  Forward Address: 192.168.45.5 External Route Tag: 5 R1# R1#show ip cef 5.5.5.5 det 0.0.0.0\/0, epoch 0, flags default route handler, default route   no route<\/code><\/pre>\n<p>\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 \u0441\u0435\u0442\u0438, \u0432\u043a\u043b\u044e\u0447\u0430\u044f R2, \u043d\u0435 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0430:<\/p>\n<pre><code class=\"xml\">R2#show ip route 5.5.5.5 255.255.255.255 Routing entry for 5.5.5.5\/32   Known via \"ospf 1\", distance 110, metric 1   Tag 5, type extern 2, forward metric 3   Last update from 192.168.23.3 on FastEthernet0\/1, 00:07:51 ago   Routing Descriptor Blocks:   * 192.168.23.3, from 4.4.4.4, 00:07:51 ago, via FastEthernet0\/1       Route metric is 1, traffic share count is 1       Route tag 5 R2#show ip cef 5.5.5.5 det 5.5.5.5\/32, epoch 0   nexthop 192.168.23.3 FastEthernet0\/1<\/code><\/pre>\n<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430: R1 \u043f\u043e\u0442\u0435\u0440\u044f\u043b \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043e 5.5.5.5\/32, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0441\u0435\u0442\u0438 \u0435\u0451 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438. \u041e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 LSA5 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e ASBR. Stub \u0437\u043e\u043d\u044b, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u044b, \u0442.\u043a. \u043e\u043d\u0438 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0442 \u043b\u044e\u0431\u044b\u0435 LSA5 \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0435 \u0437\u043e\u043d\u044b. \u0415\u0441\u043b\u0438 \u043f\u043e \u043a\u0430\u043a\u0438\u043c-\u043b\u0438\u0431\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c OSPF \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 R5, \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u043e\u043d\u0443 2 \u0432 NSSA \u0437\u043e\u043d\u0443 \u0438 <a href=\"https:\/\/www.cisco.com\/c\/en\/us\/support\/docs\/ip\/open-shortest-path-first-ospf\/200066-Understand-Selection-of-Forwarding-Addre.html\" rel=\"noopener noreferrer nofollow\">\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<\/a> 4.4.4.4\/32 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 FA \u0434\u043b\u044f 5.5.5.5\/32.<\/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\u0435\u0432\u043e\u0439<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/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\/post\/599211\/\"> https:\/\/habr.com\/ru\/post\/599211\/<\/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_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043b\u0438 \u0432\u0430\u043c \u043a\u043e\u0433\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u0432\u044b\u0431\u043e\u0440\u043e\u0447\u043d\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c LSA5? \u041d\u0430\u0434\u043e\u0435\u043b\u043e, \u0447\u0442\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 ASBR? \u0412\u044b \u043e\u0431\u0440\u0430\u0442\u0438\u043b\u0438\u0441\u044c \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443! \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0431\u044b \u0445\u043e\u0442\u0435\u043b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e \u043f\u043e\u0434\u0445\u043e\u0434, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c LSA5 \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043d\u0430 ABR. \u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u0438\u0445 \u0441\u043b\u043e\u0432 \u043d\u0430 \u0443\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 stub \u0437\u043e\u043d\u044b, \u0442\u043e \u0441\u0442\u0430\u0442\u044c\u0435 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0431\u0443\u0434\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c: \u0432\u0438\u0448\u0435\u043d\u043a\u0430 \u043d\u0430 \u0442\u043e\u0440\u0442\u0435 \u043d\u0435\u0438\u0437\u0431\u0435\u0436\u043d\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c OSPF \u043d\u0430 \u0437\u043e\u043d\u044b, \u0445\u043e\u0442\u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437 \u043f\u0440\u043e stub \u2013 \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f.<\/p>\n<p>\u0420\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0451\u0442 \u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0442\u043e\u043f\u043e\u043b\u043e\u0433\u0438\u0438:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>OSPF \u0437\u043e\u043d\u044b \u2013 \u0441\u0430\u043c\u044b\u0435 \u0447\u0442\u043e \u043d\u0438 \u043d\u0430 \u0435\u0441\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0435, \u0431\u0435\u0437 \u0438\u0437\u043b\u0438\u0448\u0435\u0441\u0442\u0432. \u0420\u043e\u043b\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0445\u0435\u043c\u0435 \u0442\u0430\u043a\u0438\u0435:<\/p>\n<ul>\n<li>\n<p>R2 \u0438 R3 \u2013 ABR\u2019\u044b;<\/p>\n<\/li>\n<li>\n<p>R1 \u2013 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0434\u043b\u044f \u0437\u043e\u043d\u044b 1;<\/p>\n<\/li>\n<li>\n<p>R4 \u2013 ASBR, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0432 OSPF \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u043e\u0442 R5 \u043f\u043e  eBGP.  <\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f: \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c \u0441 R5 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 \u0434\u043e\u043c\u0435\u043d\u0430 OSPF, \u043a\u0440\u043e\u043c\u0435 \u0442\u0435\u0445, \u0447\u0442\u043e \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u0437\u043e\u043d\u0435 1. R2 \u043c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u044c\u044e \u0437\u043e\u043d\u044b 0, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e R5 \u0435\u043c\u0443 \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d. \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e R4 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438:<\/p>\n<pre><code class=\"xml\">R4(config)#int lo 0 R4(config-if)#ip address 4.4.4.4 255.255.255.255 R4(config)#int f0\/0 R4(config-if)#ip address 192.168.34.4 255.255.255.0 R4(config-if)#no sh R4(config)#int f0\/1 R4(config-if)#ip address 192.168.45.4 255.255.255.0 R4(config-if)#no sh R4(config)#router ospf 1 R4(config-router)#network 192.168.34.0 0.0.0.255 area 2 R4(config-router)#network 4.4.4.4 0.0.0.0 area 2         R4(config-router)#redistribute bgp 4 subnets R4(config)#router bgp 4 R4(config-router)#bgp router-id 4.4.4.4 R4(config-router)#no bgp default ipv4-unicast  R4(config-router)#neighbor 192.168.45.5 remote 5 R4(config-router)#address-family ipv4 R4(config-router-af)#neighbor 192.168.45.5 activate  R4(config-router-af)#redistribute ospf 1 <\/code><\/pre>\n<p>\u0421\u0430\u043c\u044b\u0439 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u043f\u043e\u043f\u0430\u0434\u0430\u043d\u0438\u0435 5.5.5.5\/32 \u0432 \u0437\u043e\u043d\u0443 1 \u2013 \u044d\u0442\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0435\u0451 \u0432 stub \u0437\u043e\u043d\u0443. \u041e\u0434\u043d\u0430\u043a\u043e \u0443 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u0435\u0441\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a: \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 \u0437\u043e\u043d\u044b \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441 <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc2328#page-38\" rel=\"noopener noreferrer nofollow\">\u043f\u0435\u0440\u0435\u0440\u044b\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0430<\/a>:<\/p>\n<blockquote>\n<p><em>The OSPF protocol ensures that all routers belonging to an area agree on whether the area has been configured as a stub.  This guarantees that no confusion will arise in the flooding of AS-external-LSAs.<\/em><\/p>\n<p><em>\u0412\u043e\u043b\u044c\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434:<\/em><\/p>\n<p><em>\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b OSPF \u0442\u0440\u0435\u0431\u0443\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0437\u043e\u043d\u044b \u0438\u043c\u0435\u043b\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u0442\u043e\u043c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0437\u043e\u043d\u0430 stub. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0438 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0435 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 LSA \u0432\u043d\u0443\u0442\u0440\u0438 \u0437\u043e\u043d\u044b.<\/em><\/p>\n<\/blockquote>\n<p>\u0427\u0442\u043e \u0436\u0435 \u0434\u0435\u043b\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c 5.5.5.5\/32 \u0431\u0435\u0437 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430? \u041c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 OSPF \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438. \u042d\u0442\u043e\u0442 \u043f\u043e\u0434\u0445\u043e\u0434, \u043e\u0434\u043d\u0430\u043a\u043e, \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0447\u0442\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u0440\u0443\u0434\u043e\u0451\u043c\u043a\u0438\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u043c \u0438, \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043a\u0438.<\/p>\n<p>\u041e\u0442\u043a\u0440\u043e\u0432\u0435\u043d\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c LSA5 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432 \u043e\u0431\u0445\u043e\u0434 ASBR \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u044d\u0442\u043e \u0432\u044b\u0442\u0435\u043a\u0430\u0435\u0442 \u0438\u0437 \u043f\u0440\u0430\u0432\u0438\u043b \u0440\u0430\u0431\u043e\u0442\u044b OSPF. \u041e\u0434\u043d\u0430\u043a\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u043e \u201c\u0438\u0441\u043f\u043e\u0440\u0442\u0438\u0442\u044c\u201d LSA5 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0437\u043e\u043d\u044b \u043d\u0435 \u043c\u043e\u0433\u043b\u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0440\u0430\u0441\u0447\u0451\u0442\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u0438, \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc2328#page-214\" rel=\"noopener noreferrer nofollow\">\u0444\u043e\u0440\u043c\u0430\u0442 LSA5<\/a>, \u043a\u0430\u043a\u0438\u0435 \u043f\u043e\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043e\u043c?<\/p>\n<pre><code class=\"xml\">0                   1                   2                   3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |            LS age             |     Options   |      5        | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |                        Link State ID                          | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |                     Advertising Router                        | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |                     LS sequence number                        | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |         LS checksum           |             length            | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |                         Network Mask                          | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |E|     0       |                  metric                       | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |                      Forwarding address                       | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |                      External Route Tag                       | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<\/code><\/pre>\n<p> \u0415\u0441\u043b\u0438 \u0432\u044b\u0431\u043e\u0440 \u043f\u0430\u043b \u043d\u0430 Forwarding address (FA), \u0442\u043e \u0432\u044b \u043d\u0430 <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc2328#page-174\" rel=\"noopener noreferrer nofollow\">\u0432\u0435\u0440\u043d\u043e\u043c \u043f\u0443\u0442\u0438<\/a>:<\/p>\n<blockquote>\n<p><em>If the forwarding address is non-zero, look up the forwarding address in the routing table. The matching routing table entry must specify an intra-area or inter-area path; if no such path exists, do nothing with the LSA and consider the next in the list.<\/em><\/p>\n<p><em>\u0412\u043e\u043b\u044c\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0432\u043e\u0434:<\/em><\/p>\n<p><em>\u0415\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 FA \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u043e\u0435, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0432\u0435\u0440\u0438\u0442\u044c \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438. \u041f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u043c OSPF, \u0432\u043d\u0443\u0442\u0440\u0438\u0437\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u0438\u043b\u0438 \u043c\u0435\u0436\u0437\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c. \u0415\u0441\u043b\u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0448\u0438\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 LSA \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e LSA \u0432 \u0441\u043f\u0438\u0441\u043a\u0435.<\/em><\/p>\n<\/blockquote>\n<p>\u041f\u043e\u043a\u0430 \u0447\u0442\u043e FA \u0432 LSA5 \u0434\u043b\u044f 5.5.5.5\/32 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d \u043d\u0443\u043b\u044f\u043c\u0438:<\/p>\n<pre><code class=\"xml\">R1#show ip ospf database external 5.5.5.5              OSPF Router with ID (1.1.1.1) (Process ID 1)  Type-5 AS External Link States    Routing Bit Set on this LSA in topology Base with MTID 0   LS age: 139   Options: (No TOS-capability, DC, Upward)   LS Type: AS External Link   Link State ID: 5.5.5.5 (External Network Number )   Advertising Router: 4.4.4.4   LS Seq Number: 80000001   Checksum: 0x2466   Length: 36   Network Mask: \/32 Metric Type: 2 (Larger than any link state path) MTID: 0  Metric: 1  Forward Address: 0.0.0.0 External Route Tag: 5<\/code><\/pre>\n<p>\u0412 Cisco IOS \u0435\u0441\u0442\u044c <a href=\"https:\/\/www.cisco.com\/c\/en\/us\/support\/docs\/ip\/open-shortest-path-first-ospf\/13682-10.html#topic1\" rel=\"noopener noreferrer nofollow\">\u0440\u044f\u0434 \u0443\u0441\u043b\u043e\u0432\u0438\u0439<\/a> \u0434\u043b\u044f \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f FA \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c:<\/p>\n<ul>\n<li>\n<p><em>OSPF \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u043d\u0430 next-hop \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 ASBR; <\/em> <\/p>\n<\/li>\n<li>\n<p><em>ASBR next-hop \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u043c;<\/em><\/p>\n<\/li>\n<li>\n<p><em>\u0442\u0438\u043f next-hop \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 ASBR \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c point-to-point \u0438\u043b\u0438 point-to-multipoint;<\/em><\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0438 \u043e\u0434\u043d\u043e \u0438\u0437 \u044d\u0442\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u0439 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e. \u0427\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c OSPF \u043d\u0430 R4 f0\/1 (next-hop \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441); \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0442\u0438\u043f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 OSPF \u0432 Cisco IOS \u2013 \u0448\u0438\u0440\u043e\u043a\u043e\u0432\u0435\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u044f\u0432\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.<\/p>\n<pre><code class=\"xml\">R4(config)#int f0\/1      R4(config-if)#ip ospf 1 area 2<\/code><\/pre>\n<pre><code class=\"xml\">R1#show ip ospf database external 5.5.5.5              OSPF Router with ID (1.1.1.1) (Process ID 1)  Type-5 AS External Link States    Routing Bit Set on this LSA in topology Base with MTID 0   LS age: 35   Options: (No TOS-capability, DC, Upward)   LS Type: AS External Link   Link State ID: 5.5.5.5 (External Network Number )   Advertising Router: 4.4.4.4   LS Seq Number: 80000002   Checksum: 0xE30A   Length: 36   Network Mask: \/32 Metric Type: 2 (Larger than any link state path) MTID: 0  Metric: 1  Forward Address: 192.168.45.5 External Route Tag: 5<\/code><\/pre>\n<p>\u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e RFC, FA \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0447\u0435\u0440\u0435\u0437 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 OSPF. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 \u043d\u0430 R2 (ABR), \u0447\u0442\u043e\u0431\u044b 5.5.5.5\/32 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u201c\u043d\u0435\u0433\u043e\u0434\u043d\u044b\u043c\u201d \u0434\u043b\u044f \u0432\u0441\u0435\u0439 \u0437\u043e\u043d\u044b:<\/p>\n<pre><code class=\"xml\">R2(config)#ip prefix-list NO_FA deny 192.168.45.0\/24 R2(config)#ip prefix-list NO_FA permit 0.0.0.0\/0 le 32 R2(config)#router ospf 1 R2(config-router)#area 1 filter-list prefix NO_FA in<\/code><\/pre>\n<pre><code class=\"xml\">R1#show ip route 5.5.5.5 255.255.255.255 % Network not in table R1#show ip ospf database external 5.5.5.5              OSPF Router with ID (1.1.1.1) (Process ID 1)  Type-5 AS External Link States    LS age: 336   Options: (No TOS-capability, DC, Upward)   LS Type: AS External Link   Link State ID: 5.5.5.5 (External Network Number )   Advertising Router: 4.4.4.4   LS Seq Number: 80000002   Checksum: 0xE30A   Length: 36   Network Mask: \/32 Metric Type: 2 (Larger than any link state path) MTID: 0  Metric: 1  Forward Address: 192.168.45.5 External Route Tag: 5 R1# R1#show ip cef 5.5.5.5 det 0.0.0.0\/0, epoch 0, flags default route handler, default route   no route<\/code><\/pre>\n<p>\u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 \u0441\u0435\u0442\u0438, \u0432\u043a\u043b\u044e\u0447\u0430\u044f R2, \u043d\u0435 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0430:<\/p>\n<pre><code class=\"xml\">R2#show ip route 5.5.5.5 255.255.255.255 Routing entry for 5.5.5.5\/32   Known via \"ospf 1\", distance 110, metric 1   Tag 5, type extern 2, forward metric 3   Last update from 192.168.23.3 on FastEthernet0\/1, 00:07:51 ago   Routing Descriptor Blocks:   * 192.168.23.3, from 4.4.4.4, 00:07:51 ago, via FastEthernet0\/1       Route metric is 1, traffic share count is 1       Route tag 5 R2#show ip cef 5.5.5.5 det 5.5.5.5\/32, epoch 0   nexthop 192.168.23.3 FastEthernet0\/1<\/code><\/pre>\n<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430: R1 \u043f\u043e\u0442\u0435\u0440\u044f\u043b \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0434\u043e 5.5.5.5\/32, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0441\u0435\u0442\u0438 \u0435\u0451 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438. \u041e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 LSA5 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e ASBR. Stub \u0437\u043e\u043d\u044b, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u044b, \u0442.\u043a. \u043e\u043d\u0438 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0442 \u043b\u044e\u0431\u044b\u0435 LSA5 \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0435 \u0437\u043e\u043d\u044b. \u0415\u0441\u043b\u0438 \u043f\u043e \u043a\u0430\u043a\u0438\u043c-\u043b\u0438\u0431\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c OSPF \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 R5, \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u043e\u043d\u0443 2 \u0432 NSSA \u0437\u043e\u043d\u0443 \u0438 <a href=\"https:\/\/www.cisco.com\/c\/en\/us\/support\/docs\/ip\/open-shortest-path-first-ospf\/200066-Understand-Selection-of-Forwarding-Addre.html\" rel=\"noopener noreferrer nofollow\">\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<\/a> 4.4.4.4\/32 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 FA \u0434\u043b\u044f 5.5.5.5\/32.<\/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\u0435\u0432\u043e\u0439<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/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\/post\/599211\/\"> https:\/\/habr.com\/ru\/post\/599211\/<\/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-329641","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/329641","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=329641"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/329641\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=329641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=329641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=329641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}