{"id":1678,"date":"2016-01-31T17:48:36","date_gmt":"2016-01-31T15:48:36","guid":{"rendered":"http:\/\/www.olografix.org\/frank\/wordpress\/?p=1678"},"modified":"2016-01-31T17:50:52","modified_gmt":"2016-01-31T15:50:52","slug":"un-piccolo-recap","status":"publish","type":"post","link":"https:\/\/olografix.sugodipesce.net\/frank\/wordpress\/?p=1678","title":{"rendered":"un piccolo recap"},"content":{"rendered":"<p>sull&#8217;ospf<\/p>\n<p><a href=\"http:\/\/www.olografix.org\/frank\/wordpress\/wp-content\/uploads\/nssa-stub.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-1679\" src=\"http:\/\/www.olografix.org\/frank\/wordpress\/wp-content\/uploads\/nssa-stub-300x112.png\" alt=\"nssa-stub\" width=\"300\" height=\"112\" srcset=\"https:\/\/olografix.sugodipesce.net\/frank\/wordpress\/wp-content\/uploads\/nssa-stub-300x112.png 300w, https:\/\/olografix.sugodipesce.net\/frank\/wordpress\/wp-content\/uploads\/nssa-stub.png 777w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><code>r-sopra#sh run<br \/>\nBuilding configuration...<br \/>\n..<br \/>\n..<br \/>\ninterface Ethernet0\/0<br \/>\nip address 192.168.106.4 255.255.255.192<br \/>\nfull-duplex<br \/>\n!<br \/>\ninterface Serial1\/0<br \/>\nip address 172.21.4.2 255.255.255.252<br \/>\nno fair-queue<br \/>\n..<br \/>\n..<br \/>\nrouter ospf 1<br \/>\nrouter-id 10.106.110.4<br \/>\nlog-adjacency-changes<br \/>\nnetwork 172.21.4.0 0.0.0.3 area 1<br \/>\nnetwork 192.168.106.0 0.0.0.63 area 0<\/code><\/p>\n<p><code>r-sotto#sh run<br \/>\nBuilding configuration...<br \/>\n..<br \/>\n..<br \/>\ninterface Serial1\/0<br \/>\nip address 172.21.4.1 255.255.255.252<br \/>\nclock rate 115200<br \/>\n!<br \/>\n..<br \/>\n..<br \/>\n!<br \/>\nrouter ospf 1<br \/>\nrouter-id 172.21.4.1<br \/>\nlog-adjacency-changes<br \/>\nnetwork 172.21.4.0 0.0.0.3 area 1<br \/>\n!<br \/>\n<\/code><\/p>\n<p>in questo modo, r-sotto si becca la rotta 192.168.106.0\/26 (inter-area):<\/p>\n<p><code>r-sotto#sh ip route<br \/>\nCodes: C - connected, S - static, R - RIP, M - mobile, B - BGP<br \/>\nD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area<br \/>\nN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2<br \/>\nE1 - OSPF external type 1, E2 - OSPF external type 2<br \/>\ni - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2<br \/>\nia - IS-IS inter area, * - candidate default, U - per-user static route<br \/>\no - ODR, P - periodic downloaded static route<\/code><\/p>\n<p><code>Gateway of last resort is not set<\/p>\n<p>192.168.106.0\/26 is subnetted, 1 subnets<br \/>\nO IA 192.168.106.0 [110\/791] via 172.21.4.2, 00:08:54, Serial1\/0<br \/>\n172.21.0.0\/30 is subnetted, 1 subnets<br \/>\nC 172.21.4.0 is directly connected, Serial1\/0<\/code><\/p>\n<p>se configuro l&#8217;area 1 stub, viene generata automaticamente la rotta di default:<\/p>\n<p><code>r-sopra(config)#router ospf 1<br \/>\nr-sopra(config-router)#area 1 stu<br \/>\nr-sopra(config-router)#area 1 stub<br \/>\nr-sopra(config-router)#<\/code><\/p>\n<p><code>r-sotto(config)#router ospf 1<br \/>\nr-sotto(config-router)#area 1 stu<br \/>\nr-sotto(config-router)#area 1 stub<br \/>\nr-sotto(config-router)#^Z<br \/>\nr-sotto#<\/code><\/p>\n<p><code>r-sotto#sh ip route<br \/>\nCodes: C - connected, S - static, R - RIP, M - mobile, B - BGP<br \/>\nD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area<br \/>\nN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2<br \/>\nE1 - OSPF external type 1, E2 - OSPF external type 2<br \/>\ni - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2<br \/>\nia - IS-IS inter area, * - candidate default, U - per-user static route<br \/>\no - ODR, P - periodic downloaded static route<\/p>\n<p>Gateway of last resort is 172.21.4.2 to network 0.0.0.0<\/p>\n<p>192.168.106.0\/26 is subnetted, 1 subnets<br \/>\nO IA 192.168.106.0 [110\/791] via 172.21.4.2, 00:00:00, Serial1\/0<br \/>\n172.21.0.0\/30 is subnetted, 1 subnets<br \/>\nC 172.21.4.0 is directly connected, Serial1\/0<br \/>\nO*IA 0.0.0.0\/0 [110\/782] via 172.21.4.2, 00:00:00, Serial1\/0<\/code><\/p>\n<p>se invece configuro l&#8217;area come NSSA, la rotta di default non viene automaticamente injectata:<\/p>\n<p><code>r-sopra(config-router)#no area 1 stub<br \/>\nr-sopra(config-router)#ara 1<br \/>\n*Mar 1 00:53:07.873: %OSPF-5-ADJCHG: Process 1, Nbr 172.21.4.1 on Serial1\/0 from FULL to DOWN, Neighbor Down: Adjacency forced to<br \/>\nr-sopra(config-router)#<br \/>\nr-sopra(config-router)#area 1 ns<br \/>\nr-sopra(config-router)#area 1 nssa<br \/>\nr-sopra(config-router)#<br \/>\n<\/code><br \/>\n<code>r-sotto(config-router)#no area 1 stub<br \/>\nr-sotto(config-router)#area 1 nssa<br \/>\nr-sotto(config-router)#<\/p>\n<p>r-sotto#sh ip route<br \/>\nCodes: C - connected, S - static, R - RIP, M - mobile, B - BGP<br \/>\nD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area<br \/>\nN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2<br \/>\nE1 - OSPF external type 1, E2 - OSPF external type 2<br \/>\ni - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2<br \/>\nia - IS-IS inter area, * - candidate default, U - per-user static route<br \/>\no - ODR, P - periodic downloaded static route<\/p>\n<p>Gateway of last resort is not set<\/p>\n<p>192.168.106.0\/26 is subnetted, 1 subnets<br \/>\nO IA 192.168.106.0 [110\/791] via 172.21.4.2, 00:00:13, Serial1\/0<br \/>\n172.21.0.0\/30 is subnetted, 1 subnets<br \/>\nC 172.21.4.0 is directly connected, Serial1\/0<br \/>\nr-sotto#<br \/>\n<\/code><\/p>\n<p>due scelte: o si fa (sempre sull&#8217;ABR) area 1 nssa no-summary:<\/p>\n<p><code>r-sopra(config-router)#area 1 nssa no-summary<br \/>\nr-sopra(config-router)#<\/code><\/p>\n<p>e viene generata una rotta di default inter-area:<\/p>\n<p><code>r-sotto#<br \/>\n*Mar 1 00:54:01.661: %SYS-5-CONFIG_I: Configured from console by console<br \/>\nr-sotto#sh ip route<br \/>\nCodes: C - connected, S - static, R - RIP, M - mobile, B - BGP<br \/>\nD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area<br \/>\nN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2<br \/>\nE1 - OSPF external type 1, E2 - OSPF external type 2<br \/>\ni - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2<br \/>\nia - IS-IS inter area, * - candidate default, U - per-user static route<br \/>\no - ODR, P - periodic downloaded static route<\/p>\n<p>Gateway of last resort is 172.21.4.2 to network 0.0.0.0<\/p>\n<p>172.21.0.0\/30 is subnetted, 1 subnets<br \/>\nC 172.21.4.0 is directly connected, Serial1\/0<br \/>\nO*IA 0.0.0.0\/0 [110\/782] via 172.21.4.2, 00:00:19, Serial1\/0<\/p>\n<p>r-sotto#sh ip ospf database<\/p>\n<p>OSPF Router with ID (172.21.4.1) (Process ID 1)<\/p>\n<p>Router Link States (Area 1)<\/p>\n<p>Link ID ADV Router Age Seq# Checksum Link count<br \/>\n10.106.110.4 10.106.110.4 109 0x80000011 0x005973 2<br \/>\n172.21.4.1 172.21.4.1 109 0x80000010 0x00B43D 2<\/p>\n<p>Summary Net Link States (Area 1)<\/p>\n<p>Link ID ADV Router Age Seq# Checksum<br \/>\n0.0.0.0 10.106.110.4 48 0x80000001 0x006EE0<\/code><\/p>\n<p>oppure si fa area 1 nssa default-information-originate, e si genera una LSA di tipo 7, rotta esterna:<\/p>\n<p><code>r-sotto#sh ip route<br \/>\nCodes: C - connected, S - static, R - RIP, M - mobile, B - BGP<br \/>\nD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area<br \/>\nN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2<br \/>\nE1 - OSPF external type 1, E2 - OSPF external type 2<br \/>\ni - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2<br \/>\nia - IS-IS inter area, * - candidate default, U - per-user static route<br \/>\no - ODR, P - periodic downloaded static route<\/p>\n<p>Gateway of last resort is 172.21.4.2 to network 0.0.0.0<\/p>\n<p>192.168.106.0\/26 is subnetted, 1 subnets<br \/>\nO IA 192.168.106.0 [110\/791] via 172.21.4.2, 00:00:27, Serial1\/0<br \/>\n172.21.0.0\/30 is subnetted, 1 subnets<br \/>\nC 172.21.4.0 is directly connected, Serial1\/0<br \/>\nO*N2 0.0.0.0\/0 [110\/1] via 172.21.4.2, 00:00:22, Serial1\/0<\/p>\n<p>r-sotto#sh ip ospf database<\/p>\n<p>OSPF Router with ID (172.21.4.1) (Process ID 1)<\/p>\n<p>Router Link States (Area 1)<\/p>\n<p>Link ID ADV Router Age Seq# Checksum Link count<br \/>\n10.106.110.4 10.106.110.4 195 0x80000011 0x005973 2<br \/>\n172.21.4.1 172.21.4.1 195 0x80000010 0x00B43D 2<\/p>\n<p>Summary Net Link States (Area 1)<\/p>\n<p>Link ID ADV Router Age Seq# Checksum<br \/>\n192.168.106.0 10.106.110.4 39 0x80000001 0x0009A8<\/p>\n<p>Type-7 AS External Link States (Area 1)<\/p>\n<p>Link ID ADV Router Age Seq# Checksum Tag<br \/>\n0.0.0.0 10.106.110.4 35 0x80000001 0x00FA08 0<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>sull&#8217;ospf r-sopra#sh run Building configuration&#8230; .. .. interface Ethernet0\/0 ip address 192.168.106.4 255.255.255.192 full-duplex ! interface Serial1\/0 ip address 172.21.4.2 255.255.255.252 no fair-queue .. .. router ospf 1 router-id 10.106.110.4 log-adjacency-changes network 172.21.4.0 0.0.0.3 area 1 network 192.168.106.0 0.0.0.63 area 0 r-sotto#sh run Building configuration&#8230; .. .. interface Serial1\/0 ip address 172.21.4.1 255.255.255.252 clock rate [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-1678","post","type-post","status-publish","format-standard","hentry","category-tmrc"],"_links":{"self":[{"href":"https:\/\/olografix.sugodipesce.net\/frank\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/olografix.sugodipesce.net\/frank\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/olografix.sugodipesce.net\/frank\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/olografix.sugodipesce.net\/frank\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/olografix.sugodipesce.net\/frank\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1678"}],"version-history":[{"count":6,"href":"https:\/\/olografix.sugodipesce.net\/frank\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1678\/revisions"}],"predecessor-version":[{"id":1685,"href":"https:\/\/olografix.sugodipesce.net\/frank\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1678\/revisions\/1685"}],"wp:attachment":[{"href":"https:\/\/olografix.sugodipesce.net\/frank\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/olografix.sugodipesce.net\/frank\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/olografix.sugodipesce.net\/frank\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}