{"id":339653,"date":"2022-10-13T15:00:35","date_gmt":"2022-10-13T15:00:35","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=339653"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=339653","title":{"rendered":"<span>OSPF Forwarding Address: \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u043a\u043e\u0441\u0442\u044b\u043b\u044c<\/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>\u041e\u0434\u0438\u043d \u0438\u0437 \u043c\u043e\u0438\u0445 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u0440\u0438\u0441\u043b\u0430\u043b \u043c\u043d\u0435 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u043e\u0431 NSSA (\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0431\u0443\u0434\u0438\u043b \u043c\u0435\u043d\u044f \u043a\u043e\u043f\u043d\u0443\u0442\u044c \u0433\u043b\u0443\u0431\u0436\u0435, \u0437\u0430\u0447\u0435\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0435 OSPF Forwarding Address (FA) \u0432 Type-5 \u0438 Type-7 LSA.<\/p>\n<p>\u0422\u0438\u043f\u043e\u0432\u043e\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0434\u043b\u044f \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u044f OSPF FA, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435, \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0b9\/7eb\/96b\/0b97eb96b904aa405d101e9de9c1dc36.png\" alt=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: blog.ipspace.net\" title=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: blog.ipspace.net\" width=\"1407\" height=\"498\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0b9\/7eb\/96b\/0b97eb96b904aa405d101e9de9c1dc36.png\"\/><figcaption>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: blog.ipspace.net<\/figcaption><\/figure>\n<p>\u0414\u0432\u0430 OSPF ASBR \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0438 \u0442\u043e\u043c\u0443 \u0436\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u043c\u0443 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0443 \u0441\u0435\u0442\u0438, \u043e\u0434\u043d\u0430\u043a\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 ASBR \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0441 \u044d\u0442\u0438\u043c \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043e\u043c (\u043d\u0430 \u0441\u0445\u0435\u043c\u0435 \u044d\u0442\u043e BGP); \u044d\u0442\u043e\u0442 \u0436\u0435 ASBR \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 redistrubute \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432 \u0432 OSPF. \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0443\u043c\u0435\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u0430 ASBR, \u043d\u043e \u044d\u0442\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0438\u0437 ASBR \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u0432 \u0441\u0435\u0433\u043c\u0435\u043d\u0442 OSPF.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 E1 \u0438 E2:<\/p>\n<pre><code>hostname E1 ! interface Loopback0  description Loopback  ip address 192.168.0.1 255.255.255.255  ip ospf 1 area 1 ! interface GigabitEthernet0\/1  description to C1  ip address 10.0.128.1 255.255.255.252  ip ospf 1 area 1  ip ospf cost 1 ! interface GigabitEthernet0\/2  description to External_LAN  ip address 10.0.0.1 255.255.128.0 ! router ospf 1  redistribute bgp 65000 subnets  passive-interface Loopback0 ! router bgp 65000  bgp log-neighbor-changes  redistribute ospf 1  neighbor 10.0.0.2 remote-as 65001<\/code><\/pre>\n<pre><code>hostname E2 ! interface Loopback0  description Loopback  ip address 192.168.0.4 255.255.255.255  ip ospf 1 area 1 ! interface GigabitEthernet0\/1  description to C1  ip address 10.0.128.6 255.255.255.252  ip ospf 1 area 1  ip ospf cost 1 ! router ospf 1<\/code><\/pre>\n<p>BGP (\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0438 redistribution) \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u043d\u0430 E1, \u043d\u043e \u043d\u0435 \u043d\u0430 \u04152.<\/p>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043a \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0435\u0439 \u043d\u0430\u0441 \u0447\u0430\u0441\u0442\u0438 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 OSPF. \u041c\u0430\u0440\u0448\u0440\u0443\u0442 192.168.0.2\/32, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d X1 \u043f\u043e eBGP, \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 OSPF \u043a\u0430\u043a Type-5 LSA \u043d\u0430 E1 (192.168.0.1).<\/p>\n<p>Type-5 LSA \u0432 \u0411\u0414 OSPF:<\/p>\n<pre><code>C1#show ip ospf database external              OSPF Router with ID (192.168.0.3) (Process ID 1)      Type-5 AS External Link States    LS age: 301   Options: (No TOS-capability, DC, Upward)   LS Type: AS External Link   Link State ID: 192.168.0.2 (External Network Number )   Advertising Router: 192.168.0.1   LS Seq Number: 80000001   Checksum: 0xA154   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: 65001<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f VIRL \u0438\u0437 <a href=\"https:\/\/github.com\/ipspace\/VIRL\" rel=\"noopener noreferrer nofollow\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043d\u0430 Github<\/a>.<\/p>\n<p>\u041f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u044c\u0442\u0435\u0441\u044c \u0441 \u0415\u0433\u043e \u0412\u0435\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u041a\u043e\u0441\u0442\u044b\u043b\u0451\u043c: \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043e\u0434\u0438\u043d ASBR \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u0443\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 next-hop (Forwarding Address) \u0432 Type-5 LSA, \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0431\u0430 \u043f\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u0443\u044e\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 (\u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u043a\u0430\u043a stub network)? \u0420\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0439 \u043f\u043e\u0438\u0441\u043a next-hop \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0441 \u0437\u0430\u0434\u0430\u0447\u0435\u0439, \u0442\u0430\u043a \u0447\u0442\u043e C1 \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0434\u0432\u0430 \u0440\u0430\u0432\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u043a \u0432\u043d\u0435\u0448\u043d\u0435\u043c\u0443 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0443 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0442\u0430\u043a\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430, E1 \u0438 E2 \u0434\u043e\u043b\u0436\u043d\u044b \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u044e\u044e \u043f\u043e\u0434\u0441\u0435\u0442\u044c \u043a\u0430\u043a \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 \u0432 OSPF, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c OSPF \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u0445 E1 \u0438 E2:<\/p>\n<pre><code>interface GigabitEthernet0\/2  description to External_LAN  ip ospf cost 1<\/code><\/pre>\n<p>\u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u043c (= stub network). \u041a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 Cisco IOS \u043d\u0435 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 FA, \u0435\u0441\u043b\u0438 next-hop \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u0447\u0435\u0440\u0435\u0437 passive interface; \u0432\u043d\u0435\u0448\u043d\u044f\u044f \u0441\u0435\u0442\u044c \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0441 OSPF. \u041c\u043d\u0435 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0439\u0442\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u0432 RFC2328 \u2013 \u0435\u0441\u043b\u0438 \u044f \u0447\u0442\u043e-\u0442\u043e \u0443\u043f\u0443\u0441\u0442\u0438\u043b, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0434\u0430\u0439\u0442\u0435 \u0437\u043d\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, Type-5 LSA \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 Forwarding Address, \u0438 C1 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0434\u0432\u0430 \u0440\u0430\u0432\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0445 \u043f\u0443\u0442\u0438 \u0434\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<pre><code>C1>show ip ospf database external              OSPF Router with ID (192.168.0.3) (Process ID 1)  Type-5 AS External Link States    LS age: 907   Options: (No TOS-capability, DC, Upward)   LS Type: AS External Link   Link State ID: 192.168.0.2 (External Network Number )   Advertising Router: 192.168.0.1   LS Seq Number: 80000001   Checksum: 0x2CBD   Length: 36   Network Mask: \/32 Metric Type: 2 (Larger than any link state path) MTID: 0 Metric: 1 Forward Address: 10.0.0.2 External Route Tag: 65001<\/code><\/pre>\n<pre><code>C1>show ip route 192.168.0.2 Routing entry for 192.168.0.2\/32   Known via \"ospf 1\", distance 110, metric 1   Tag 65001, type extern 2, forward metric 2   Last update from 10.0.128.6 on GigabitEthernet0\/2, 00:15:21 ago   Routing Descriptor Blocks:     10.0.128.6, from 192.168.0.1, 00:15:21 ago, via GigabitEthernet0\/2       Route metric is 1, traffic share count is 1       Route tag 65001   * 10.0.128.1, from 192.168.0.1, 00:15:21 ago, via GigabitEthernet0\/1       Route metric is 1, traffic share count is 1<\/code><\/pre>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0440\u0435\u0448\u0435\u043d\u0430? <strong>\u041d\u0415\u0422, \u041a\u041e\u041d\u0415\u0427\u041d\u041e \u0416\u0415 \u041d\u0415\u0422. <\/strong>\u041c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0445\u0443\u0436\u0435:<\/p>\n<ul>\n<li>\n<p>\u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043a\u0430\u043a \u043d\u0430\u0434\u043e, E1 \u2013 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0435\u0434\u0438\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u043e\u0442\u043a\u0430\u0437\u0430: \u0435\u0441\u043b\u0438 \u043e\u043d \u0443\u043f\u0430\u0434\u0451\u0442, \u043a\u043e\u043d\u0435\u0446 redistribution \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430, \u0438, \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u0438 \u0434\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u0418 \u0442\u0430\u043a \u0441\u043b\u043e\u0436\u043d\u044b\u0439 link-state \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u043a\u043e\u0441\u0442\u044b\u043b\u044c. \u0412\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u043f\u0440\u043e \u043d\u044e\u0430\u043d\u0441 \u0441 passive interface, \u0430 \u0435\u0449\u0451 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0434\u0435\u0442\u0430\u043b\u0438 \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u043b\u0443\u0447\u0448\u0435\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u0432 OSPF (<a href=\"https:\/\/tools.ietf.org\/html\/rfc2328\" rel=\"noopener noreferrer nofollow\">RFC 2328<\/a>).<\/p>\n<\/li>\n<li>\n<p>\u0427\u0442\u043e\u0431\u044b \u043a\u043e\u0441\u0442\u044b\u043b\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u043b, OSPF \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0435\u043d \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u0445 (\u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 Cisco IOS). \u041d\u0435 \u0441\u0430\u043c\u044b\u0439 \u043b\u0443\u0447\u0448\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 (\u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0434\u0430\u0436\u0435 \u043d\u0435 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0439\u0442\u0435, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c ACL \u0434\u043b\u044f \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 OSPF, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u0440\u043e\u0447\u0442\u0451\u0442\u0435 <a href=\"https:\/\/blog.ipspace.net\/2013\/08\/temper-your-macgyver-streak.html\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u0443 \u0437\u0430\u043c\u0435\u0442\u043a\u0443<\/a>).<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0431\u044b\u043b\u043e \u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c BGP \u0438 redistribution \u043d\u0430 \u043e\u0431\u043e\u0438\u0445 ASBR (\u0434\u0430, \u0435\u0441\u0442\u044c \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u044b \u0441 two-way redistribution). \u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u0441\u0442\u0430\u043b \u0431\u044b \u0432\u043e\u0437\u043c\u0443\u0449\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c \u043d\u0435\u0434\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u043c \u0432 OSPF, \u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u043d\u0430\u043d\u0435\u0441\u0442\u0438 \u0435\u043c\u0443 \u0434\u043e\u0431\u0440\u043e \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043a\u0440\u0438\u0432\u043e\u0439 \u0434\u0438\u0437\u0430\u0439\u043d.<\/p>\n<p>\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u044b <a href=\"https:\/\/xkcd.com\/927\/\" rel=\"noopener noreferrer nofollow\">\u0440\u043e\u0436\u0434\u0430\u044e\u0442\u0441\u044f \u0438\u043d\u0430\u0447\u0435<\/a>. \u041d\u0435\u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e \u043d\u0430\u0443\u0447\u043d\u0430\u044f \u0441\u0440\u0435\u0434\u0430 \u043f\u043e\u0441\u043c\u0435\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0434 \u0433\u0440\u043e\u043c\u043e\u0437\u0434\u043a\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 (\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e <a href=\"https:\/\/www.sdxcentral.com\/articles\/news\/scott-shenker-preaches-revised-sdn-sdnv2\/2014\/10\/\" rel=\"noopener noreferrer nofollow\">\u043d\u0430\u0445\u0432\u0430\u043b\u0438\u0432\u0430\u044f \u0441\u0432\u043e\u0451 \u0431\u043e\u043b\u043e\u0442\u043e<\/a>), \u0430 \u043c\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u0430\u0436\u043d\u044f\u0435\u043c\u0441\u044f \u0432 <a href=\"http:\/\/sethgodin.typepad.com\/seths_blog\/2005\/03\/dont_shave_that.html\" rel=\"noopener noreferrer nofollow\">YAK shaving<\/a>.<\/p>\n<p>\u0410\u0445 \u0434\u0430, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0442\u0430\u043a\u0443\u044e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 OSPF, <a href=\"https:\/\/www.cisco.com\/c\/en\/us\/support\/docs\/ip\/open-shortest-path-first-ospf\/25493-type5-lsa.html\" rel=\"noopener noreferrer nofollow\">\u043e\u0442\u043b\u0430\u0434\u043a\u0430 \u0441\u0442\u0430\u043b\u0430 \u0435\u0449\u0451 \u0431\u043e\u043b\u0435\u0435 \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439<\/a>. \u0423\u0440\u0430!<\/p>\n<\/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\/692942\/\"> https:\/\/habr.com\/ru\/post\/692942\/<\/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>\u041e\u0434\u0438\u043d \u0438\u0437 \u043c\u043e\u0438\u0445 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u043f\u0440\u0438\u0441\u043b\u0430\u043b \u043c\u043d\u0435 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u043e\u0431 NSSA (\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0431\u0443\u0434\u0438\u043b \u043c\u0435\u043d\u044f \u043a\u043e\u043f\u043d\u0443\u0442\u044c \u0433\u043b\u0443\u0431\u0436\u0435, \u0437\u0430\u0447\u0435\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0435 OSPF Forwarding Address (FA) \u0432 Type-5 \u0438 Type-7 LSA.<\/p>\n<p>\u0422\u0438\u043f\u043e\u0432\u043e\u0439 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0434\u043b\u044f \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u044f OSPF FA, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435, \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<figure class=\"full-width\"><figcaption>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: blog.ipspace.net<\/figcaption><\/figure>\n<p>\u0414\u0432\u0430 OSPF ASBR \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0438 \u0442\u043e\u043c\u0443 \u0436\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u043c\u0443 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0443 \u0441\u0435\u0442\u0438, \u043e\u0434\u043d\u0430\u043a\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 ASBR \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0441 \u044d\u0442\u0438\u043c \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043e\u043c (\u043d\u0430 \u0441\u0445\u0435\u043c\u0435 \u044d\u0442\u043e BGP); \u044d\u0442\u043e\u0442 \u0436\u0435 ASBR \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 redistrubute \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432 \u0432 OSPF. \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0443\u043c\u0435\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u0430 ASBR, \u043d\u043e \u044d\u0442\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0438\u0437 ASBR \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u0432 \u0441\u0435\u0433\u043c\u0435\u043d\u0442 OSPF.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 E1 \u0438 E2:<\/p>\n<pre><code>hostname E1 ! interface Loopback0  description Loopback  ip address 192.168.0.1 255.255.255.255  ip ospf 1 area 1 ! interface GigabitEthernet0\/1  description to C1  ip address 10.0.128.1 255.255.255.252  ip ospf 1 area 1  ip ospf cost 1 ! interface GigabitEthernet0\/2  description to External_LAN  ip address 10.0.0.1 255.255.128.0 ! router ospf 1  redistribute bgp 65000 subnets  passive-interface Loopback0 ! router bgp 65000  bgp log-neighbor-changes  redistribute ospf 1  neighbor 10.0.0.2 remote-as 65001<\/code><\/pre>\n<pre><code>hostname E2 ! interface Loopback0  description Loopback  ip address 192.168.0.4 255.255.255.255  ip ospf 1 area 1 ! interface GigabitEthernet0\/1  description to C1  ip address 10.0.128.6 255.255.255.252  ip ospf 1 area 1  ip ospf cost 1 ! router ospf 1<\/code><\/pre>\n<p>BGP (\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0438 redistribution) \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u043d\u0430 E1, \u043d\u043e \u043d\u0435 \u043d\u0430 \u04152.<\/p>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043a \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0435\u0439 \u043d\u0430\u0441 \u0447\u0430\u0441\u0442\u0438 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 OSPF. \u041c\u0430\u0440\u0448\u0440\u0443\u0442 192.168.0.2\/32, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d X1 \u043f\u043e eBGP, \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 OSPF \u043a\u0430\u043a Type-5 LSA \u043d\u0430 E1 (192.168.0.1).<\/p>\n<p>Type-5 LSA \u0432 \u0411\u0414 OSPF:<\/p>\n<pre><code>C1#show ip ospf database external              OSPF Router with ID (192.168.0.3) (Process ID 1)      Type-5 AS External Link States    LS age: 301   Options: (No TOS-capability, DC, Upward)   LS Type: AS External Link   Link State ID: 192.168.0.2 (External Network Number )   Advertising Router: 192.168.0.1   LS Seq Number: 80000001   Checksum: 0xA154   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: 65001<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f VIRL \u0438\u0437 <a href=\"https:\/\/github.com\/ipspace\/VIRL\" rel=\"noopener noreferrer nofollow\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043d\u0430 Github<\/a>.<\/p>\n<p>\u041f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u044c\u0442\u0435\u0441\u044c \u0441 \u0415\u0433\u043e \u0412\u0435\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u041a\u043e\u0441\u0442\u044b\u043b\u0451\u043c: \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043e\u0434\u0438\u043d ASBR \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u0443\u0435\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 next-hop (Forwarding Address) \u0432 Type-5 LSA, \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0431\u0430 \u043f\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u0443\u044e\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 (\u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u043a\u0430\u043a stub network)? \u0420\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0439 \u043f\u043e\u0438\u0441\u043a next-hop \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0441 \u0437\u0430\u0434\u0430\u0447\u0435\u0439, \u0442\u0430\u043a \u0447\u0442\u043e C1 \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0434\u0432\u0430 \u0440\u0430\u0432\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0445 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u043a \u0432\u043d\u0435\u0448\u043d\u0435\u043c\u0443 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0443 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0442\u0430\u043a\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430, E1 \u0438 E2 \u0434\u043e\u043b\u0436\u043d\u044b \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u044e\u044e \u043f\u043e\u0434\u0441\u0435\u0442\u044c \u043a\u0430\u043a \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 \u0432 OSPF, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c OSPF \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u0445 E1 \u0438 E2:<\/p>\n<pre><code>interface GigabitEthernet0\/2  description to External_LAN  ip ospf cost 1<\/code><\/pre>\n<p>\u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0430\u0441\u0441\u0438\u0432\u043d\u044b\u043c (= stub network). \u041a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 Cisco IOS \u043d\u0435 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 FA, \u0435\u0441\u043b\u0438 next-hop \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u0447\u0435\u0440\u0435\u0437 passive interface; \u0432\u043d\u0435\u0448\u043d\u044f\u044f \u0441\u0435\u0442\u044c \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0441 OSPF. \u041c\u043d\u0435 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0439\u0442\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u0432 RFC2328 \u2013 \u0435\u0441\u043b\u0438 \u044f \u0447\u0442\u043e-\u0442\u043e \u0443\u043f\u0443\u0441\u0442\u0438\u043b, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0434\u0430\u0439\u0442\u0435 \u0437\u043d\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, Type-5 LSA \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 Forwarding Address, \u0438 C1 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0434\u0432\u0430 \u0440\u0430\u0432\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0445 \u043f\u0443\u0442\u0438 \u0434\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<pre><code>C1>show ip ospf database external              OSPF Router with ID (192.168.0.3) (Process ID 1)  Type-5 AS External Link States    LS age: 907   Options: (No TOS-capability, DC, Upward)   LS Type: AS External Link   Link State ID: 192.168.0.2 (External Network Number )   Advertising Router: 192.168.0.1   LS Seq Number: 80000001   Checksum: 0x2CBD   Length: 36   Network Mask: \/32 Metric Type: 2 (Larger than any link state path) MTID: 0 Metric: 1 Forward Address: 10.0.0.2 External Route Tag: 65001<\/code><\/pre>\n<pre><code>C1>show ip route 192.168.0.2 Routing entry for 192.168.0.2\/32   Known via \"ospf 1\", distance 110, metric 1   Tag 65001, type extern 2, forward metric 2   Last update from 10.0.128.6 on GigabitEthernet0\/2, 00:15:21 ago   Routing Descriptor Blocks:     10.0.128.6, from 192.168.0.1, 00:15:21 ago, via GigabitEthernet0\/2       Route metric is 1, traffic share count is 1       Route tag 65001   * 10.0.128.1, from 192.168.0.1, 00:15:21 ago, via GigabitEthernet0\/1       Route metric is 1, traffic share count is 1<\/code><\/pre>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0440\u0435\u0448\u0435\u043d\u0430? <strong>\u041d\u0415\u0422, \u041a\u041e\u041d\u0415\u0427\u041d\u041e \u0416\u0415 \u041d\u0415\u0422. <\/strong>\u041c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0445\u0443\u0436\u0435:<\/p>\n<ul>\n<li>\n<p>\u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043a\u0430\u043a \u043d\u0430\u0434\u043e, E1 \u2013 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0435\u0434\u0438\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u043e\u0442\u043a\u0430\u0437\u0430: \u0435\u0441\u043b\u0438 \u043e\u043d \u0443\u043f\u0430\u0434\u0451\u0442, \u043a\u043e\u043d\u0435\u0446 redistribution \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430, \u0438, \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u0438 \u0434\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u0418 \u0442\u0430\u043a \u0441\u043b\u043e\u0436\u043d\u044b\u0439 link-state \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u043a\u043e\u0441\u0442\u044b\u043b\u044c. \u0412\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u043f\u0440\u043e \u043d\u044e\u0430\u043d\u0441 \u0441 passive interface, \u0430 \u0435\u0449\u0451 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0434\u0435\u0442\u0430\u043b\u0438 \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u043b\u0443\u0447\u0448\u0435\u0433\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u0432 OSPF (<a href=\"https:\/\/tools.ietf.org\/html\/rfc2328\" rel=\"noopener noreferrer nofollow\">RFC 2328<\/a>).<\/p>\n<\/li>\n<li>\n<p>\u0427\u0442\u043e\u0431\u044b \u043a\u043e\u0441\u0442\u044b\u043b\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u043b, OSPF \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0430\u043a\u0442\u0438\u0432\u0435\u043d \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u0445 (\u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 Cisco IOS). \u041d\u0435 \u0441\u0430\u043c\u044b\u0439 \u043b\u0443\u0447\u0448\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 (\u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0434\u0430\u0436\u0435 \u043d\u0435 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0439\u0442\u0435, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c ACL \u0434\u043b\u044f \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 OSPF, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u0440\u043e\u0447\u0442\u0451\u0442\u0435 <a href=\"https:\/\/blog.ipspace.net\/2013\/08\/temper-your-macgyver-streak.html\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u0443 \u0437\u0430\u043c\u0435\u0442\u043a\u0443<\/a>).<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0431\u044b\u043b\u043e \u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c BGP \u0438 redistribution \u043d\u0430 \u043e\u0431\u043e\u0438\u0445 ASBR (\u0434\u0430, \u0435\u0441\u0442\u044c \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u044b \u0441 two-way redistribution). \u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u0441\u0442\u0430\u043b \u0431\u044b \u0432\u043e\u0437\u043c\u0443\u0449\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c \u043d\u0435\u0434\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u043c \u0432 OSPF, \u0442\u043e \u043b\u0443\u0447\u0448\u0435 \u043d\u0430\u043d\u0435\u0441\u0442\u0438 \u0435\u043c\u0443 \u0434\u043e\u0431\u0440\u043e \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043a\u0440\u0438\u0432\u043e\u0439 \u0434\u0438\u0437\u0430\u0439\u043d.<\/p>\n<p>\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u044b <a href=\"https:\/\/xkcd.com\/927\/\" rel=\"noopener noreferrer nofollow\">\u0440\u043e\u0436\u0434\u0430\u044e\u0442\u0441\u044f \u0438\u043d\u0430\u0447\u0435<\/a>. \u041d\u0435\u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e \u043d\u0430\u0443\u0447\u043d\u0430\u044f \u0441\u0440\u0435\u0434\u0430 \u043f\u043e\u0441\u043c\u0435\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0434 \u0433\u0440\u043e\u043c\u043e\u0437\u0434\u043a\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 (\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e <a href=\"https:\/\/www.sdxcentral.com\/articles\/news\/scott-shenker-preaches-revised-sdn-sdnv2\/2014\/10\/\" rel=\"noopener noreferrer nofollow\">\u043d\u0430\u0445\u0432\u0430\u043b\u0438\u0432\u0430\u044f \u0441\u0432\u043e\u0451 \u0431\u043e\u043b\u043e\u0442\u043e<\/a>), \u0430 \u043c\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u0430\u0436\u043d\u044f\u0435\u043c\u0441\u044f \u0432 <a href=\"http:\/\/sethgodin.typepad.com\/seths_blog\/2005\/03\/dont_shave_that.html\" rel=\"noopener noreferrer nofollow\">YAK shaving<\/a>.<\/p>\n<p>\u0410\u0445 \u0434\u0430, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0442\u0430\u043a\u0443\u044e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 OSPF, <a href=\"https:\/\/www.cisco.com\/c\/en\/us\/support\/docs\/ip\/open-shortest-path-first-ospf\/25493-type5-lsa.html\" rel=\"noopener noreferrer nofollow\">\u043e\u0442\u043b\u0430\u0434\u043a\u0430 \u0441\u0442\u0430\u043b\u0430 \u0435\u0449\u0451 \u0431\u043e\u043b\u0435\u0435 \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439<\/a>. \u0423\u0440\u0430!<\/p>\n<\/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\/692942\/\"> https:\/\/habr.com\/ru\/post\/692942\/<\/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-339653","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/339653","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=339653"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/339653\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=339653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=339653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=339653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}