{"id":344584,"date":"2023-01-27T15:03:13","date_gmt":"2023-01-27T15:03:13","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=344584"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=344584","title":{"rendered":"<span>OSPFv3 \u0434\u043b\u044f P2P \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u0438 VM \u043f\u043e IPv6<\/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>OSPFv3 &#8212; \u044d\u0442\u043e \u0432\u0435\u0440\u0441\u0438\u044f OSPF \u0434\u043b\u044f IPv6. \u0415\u0433\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c OSPFv2, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u043c \u0432 \u0441\u0435\u0442\u044f\u0445 IPv4.<\/p>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 <s>\u0440\u0430\u0437\u0436\u0435\u0447\u044c \u0445\u043e\u043b\u0438\u0432\u0430\u0440<\/s> \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u0445\u043e\u0441\u0442\u0430\u043c\u0438 (\u0445\u043e\u0441\u0442 &lt;&#8212;> \u0440\u043e\u0442\u0443\u0435\u0440) \u043f\u043e IPv6:<\/p>\n<ul>\n<li>\n<p>link-local &#8212; \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u043e \u0441\u0440\u0430\u0437\u0443, \u043d\u043e \u0431\u0435\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u043a\u0430\u043d\u0430\u043b\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f P2P \u043a\u0430\u043a \u043c\u044b \u044d\u0442\u043e \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u0432 IPv4 + \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043a \u0445\u043e\u0441\u0442\u0443 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u0438\u0441\u0438\u0442 \u0438\u043d\u043e\u0439 IPv6 \u0438\u043b\u0438 \u0441\u0435\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0442\u044c \u0445\u043e\u0441\u0442\u0430 \u043e\u0434\u043d\u0438\u043c \u0430\u0434\u0440\u0435\u0441\u043e\u043c \u043d\u0430\u0432\u0435\u0448\u0438\u0432\u0430\u0435\u043c \u043d\u0430 \u0440\u043e\u0442\u0443\u0440\u0435, \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043a\u0430\u043a \u0432 IPv4;<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043a \u0445\u043e\u0441\u0442\u0443 \u0447\u0435\u0440\u0435\u0437 link-local, \u043d\u0430 \u0445\u043e\u0441\u0442\u0435 \u0432 \u0434\u0435\u0444\u043e\u043b\u0442 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0440\u043e\u0443\u0442\u0435\u0440\u0430, \u0442\u0430\u043a \u0436\u0435 \u0447\u0435\u0440\u0435\u0437 link-local;<\/p>\n<\/li>\n<li>\n<p>\u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0443\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0434\u0435\u0444\u043e\u043b\u0442\u043e\u043c \u0438\u0437 \u0445\u043e\u0441\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 fe80::1.<\/p>\n<\/li>\n<\/ul>\n<h2>\u0426\u0435\u043b\u044c \u0437\u0430\u0434\u0430\u0447\u0438<\/h2>\n<p>\u041f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c IPv6-\u0430\u0434\u0440\u0435\u0441 \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 (\u0438\u043b\u0438 \u0442\u044b\u0441\u044f\u0447\u0438 \u0438\u0445), \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0430 \u043d\u0435\u0439 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f IPv6-\u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c \u0441 \u043c\u0438\u0440\u043e\u043c. \u041c\u0438\u043d\u0438\u043c\u0443 \u0440\u0443\u0447\u043d\u044b\u0445 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0439.<\/p>\n<p>\u041e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c IPv6 \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u0441 \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u043c:<\/p>\n<ul>\n<li>\n<p>\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c OSPFv3 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440 IPv6-\u0441\u0435\u0442\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c OSPFv3 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u043e\u0442 \u0440\u043e\u0443\u0442\u0435\u0440\u0430 default gateway;<\/p>\n<\/li>\n<li>\n<p>\u0432\u0441\u044f \u043c\u0430\u0433\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0430 \u0437\u0430 \u0441\u0447\u0435\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 link-local.<\/p>\n<\/li>\n<\/ul>\n<h2>\u0422\u043e\u043f\u043e\u043b\u043e\u0433\u0438\u044f:<\/h2>\n<pre><code>[ Virtual Machine ] -> [ Router ] -> [ Internet ]<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430 &#8212; Debian\/Linux<\/p>\n<\/li>\n<li>\n<p>Router &#8212; Extreme Networks Blackdiamond 8810<\/p>\n<\/li>\n<\/ul>\n<h2>Router<\/h2>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c OSPFv3:<\/p>\n<pre><code>enable ospfv3<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043e\u0431\u043b\u0430\u0441\u0442\u044c 0.0.0.80:<\/p>\n<pre><code>create ospfv3 domain OSPF-Default area 0.0.0.80<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u043b\u0430\u043d my_vlan \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u043e\u0431\u043b\u0430\u0441\u0442\u044c:<\/p>\n<pre><code>configure ospfv3 add vlan my_vlan instance-id 0 area 0.0.0.80 link-type broadcast<\/code><\/pre>\n<p>\u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432\u0438\u0434\u0438\u043c \u0447\u0442\u043e \u0440\u043e\u0443\u0442\u0435\u0440 \u043d\u0430\u0447\u0430\u043b \u043f\u043e\u0441\u044b\u043b\u0430\u0442\u044c ospfv3 hello:<\/p>\n<pre><code class=\"php\">root@linux:\/# tcpdump -i any -c 100 -n proto ospf tcpdump: data link type LINUX_SLL2 tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes 14:40:20.006853 eth0  M   IP6 fe80::1 > ff02::5: OSPFv3, Hello, length 36 14:40:30.018608 eth0  M   IP6 fe80::1 > ff02::5: OSPFv3, Hello, length 36 14:40:40.031349 eth0  M   IP6 fe80::1 > ff02::5: OSPFv3, Hello, length 36 14:40:50.043212 eth0  M   IP6 fe80::1 > ff02::5: OSPFv3, Hello, length 36 14:41:00.056252 eth0  M   IP6 fe80::1 > ff02::5: OSPFv3, Hello, length 36<\/code><\/pre>\n<h2>Virtual Machine (Linux VM)<\/h2>\n<h3>IPv6 \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c<\/h3>\n<p>\u0422\u0443\u0442 \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0430:<\/p>\n<ul>\n<li>\n<p>\u043d\u0430\u0432\u0435\u0448\u0430\u0442\u044c IPv6 \u043d\u0430 loopback-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0441 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c\u044e (eth0).<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u043e \u0432\u043a\u0443\u0441\u0443 \u0438 \u043e\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0445 \u0437\u0430\u0434\u0430\u0447. \u0422\u0430\u043c \u0436\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c &#171;default gateway&#187;, \u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c  \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430 lo, \u0442\u043e \u0442\u0430\u043a:<\/p>\n<pre><code>iface lo inet6 static         address 2001:db8::1\/64         up ip -6 route add default via fe80::1 dev eth0<\/code><\/pre>\n<p>\u041d\u0430 &#171;\u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439&#187; \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (eth0):<\/p>\n<pre><code>iface eth0 inet6 static        address 2001:db8::1\/64        gateway fe80::1<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0430\u0432\u043a\u0438 \/etc\/network\/interfaces, \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0443 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u043f\u0440\u0430\u0432\u043a\u0438 \u0438\/\u0438\u043b\u0438 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u044d\u0442\u043e (eth0):<\/p>\n<pre><code class=\"bash\">ip -6 addr add 2001:db8::1\/64 dev eth0 ip -6 route add default via fe80::1 dev eth0<\/code><\/pre>\n<h3>\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f<\/h3>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 FRR:<\/p>\n<pre><code class=\"bash\">apt update &amp;&amp; apt install frr -y<\/code><\/pre>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441 OSPFv3 (\u0441\u0435\u0440\u0432\u0438\u0441 FRR ospf6d):<\/p>\n<pre><code class=\"bash\">sed -i s\/ospf6d=no\/ospf6d=yes\/g \/etc\/frr\/daemons<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441 \u201c\u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u201d \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c:<\/p>\n<pre><code class=\"bash\">IFACE=$(ip route | sed '1p;d' | grep ^default | awk '{print $5}');<\/code><\/pre>\n<p>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e:<\/p>\n<pre><code class=\"php\">vtysh &lt;&lt; EOF configure terminal ! router ospf6  ospf6 router-id 0.0.0.80  area 0.0.0.80 import-list import  area 0.0.0.80 export-list export  interface $IFACE area 0.0.0.80  interface lo area 0.0.0.80 ! ipv6 access-list export permit any ipv6 access-list import permit fe80::\/64 ipv6 access-list import deny any ! end end write memory EOF<\/code><\/pre>\n<p>\u0422\u0443\u0442 \u0432\u0441\u0451 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e: \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043e\u0431\u043b\u0430\u0441\u0442\u044c, \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043b\u0438 \u043a \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u043c, \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043b\u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u0430.<\/p>\n<h2>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430<\/h2>\n<h3>\u041d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435<\/h3>\n<p>\u041c\u0430\u0440\u0448\u0440\u0443\u0442\u044b, \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0438\u0435 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c OSPFv3:<\/p>\n<pre><code class=\"php\">BD-8810 # show iproute ipv6 origin ospfv3 Ori Destination                                   Mtr  Flags         Duration     Gateway                                       Interface #oa 2001:db8::\/64                                 50   UG-D---um--f- 0d:1h:0m:36s      fe80::8414:12ff:fe44:5225                     my_vlan <\/code><\/pre>\n<p>\u041c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u0432\u043e \u0432\u043b\u0430\u043d\u0435 my_vlan:<\/p>\n<pre><code class=\"php\">BD-8810 # show iproute ipv6 my_vlan Ori Destination                                   Mtr  Flags         Duration     Gateway                                       Interface #oa 2001:db8::\/64                                 50   UG-D---um--f- 0d:1h:2m:54s      fe80::8414:12ff:fe44:5225                     my_vlan #d  fe80::%my_vlan\/64                                1    U------um---- 0d:18h:29m:47s      fe80::1                                       my_vlan #d  fe80::%my_vlan\/64                                1    U------um---- 33d:18h:52m:51s      fe80::204:96ff:fe83:b9d5                      my_vlan <\/code><\/pre>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 LSDB (Link State Database) \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code class=\"php\">show ospfv3 lsdb<\/code><\/pre>\n<h3>\u041d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435<\/h3>\n<p>\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0441\u043e\u0441\u0435\u0434\u044f\u0445, \u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441 \u0442\u043e \u0441 \u043e\u043f\u0446\u0438\u0435\u0439 detail:<\/p>\n<pre><code class=\"php\">linux# show ipv6 ospf6 neighbor Neighbor ID     Pri    DeadTime    State\/IfState         Duration I\/F[State] 1.2.3.4           1    00:00:32     Full\/DR              01:22:48 eth0[BDR]<\/code><\/pre>\n<p>\u041c\u0430\u0440\u0448\u0440\u0443\u0442\u044b, \u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441 \u0442\u043e \u0441 \u043e\u043f\u0446\u0438\u0435\u0439 detail:<\/p>\n<pre><code>linux# show ipv6 ospf6 route *N IA 2001:db8::\/64            ::                            lo 01:31:15<\/code><\/pre>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 LSDB (Link State Database) \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code>show ipv6 ospf6 database<\/code><\/pre>\n<h2>Debug<\/h2>\n<p>\u0412 FRR \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0430 \u043e\u0442\u043b\u0430\u0434\u043a\u0430, \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 FRR \u0442\u0430\u043a:<\/p>\n<pre><code>log file \/var\/log\/frr\/debug.log debug ospf6 message all debug ospf6 neighbor state<\/code><\/pre>\n<p>FRR Debugging: <a href=\"http:\/\/docs.frrouting.org\/en\/latest\/ospf6d.html#ospfv3-debugging\" rel=\"noopener noreferrer nofollow\">http:\/\/docs.frrouting.org\/en\/latest\/ospf6d.html#ospfv3-debugging<\/a><\/p>\n<h2>\u0427\u0442\u043e \u0437\u0430 fe80::1?<\/h2>\n<p>\u0412\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0434\u0430\u0442\u0430 \u0446\u0435\u043d\u0442\u0440\u0430\u0445 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445 (\u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 \u0438 \u043f\u0440.) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u0438 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 link-local \u0430\u0434\u0440\u0435\u0441 fe80::1\/64 \u043d\u0430 \u043b\u0438\u043d\u043a\u0430\u0445 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e \u0438 \u0443\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043e, \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<h2>\u0413\u0434\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 default gateway (router->vm)?<\/h2>\n<p>\u041d\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c \u043c\u043d\u043e\u0439 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 Extreme Networks Blackdiamond 8810, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u044d\u0442\u043e \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0432 OSPFv3. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0441\u0432\u043e\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0442\u0430\u043a \u0438 \u043d\u0435 \u0440\u0435\u0448\u0438\u043b, \u043f\u043e\u0442\u043e\u043c\u0443-\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0440\u043e\u0443\u0442\u0435\u0440 \u0438\u043b\u0438 \u0442\u043e\u0447\u043a\u0443 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u0446\u0438\u0438 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435, \u0443\u043c\u0435\u044e\u0449\u0435\u0433\u043e \u044d\u0442\u043e.<\/p>\n<p>\u0418\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u043c\u0435\u0435\u043c \u0445\u0430\u043a \u0441 fe80::1<\/p>\n<p>\u041d\u043e \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u0434\u0440\u0443\u0433\u043e\u043c \u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<p>Extreme Networks:<\/p>\n<pre><code>enable ospfv3 originate-default always<\/code><\/pre>\n<p>Cisco:<\/p>\n<pre><code>default-information originate<\/code><\/pre>\n<p>Cisco man: <a href=\"https:\/\/www.cisco.com\/c\/en\/us\/support\/docs\/ip\/open-shortest-path-first-ospf\/47868-ospfdb9.html\" rel=\"noopener noreferrer nofollow\">https:\/\/www.cisco.com\/c\/en\/us\/support\/docs\/ip\/open-shortest-path-first-ospf\/47868-ospfdb9.html<\/a><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/713228\/\"> https:\/\/habr.com\/ru\/post\/713228\/<\/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>OSPFv3 &#8212; \u044d\u0442\u043e \u0432\u0435\u0440\u0441\u0438\u044f OSPF \u0434\u043b\u044f IPv6. \u0415\u0433\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c OSPFv2, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u043c \u0432 \u0441\u0435\u0442\u044f\u0445 IPv4.<\/p>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 <s>\u0440\u0430\u0437\u0436\u0435\u0447\u044c \u0445\u043e\u043b\u0438\u0432\u0430\u0440<\/s> \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u0445\u043e\u0441\u0442\u0430\u043c\u0438 (\u0445\u043e\u0441\u0442 &lt;&#8212;> \u0440\u043e\u0442\u0443\u0435\u0440) \u043f\u043e IPv6:<\/p>\n<ul>\n<li>\n<p>link-local &#8212; \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u043e \u0441\u0440\u0430\u0437\u0443, \u043d\u043e \u0431\u0435\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u043a\u0430\u043d\u0430\u043b\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f P2P \u043a\u0430\u043a \u043c\u044b \u044d\u0442\u043e \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u0432 IPv4 + \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043a \u0445\u043e\u0441\u0442\u0443 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u0438\u0441\u0438\u0442 \u0438\u043d\u043e\u0439 IPv6 \u0438\u043b\u0438 \u0441\u0435\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0442\u044c \u0445\u043e\u0441\u0442\u0430 \u043e\u0434\u043d\u0438\u043c \u0430\u0434\u0440\u0435\u0441\u043e\u043c \u043d\u0430\u0432\u0435\u0448\u0438\u0432\u0430\u0435\u043c \u043d\u0430 \u0440\u043e\u0442\u0443\u0440\u0435, \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043a\u0430\u043a \u0432 IPv4;<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043a \u0445\u043e\u0441\u0442\u0443 \u0447\u0435\u0440\u0435\u0437 link-local, \u043d\u0430 \u0445\u043e\u0441\u0442\u0435 \u0432 \u0434\u0435\u0444\u043e\u043b\u0442 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0440\u043e\u0443\u0442\u0435\u0440\u0430, \u0442\u0430\u043a \u0436\u0435 \u0447\u0435\u0440\u0435\u0437 link-local;<\/p>\n<\/li>\n<li>\n<p>\u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0443\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0434\u0435\u0444\u043e\u043b\u0442\u043e\u043c \u0438\u0437 \u0445\u043e\u0441\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 fe80::1.<\/p>\n<\/li>\n<\/ul>\n<h2>\u0426\u0435\u043b\u044c \u0437\u0430\u0434\u0430\u0447\u0438<\/h2>\n<p>\u041f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c IPv6-\u0430\u0434\u0440\u0435\u0441 \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 (\u0438\u043b\u0438 \u0442\u044b\u0441\u044f\u0447\u0438 \u0438\u0445), \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0430 \u043d\u0435\u0439 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f IPv6-\u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c \u0441 \u043c\u0438\u0440\u043e\u043c. \u041c\u0438\u043d\u0438\u043c\u0443 \u0440\u0443\u0447\u043d\u044b\u0445 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0439.<\/p>\n<p>\u041e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c IPv6 \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u0441 \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u043c:<\/p>\n<ul>\n<li>\n<p>\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c OSPFv3 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440 IPv6-\u0441\u0435\u0442\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c OSPFv3 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u043e\u0442 \u0440\u043e\u0443\u0442\u0435\u0440\u0430 default gateway;<\/p>\n<\/li>\n<li>\n<p>\u0432\u0441\u044f \u043c\u0430\u0433\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0430 \u0437\u0430 \u0441\u0447\u0435\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 link-local.<\/p>\n<\/li>\n<\/ul>\n<h2>\u0422\u043e\u043f\u043e\u043b\u043e\u0433\u0438\u044f:<\/h2>\n<pre><code>[ Virtual Machine ] -> [ Router ] -> [ Internet ]<\/code><\/pre>\n<ul>\n<li>\n<p>\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430 &#8212; Debian\/Linux<\/p>\n<\/li>\n<li>\n<p>Router &#8212; Extreme Networks Blackdiamond 8810<\/p>\n<\/li>\n<\/ul>\n<h2>Router<\/h2>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c OSPFv3:<\/p>\n<pre><code>enable ospfv3<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043e\u0431\u043b\u0430\u0441\u0442\u044c 0.0.0.80:<\/p>\n<pre><code>create ospfv3 domain OSPF-Default area 0.0.0.80<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u043b\u0430\u043d my_vlan \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u043e\u0431\u043b\u0430\u0441\u0442\u044c:<\/p>\n<pre><code>configure ospfv3 add vlan my_vlan instance-id 0 area 0.0.0.80 link-type broadcast<\/code><\/pre>\n<p>\u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432\u0438\u0434\u0438\u043c \u0447\u0442\u043e \u0440\u043e\u0443\u0442\u0435\u0440 \u043d\u0430\u0447\u0430\u043b \u043f\u043e\u0441\u044b\u043b\u0430\u0442\u044c ospfv3 hello:<\/p>\n<pre><code class=\"php\">root@linux:\/# tcpdump -i any -c 100 -n proto ospf tcpdump: data link type LINUX_SLL2 tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes 14:40:20.006853 eth0  M   IP6 fe80::1 > ff02::5: OSPFv3, Hello, length 36 14:40:30.018608 eth0  M   IP6 fe80::1 > ff02::5: OSPFv3, Hello, length 36 14:40:40.031349 eth0  M   IP6 fe80::1 > ff02::5: OSPFv3, Hello, length 36 14:40:50.043212 eth0  M   IP6 fe80::1 > ff02::5: OSPFv3, Hello, length 36 14:41:00.056252 eth0  M   IP6 fe80::1 > ff02::5: OSPFv3, Hello, length 36<\/code><\/pre>\n<h2>Virtual Machine (Linux VM)<\/h2>\n<h3>IPv6 \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c<\/h3>\n<p>\u0422\u0443\u0442 \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0430:<\/p>\n<ul>\n<li>\n<p>\u043d\u0430\u0432\u0435\u0448\u0430\u0442\u044c IPv6 \u043d\u0430 loopback-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0441 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u044c\u044e (eth0).<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u043e \u0432\u043a\u0443\u0441\u0443 \u0438 \u043e\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0445 \u0437\u0430\u0434\u0430\u0447. \u0422\u0430\u043c \u0436\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c &#171;default gateway&#187;, \u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c  \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430 lo, \u0442\u043e \u0442\u0430\u043a:<\/p>\n<pre><code>iface lo inet6 static         address 2001:db8::1\/64         up ip -6 route add default via fe80::1 dev eth0<\/code><\/pre>\n<p>\u041d\u0430 &#171;\u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439&#187; \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 (eth0):<\/p>\n<pre><code>iface eth0 inet6 static        address 2001:db8::1\/64        gateway fe80::1<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0430\u0432\u043a\u0438 \/etc\/network\/interfaces, \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0443 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u043f\u0440\u0430\u0432\u043a\u0438 \u0438\/\u0438\u043b\u0438 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u044d\u0442\u043e (eth0):<\/p>\n<pre><code class=\"bash\">ip -6 addr add 2001:db8::1\/64 dev eth0 ip -6 route add default via fe80::1 dev eth0<\/code><\/pre>\n<h3>\u0414\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f<\/h3>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 FRR:<\/p>\n<pre><code class=\"bash\">apt update &amp;&amp; apt install frr -y<\/code><\/pre>\n<p>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441 OSPFv3 (\u0441\u0435\u0440\u0432\u0438\u0441 FRR ospf6d):<\/p>\n<pre><code class=\"bash\">sed -i s\/ospf6d=no\/ospf6d=yes\/g \/etc\/frr\/daemons<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441 \u201c\u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u201d \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c:<\/p>\n<pre><code class=\"bash\">IFACE=$(ip route | sed '1p;d' | grep ^default | awk '{print $5}');<\/code><\/pre>\n<p>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e:<\/p>\n<pre><code class=\"php\">vtysh &lt;&lt; EOF configure terminal ! router ospf6  ospf6 router-id 0.0.0.80  area 0.0.0.80 import-list import  area 0.0.0.80 export-list export  interface $IFACE area 0.0.0.80  interface lo area 0.0.0.80 ! ipv6 access-list export permit any ipv6 access-list import permit fe80::\/64 ipv6 access-list import deny any ! end end write memory EOF<\/code><\/pre>\n<p>\u0422\u0443\u0442 \u0432\u0441\u0451 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e: \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043e\u0431\u043b\u0430\u0441\u0442\u044c, \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043b\u0438 \u043a \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u043c, \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043b\u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u0430.<\/p>\n<h2>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430<\/h2>\n<h3>\u041d\u0430 \u0440\u043e\u0443\u0442\u0435\u0440\u0435<\/h3>\n<p>\u041c\u0430\u0440\u0448\u0440\u0443\u0442\u044b, \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0438\u0435 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c OSPFv3:<\/p>\n<pre><code class=\"php\">BD-8810 # show iproute ipv6 origin ospfv3 Ori Destination                                   Mtr  Flags         Duration     Gateway                                       Interface #oa 2001:db8::\/64                                 50   UG-D---um--f- 0d:1h:0m:36s      fe80::8414:12ff:fe44:5225                     my_vlan <\/code><\/pre>\n<p>\u041c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u0432\u043e \u0432\u043b\u0430\u043d\u0435 my_vlan:<\/p>\n<pre><code class=\"php\">BD-8810 # show iproute ipv6 my_vlan Ori Destination                                   Mtr  Flags         Duration     Gateway                                       Interface #oa 2001:db8::\/64                                 50   UG-D---um--f- 0d:1h:2m:54s      fe80::8414:12ff:fe44:5225                     my_vlan #d  fe80::%my_vlan\/64                                1    U------um---- 0d:18h:29m:47s      fe80::1                                       my_vlan #d  fe80::%my_vlan\/64                                1    U------um---- 33d:18h:52m:51s      fe80::204:96ff:fe83:b9d5                      my_vlan <\/code><\/pre>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 LSDB (Link State Database) \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code class=\"php\">show ospfv3 lsdb<\/code><\/pre>\n<h3>\u041d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435<\/h3>\n<p>\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0441\u043e\u0441\u0435\u0434\u044f\u0445, \u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441 \u0442\u043e \u0441 \u043e\u043f\u0446\u0438\u0435\u0439 detail:<\/p>\n<pre><code class=\"php\">linux# show ipv6 ospf6 neighbor Neighbor ID     Pri    DeadTime    State\/IfState         Duration I\/F[State] 1.2.3.4           1    00:00:32     Full\/DR              01:22:48 eth0[BDR]<\/code><\/pre>\n<p>\u041c\u0430\u0440\u0448\u0440\u0443\u0442\u044b, \u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441 \u0442\u043e \u0441 \u043e\u043f\u0446\u0438\u0435\u0439 detail:<\/p>\n<pre><code>linux# show ipv6 ospf6 route *N IA 2001:db8::\/64            ::                            lo 01:31:15<\/code><\/pre>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 LSDB (Link State Database) \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code>show ipv6 ospf6 database<\/code><\/pre>\n<h2>Debug<\/h2>\n<p>\u0412 FRR \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0430 \u043e\u0442\u043b\u0430\u0434\u043a\u0430, \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 FRR \u0442\u0430\u043a:<\/p>\n<pre><code>log file \/var\/log\/frr\/debug.log debug ospf6 message all debug ospf6 neighbor state<\/code><\/pre>\n<p>FRR Debugging: <a href=\"http:\/\/docs.frrouting.org\/en\/latest\/ospf6d.html#ospfv3-debugging\" rel=\"noopener noreferrer nofollow\">http:\/\/docs.frrouting.org\/en\/latest\/ospf6d.html#ospfv3-debugging<\/a><\/p>\n<h2>\u0427\u0442\u043e \u0437\u0430 fe80::1?<\/h2>\n<p>\u0412\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0434\u0430\u0442\u0430 \u0446\u0435\u043d\u0442\u0440\u0430\u0445 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445 (\u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 \u0438 \u043f\u0440.) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u043d\u043e\u0441\u0442\u0438 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 link-local \u0430\u0434\u0440\u0435\u0441 fe80::1\/64 \u043d\u0430 \u043b\u0438\u043d\u043a\u0430\u0445 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043e\u043a. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e \u0438 \u0443\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043e, \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<h2>\u0413\u0434\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 default gateway (router->vm)?<\/h2>\n<p>\u041d\u0430 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c \u043c\u043d\u043e\u0439 \u0440\u043e\u0443\u0442\u0435\u0440\u0435 Extreme Networks Blackdiamond 8810, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u044d\u0442\u043e \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0432 OSPFv3. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0441\u0432\u043e\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0442\u0430\u043a \u0438 \u043d\u0435 \u0440\u0435\u0448\u0438\u043b, \u043f\u043e\u0442\u043e\u043c\u0443-\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u0440\u043e\u0443\u0442\u0435\u0440 \u0438\u043b\u0438 \u0442\u043e\u0447\u043a\u0443 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u0446\u0438\u0438 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435, \u0443\u043c\u0435\u044e\u0449\u0435\u0433\u043e \u044d\u0442\u043e.<\/p>\n<p>\u0418\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u043c\u0435\u0435\u043c \u0445\u0430\u043a \u0441 fe80::1<\/p>\n<p>\u041d\u043e \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u0434\u0440\u0443\u0433\u043e\u043c \u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<p>Extreme Networks:<\/p>\n<pre><code>enable ospfv3 originate-default always<\/code><\/pre>\n<p>Cisco:<\/p>\n<pre><code>default-information originate<\/code><\/pre>\n<p>Cisco man: <a href=\"https:\/\/www.cisco.com\/c\/en\/us\/support\/docs\/ip\/open-shortest-path-first-ospf\/47868-ospfdb9.html\" rel=\"noopener noreferrer nofollow\">https:\/\/www.cisco.com\/c\/en\/us\/support\/docs\/ip\/open-shortest-path-first-ospf\/47868-ospfdb9.html<\/a><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/713228\/\"> https:\/\/habr.com\/ru\/post\/713228\/<\/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-344584","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/344584","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=344584"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/344584\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=344584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=344584"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=344584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}