{"id":2193,"date":"2017-04-22T19:51:44","date_gmt":"2017-04-22T19:51:44","guid":{"rendered":"https:\/\/tst-amo.pp.ua\/blog\/?p=2193"},"modified":"2017-04-23T19:07:50","modified_gmt":"2017-04-23T19:07:50","slug":"ospf-%d0%b1%d0%b0%d0%b7%d0%be%d0%b2%d0%b0%d1%8f-%d0%bd%d0%b0%d1%81%d1%82%d1%80%d0%be%d0%b9%d0%ba%d0%b0-%d0%bc%d1%83%d0%bb%d1%8c%d1%82%d0%b8%d0%b7%d0%be%d0%bd%d0%bd%d0%be%d0%b9-%d1%81%d1%82%d1%80","status":"publish","type":"post","link":"https:\/\/tst-amo.net.ua\/blog\/?p=2193","title":{"rendered":"OSPF &#8211; \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043c\u0443\u043b\u044c\u0442\u0438\u0437\u043e\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<pre>Router(config)#router ospf 1\r\nRouter(config-router)#network 192.168.1.0 0.0.0.255 area 0\r\nRouter(config-router)#network 10.0.1.0 0.0.0.255 area 0<\/pre>\n<pre>Router(config)#router ospf 1\r\nRouter(config-router)#network 192.168.3.0 0.0.0.255 area 0\r\nRouter(config-router)#network 10.0.1.0 0.0.0.255 area 0<\/pre>\n<pre>Router(config)#router ospf 1\r\nRouter(config-router)#network 192.168.2.0 0.0.0.255 area 0\r\nRouter(config-router)#network 10.0.1.0 0.0.0.255 area 0<\/pre>\n<p><em>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 ABR (\u043f\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0433\u043e) \u0440\u043e\u0443\u0442\u0435\u0440\u0430<\/em><\/p>\n<pre>ABR(config)#router ospf 1\r\nABR(config-router)#netw\r\nABR(config-router)#network 10.0.1.0 0.0.0.255 area 0\r\nABR(config-router)#\r\n00:31:26: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.2.1 on GigabitEthernet0\/0 from LOADING to FULL, Loading Done\r\n00:31:26: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.3.1 on GigabitEthernet0\/0 from LOADING to FULL, Loading Done\r\n\r\nABR(config-router)#network 10.0.2.0 0.0.0.255 area 1<\/pre>\n<p><em>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c DR \u0440\u043e\u0443\u0442\u0435\u0440<\/em><\/p>\n<pre>Router#sh ip ospf nei\r\n\r\nNeighbor ID Pri State Dead Time Address Interface\r\n192.168.1.1 1 FULL\/DROTHER 00:00:32 10.0.1.1 GigabitEthernet0\/0\r\n192.168.3.1 1 FULL\/DR 00:00:31 10.0.1.3 GigabitEthernet0\/0\r\n10.0.2.1 1 FULL\/DROTHER 00:00:38 10.0.1.4 GigabitEthernet0\/0\r\nRouter#<\/pre>\n<p><em>\u041d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442<\/em><\/p>\n<pre>ABR(config-if)#ip ospf priority 100\r\nABR(config-if)#int g1\/0\r\nABR(config-if)#ip ospf priority 100<\/pre>\n<p><em>\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c OSPF<\/em><\/p>\n<pre>ABR#clear ip ospf process \r\nReset ALL OSPF processes? [no]: y<\/pre>\n<p>\u042d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u0432\u0441\u0435\u0445 \u0440\u043e\u0443\u0442\u0435\u0440\u0430\u0445.<\/p>\n<p>\u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c<\/p>\n<pre>Router#sh ip ospf nei\r\nNeighbor ID Pri State Dead Time Address Interface\r\n192.168.1.1 1 FULL\/DROTHER 00:00:33 10.0.1.1 GigabitEthernet0\/0\r\n192.168.3.1 1 FULL\/DROTHER 00:00:32 10.0.1.3 GigabitEthernet0\/0\r\n10.0.2.1 100 FULL\/DR 00:00:39 10.0.1.4 GigabitEthernet0\/0<\/pre>\n<pre>Router#sh ip rou\r\nCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP\r\n D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area\r\n N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2\r\n E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP\r\n i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area\r\n * - candidate default, U - per-user static route, o - ODR\r\n P - periodic downloaded static route\r\n\r\nGateway of last resort is not set\r\n\r\n10.0.0.0\/24 is subnetted, 2 subnets\r\nC 10.0.1.0 is directly connected, GigabitEthernet0\/0\r\nO IA 10.0.2.0 [110\/2] via 10.0.1.4, 00:04:24, GigabitEthernet0\/0\r\n 172.20.0.0\/24 is subnetted, 3 subnets\r\nO IA 172.20.1.0 [110\/3] via 10.0.1.4, 00:04:24, GigabitEthernet0\/0\r\nO IA 172.20.2.0 [110\/3] via 10.0.1.4, 00:04:24, GigabitEthernet0\/0\r\nO IA 172.20.3.0 [110\/3] via 10.0.1.4, 00:04:24, GigabitEthernet0\/0\r\nO 192.168.1.0\/24 [110\/2] via 10.0.1.1, 00:04:14, GigabitEthernet0\/0\r\nC 192.168.2.0\/24 is directly connected, GigabitEthernet2\/0\r\nO 192.168.3.0\/24 [110\/2] via 10.0.1.3, 00:56:34, GigabitEthernet0\/0\r\n\r\n* IA \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b OSPF \u0437\u0430\u0440\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u0440\u0435\u0433\u0438\u043e\u043d\u0435<\/pre>\n<pre>Router#sh ip ospf nei\r\n\r\nNeighbor ID Pri State Dead Time Address Interface\r\n10.0.2.1 100 FULL\/DR 00:00:31 10.0.1.4 GigabitEthernet0\/0\r\n192.168.3.1 1 FULL\/DROTHER 00:00:34 10.0.1.3 GigabitEthernet0\/0\r\n192.168.1.1 1 FULL\/DROTHER 00:00:34 10.0.1.1 GigabitEthernet0\/0\r\nRouter#<\/pre>\n<p><em>Neighbor ID<\/em> &#8211; 32-\u0445 \u0431\u0438\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435, \u0440\u043e\u0443\u0442\u0435\u0440 \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0441\u0430\u043c, \u0432\u0438\u0431\u0438\u0440\u0430\u044f <em>\u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u0439 IP-\u0430\u0434\u0440\u0435\u0441\u0441 \u0438\u0437 \u0441\u0432\u043e\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432<\/em>.<\/p>\n<p>\u042d\u0442\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c. \u0425\u043e\u0440\u043e\u0448\u0438\u043c \u0442\u043e\u043d\u043e\u043c \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f <em>DR<\/em> \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c <em>\u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u0439 ID<\/em><\/p>\n<pre>ABR(config)#router ospf 1\r\nABR(config-router)#router-id 20.20.20.20\r\nABR(config-router)#Reload or use \"clear ip ospf process\" command, for this to take effect<\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u044f\u0442\u044c <em>\u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044c<\/em> OSPF<\/p>\n<pre>ABR#clear ip ospf process \r\nReset ALL OSPF processes? [no]: y\r\n\r\nRouter#sh ip ospf ne\r\nNeighbor ID Pri State Dead Time Address Interface\r\n5.5.5.5 1 2WAY\/DROTHER 00:00:39 10.0.2.3 GigabitEthernet0\/0\r\n20.20.20.20 100 FULL\/DR 00:00:34 10.0.2.1 GigabitEthernet0\/0\r\n6.6.6.6 1 FULL\/BDR 00:00:31 10.0.2.2 GigabitEthernet0\/0\r\n\r\n* BDR - \u0437\u0430\u043f\u0430\u0441\u043d\u043e\u0439 DR\r\n** DROTHER - \u044d\u0442\u0438 \u043d\u0438 DR \u043d\u0438 BDR, \u0435\u0441\u043b\u0438 \u0443\u043f\u0430\u0434\u0443\u0442 DR &amp; BDR, \u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0443\u0442 \u0432\u044b\u0431\u043e\u0440\u044b\r\n*** FULL - \u043f\u043e\u043b\u043d\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\r\n*** 2WAY - \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0441\u0435\u0434\u0441\u043a\u0438\u0435 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f, \u0431\u0435\u0437 \u043e\u0431\u043c\u0435\u043d\u0430 LSA, \u044d\u0442\u0438 \u0440\u043e\u0443\u0442\u0435\u0440\u044b \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f LSA \u0442\u043e\u043b\u044c\u043a\u043e \u0441 DR \u0438 BDR<\/pre>\n<p><em>\u0415\u0441\u043b\u0438 \u0440\u043e\u0443\u0442\u0435\u0440\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442 <strong>0<\/strong> \u0442\u043e \u043e\u043d <strong>\u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u043d\u0438 DR \u043d\u0438 BDR<\/strong><\/em>.<\/p>\n<pre>Router#sh ip ospf database \r\n OSPF Router with ID (1.1.1.1) (Process ID 1)\r\n\r\n\r\nRouter Link States (Area 0)\r\n\r\nLink ID ADV Router Age Seq# Checksum Link count |\r\n20.20.20.20 20.20.20.20 1139 0x80000003 0x002073 1 |\r\n3.3.3.3 3.3.3.3 1139 0x80000004 0x006639 2 | -- LSA \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \r\n1.1.1.1 1.1.1.1 1134 0x80000004 0x00b8fa 2 |\r\n2.2.2.2 2.2.2.2 1134 0x80000004 0x008f1a 2 |\r\n\r\nNet Link States (Area 0)\r\nLink ID ADV Router Age Seq# Checksum |\r\n10.0.1.4 20.20.20.20 1134 0x80000003 0x00328d | -- LSA \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0442\u0438\u043f\u0430\r\n\r\nSummary Net Link States (Area 0)\r\nLink ID ADV Router Age Seq# Checksum\r\n10.0.2.0 20.20.20.20 1175 0x80000001 0x00a061 |\r\n10.0.3.0 20.20.20.20 1170 0x80000002 0x00946b |\r\n172.20.1.0 20.20.20.20 1124 0x80000003 0x007eca |\r\n172.20.3.0 20.20.20.20 1124 0x80000004 0x0066df |\r\n172.20.2.0 20.20.20.20 1124 0x80000005 0x006fd6 | -- LSA \u0442\u0440\u0435\u0442\u044c\u0435\u0433\u043e \u0442\u0438\u043f\u0430\r\n172.16.1.0 20.20.20.20 1119 0x80000006 0x00a8a1 |\r\n172.16.3.0 20.20.20.20 1119 0x80000007 0x0090b6 |\r\n172.16.2.0 20.20.20.20 1119 0x80000008 0x0099ad |\r\nRouter#<\/pre>\n<pre>Router#sh ip rout ospf 1\r\n 10.0.0.0\/24 is subnetted, 3 subnets\r\nO IA 10.0.2.0 [110\/2] via 10.0.1.4, 00:22:58, GigabitEthernet0\/0\r\nO IA 10.0.3.0 [110\/2] via 10.0.1.4, 00:22:58, GigabitEthernet0\/0\r\n 172.16.0.0\/24 is subnetted, 3 subnets\r\nO IA 172.16.1.0 [110\/3] via 10.0.1.4, 00:22:48, GigabitEthernet0\/0\r\nO IA 172.16.2.0 [110\/3] via 10.0.1.4, 00:22:48, GigabitEthernet0\/0\r\nO IA 172.16.3.0 [110\/3] via 10.0.1.4, 00:22:48, GigabitEthernet0\/0\r\n 172.20.0.0\/24 is subnetted, 3 subnets\r\nO IA 172.20.1.0 [110\/3] via 10.0.1.4, 00:22:58, GigabitEthernet0\/0 |\r\nO IA 172.20.2.0 [110\/3] via 10.0.1.4, 00:22:58, GigabitEthernet0\/0 | -- \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u043f\u043e LSA 3 \u0442\u0438\u043f\u0430 \r\nO IA 172.20.3.0 [110\/3] via 10.0.1.4, 00:22:58, GigabitEthernet0\/0 |\r\n\r\nO 192.168.2.0 [110\/2] via 10.0.1.2, 00:22:58, GigabitEthernet0\/0 |\r\nO 192.168.3.0 [110\/2] via 10.0.1.3, 00:22:58, GigabitEthernet0\/0 | -- \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430\u0445 \u0432 \u043d\u0430\u0448\u0435\u043c \u0440\u0435\u0433\u0438\u043e\u043d\u0435 \u043f\u043e LSA \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0442\u0438\u043f\u0430<\/pre>\n<p><em>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e LSA<\/em><\/p>\n<pre>Router#sh ip ospf database router\r\n\r\nOSPF Router with ID (1.1.1.1) (Process ID 1)\r\n\r\nRouter Link States (Area 0)\r\n\r\nLS age: 181\r\n Options: (No TOS-capability, DC)\r\n LS Type: Router Links\r\n Link State ID: 1.1.1.1\r\n Advertising Router: 1.1.1.1\r\n LS Seq Number: 80000005\r\n Checksum: 0xb6fb\r\n Length: 48\r\n Number of Links: 2\r\n\r\nLink connected to: a Transit Network\r\n (Link ID) Designated Router address: 10.0.1.4\r\n (Link Data) Router Interface address: 10.0.1.1\r\n Number of TOS metrics: 0\r\n TOS 0 Metrics: 1\r\n\r\nLink connected to: a Stub Network\r\n (Link ID) Network\/subnet number: 192.168.1.0\r\n (Link Data) Network Mask: 255.255.255.0\r\n Number of TOS metrics: 0\r\n TOS 0 Metrics: 1\r\n\r\nLS age: 187\r\n --More--<\/pre>\n<pre>Router#sh ip osp\r\n Routing Process \"ospf 1\" with ID 1.1.1.1\r\n Supports only single TOS(TOS0) routes\r\n Supports opaque LSA\r\n SPF schedule delay 5 secs, Hold time between two SPFs 10 secs\r\n Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs\r\n Number of external LSA 0. Checksum Sum 0x000000\r\n Number of opaque AS LSA 0. Checksum Sum 0x000000\r\n Number of DCbitless external and opaque AS LSA 0\r\n Number of DoNotAge external and opaque AS LSA 0\r\n Number of areas in this router is 1. 1 normal 0 stub 0 nssa\r\n External flood list length 0\r\n Area BACKBONE(0)\r\n Number of interfaces in this area is 2\r\n Area has no authentication\r\n SPF algorithm executed 17 times | -- \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0434\u0435\u043b\u0430\u043b\u0441\u044f \u043f\u0435\u0440\u0435\u0440\u0430\u0441\u0447\u0435\u0442\r\n Area ranges are\r\n Number of LSA 13. Checksum Sum 0x05c771\r\n Number of opaque link LSA 0. Checksum Sum 0x000000\r\n Number of DCbitless LSA 0\r\n Number of indication LSA 0\r\n Number of DoNotAge LSA 0\r\n Flood list length 0\r\n --More--<\/pre>\n<p>\u0418\u0437\u043c\u0435\u043d\u0438\u043c \u0441\u0445\u0435\u043c\u0443 \u0441\u0435\u0442\u0438, \u0447\u0442\u043e \u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0443<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <em>\u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430<\/em><\/p>\n<pre>ABR#sh ip ospf int f4\/0\r\nFastEthernet4\/0 is up, line protocol is up\r\nInternet address is 20.0.1.2\/24, Area 0\r\nProcess ID 1, Router ID 20.20.20.20, Network Type BROADCAST, Cost: 1 | -- <em>\u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c<\/em>\r\nTransmit Delay is 1 sec, State DR, Priority 100\r\nDesignated Router (ID) 20.20.20.20, Interface address 20.0.1.2\r\nBackup Designated Router (ID) 10.10.10.10, Interface address 20.0.1.1\r\nTimer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5\r\n   Hello due in 00:00:04\r\nIndex 2\/2, flood queue length 0\r\nNext 0x0(0)\/0x0(0)\r\nLast flood scan length is 1, maximum is 1\r\nLast flood scan time is 0 msec, maximum is 0 msec\r\nNeighbor Count is 1, Adjacent neighbor count is 1\r\n   Adjacent with neighbor 10.10.10.10 (Backup Designated Router)\r\nSuppress hello for 0 neighbor(s)<\/pre>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430<\/p>\n<pre>ABR#sh int f4\/0\r\nFastEthernet4\/0 is up, line protocol is up (connected)\r\nHardware is Lance, address is 0060.2f0a.8bed (bia 0060.2f0a.8bed)\r\nInternet address is 20.0.1.2\/24\r\nMTU 1500 bytes, <span style=\"text-decoration: underline;\">BW 100000 Kbit<\/span>, DLY 100 usec,  | -- <em>\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444.<\/em>\r\nreliability 255\/255, txload 1\/255, rxload 1\/255\r\nEncapsulation ARPA, loopback not set\r\nARP type: ARPA, ARP Timeout 04:00:00,\r\nLast input 00:00:08, output 00:00:05, output hang never\r\nLast clearing of \"show interface\" counters never\r\nInput queue: 0\/75\/0 (size\/max\/drops); Total output drops: 0\r\nQueueing strategy: fifo\r\nOutput queue :0\/40 (size\/max)\r\n5 minute input rate 54 bits\/sec, 0 packets\/sec\r\n5 minute output rate 54 bits\/sec, 0 packets\/sec\r\n760 packets input, 62204 bytes, 0 no buffer\r\nReceived 0 broadcasts, 0 runts, 0 giants, 0 throttles\r\n0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort\r\n0 input packets with dribble condition detected\r\n574 packets output, 46216 bytes, 0 underruns\r\n0 output errors, 0 collisions, 1 interface resets\r\n0 babbles, 0 late collision, 0 deferred\r\n0 lost carrier, 0 no carrier\r\n--More--<\/pre>\n<p>\u041c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c <em>\u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430<\/em> \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u043d \u0443\u0436\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u043e\u0443\u0442\u0435\u0440\u043e\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435<\/p>\n<pre>Router(config)#int f0\/0\r\nRouter(config-if)#ip ospf cost 10<\/pre>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <em>\u043c\u0435\u0442\u0440\u0438\u043a\u0443<\/em><\/p>\n<pre>Router#sh ip rout\r\nCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP\r\nD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area\r\nN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2\r\nE1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP\r\ni - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area\r\n* - candidate default, U - per-user static route, o - ODR\r\nP - periodic downloaded static route\r\nGateway of last resort is not set\r\n10.0.0.0\/24 is subnetted, 3 subnets\r\nC 10.0.1.0 is directly connected, FastEthernet0\/0\r\nO IA 10.0.2.0 [110\/2] via 20.0.1.2, 00:43:46, FastEthernet1\/0\r\nO IA 10.0.3.0 [110\/2] via 20.0.1.2, 00:43:46, FastEthernet1\/0\r\n20.0.0.0\/24 is subnetted, 2 subnets\r\nC 20.0.1.0 is directly connected, FastEthernet1\/0\r\nO 20.0.2.0 [110\/2] via 20.0.1.2, 00:27:01, FastEthernet1\/0\r\n[110\/2] via 10.0.1.5, 00:27:01, FastEthernet0\/0\r\n172.16.0.0\/24 is subnetted, 3 subnets\r\nO IA 172.16.1.0 [110\/<span style=\"text-decoration: underline;\">3<\/span>] via 20.0.1.2, 00:43:46, FastEthernet1\/0 \u00a0 \u00a0 | -- <em>\u043c\u0435\u0442\u0440\u0438\u043a\u0430<\/em>\r\nO IA 172.16.2.0 [110\/3] via 20.0.1.2, 00:43:46, FastEthernet1\/0\r\nO IA 172.16.3.0 [110\/3] via 20.0.1.2, 00:43:46, FastEthernet1\/0\r\n172.20.0.0\/24 is subnetted, 3 subnets\r\nO IA 172.20.1.0 [110\/3] via 20.0.1.2, 00:43:46, FastEthernet1\/0\r\nO IA 172.20.2.0 [110\/3] via 20.0.1.2, 00:43:46, FastEthernet1\/0\r\nO IA 172.20.3.0 [110\/3] via 20.0.1.2, 00:43:46, FastEthernet1\/0\r\nO 192.168.1.0\/24 [110\/2] via 10.0.1.1, 00:26:46, FastEthernet0\/0\r\nO 192.168.2.0\/24 [110\/2] via 10.0.1.2, 00:26:46, FastEthernet0\/0\r\nO 192.168.3.0\/24 [110\/2] via 10.0.1.3, 00:26:46, FastEthernet0\/0<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div class=\"pdfprnt-buttons pdfprnt-buttons-post pdfprnt-bottom-right\"><a href=\"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=wpv2posts2193&print=pdf\" class=\"pdfprnt-button pdfprnt-button-pdf\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/plugins\/pdf-print\/images\/pdf.png\" alt=\"image_pdf\" title=\"View PDF\" \/><\/a><a href=\"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=wpv2posts2193&print=print\" class=\"pdfprnt-button pdfprnt-button-print\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/tst-amo.net.ua\/blog\/wp-content\/plugins\/pdf-print\/images\/print.png\" alt=\"image_print\" title=\"Print Content\" \/><\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; &nbsp; Router(config)#router ospf 1 Router(config-router)#network 192.168.1.0 0.0.0.255 area 0 Router(config-router)#network 10.0.1.0 0.0.0.255 area 0 Router(config)#router ospf 1 Router(config-router)#network 192.168.3.0 0.0.0.255 area 0 Router(config-router)#network 10.0.1.0 0.0.0.255 area 0 Router(config)#router ospf 1 Router(config-router)#network 192.168.2.0 0.0.0.255 area 0 Router(config-router)#network 10.0.1.0 0.0.0.255 area 0 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 ABR (\u043f\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0433\u043e) \u0440\u043e\u0443\u0442\u0435\u0440\u0430 ABR(config)#router ospf 1 ABR(config-router)#netw ABR(config-router)#network 10.0.1.0 0.0.0.255 area 0 &#8230;<\/p>\n<p><a href=\"https:\/\/tst-amo.net.ua\/blog\/?p=2193\" class=\"more-link\">Continue reading &lsquo;OSPF &#8211; \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043c\u0443\u043b\u044c\u0442\u0438\u0437\u043e\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,66,68,59,22],"tags":[],"class_list":["post-2193","post","type-post","status-publish","format-standard","hentry","category-cisco","category-link-state-protocols","category-lsa","category-ospf","category-22"],"_links":{"self":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2193"}],"collection":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2193"}],"version-history":[{"count":5,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2193\/revisions"}],"predecessor-version":[{"id":2200,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2193\/revisions\/2200"}],"wp:attachment":[{"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tst-amo.net.ua\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}