{"id":535,"date":"2017-06-20T09:38:00","date_gmt":"2017-06-20T00:38:00","guid":{"rendered":"https:\/\/wp.zassoul.com\/?p=535"},"modified":"2017-06-20T09:38:00","modified_gmt":"2017-06-20T00:38:00","slug":"%e3%80%90%e3%83%a1%e3%83%a2%e3%80%91ospf%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8bdistribute-list%e3%81%ae%e6%89%b1%e3%81%84","status":"publish","type":"post","link":"https:\/\/wp.zassoul.com\/?p=535","title":{"rendered":"\u3010\u30e1\u30e2\u3011OSPF\u306b\u304a\u3051\u308bdistribute-list\u306e\u6271\u3044"},"content":{"rendered":"<p>\u4eca\u66f4\u3060\u3051\u3069OSPF\u3067\u306f\u7d4c\u8def\u5236\u5fa1\u306f\u540c\u4e00\u30a8\u30ea\u30a2\u5185\u3060\u3068\u53d7\u4fe1\u5074\u3067\u62d2\u5426\u3059\u308b\u3057\u304b\u3067\u304d\u306a\u3044\u306e\u306d\u3002<br \/>\u9001\u4fe1\u3067\u30d5\u30a3\u30eb\u30bf\u306f\u639b\u3051\u3089\u308c\u306a\u3044, \u9014\u4e2d\u306e\u30eb\u30fc\u30bf\u3067\u53d7\u4fe1\u62d2\u5426\u3057\u3066\u3082LSA\u3067\u30a2\u30c9\u30d0\u30bf\u30a4\u30ba\u3055\u308c\u308b\u304b\u3089\u305d\u306e\u5148\u306b\u306f\u4f1d\u642c\u3057\u3066\u3057\u307e\u3046\u3002\u3053\u306e\u3042\u305f\u308a\u7406\u89e3\u3067\u304d\u3066\u3044\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>\u30a8\u30ea\u30a2\u3092\u5206\u3051\u308b\u304b\u30d7\u30ed\u30c8\u30b3\u30eb\u5206\u3051\u308b\u304b\u306a\u3069\u3057\u3066\u518d\u914d\u4fe1\u3058\u3083\u306a\u3044\u3068\u7d30\u304b\u3044\u5236\u5fa1\u3063\u3066\u3067\u304d\u306a\u3044\u306e\u306d\u3002<\/p>\n<p>\u7c21\u5358\u306a\u69cb\u6210\u3067\u78ba\u8a8d\u3057\u305f\u3002<br \/>R1\u3068R3\u306f\u666e\u901a\u306bOSPF\u3067\u914d\u4fe1\u3002R2\u3067distribute-list\u3067192.168\u7cfb\u306e\u30eb\u30fc\u30c8\u3092\u53d7\u4fe1\u62d2\u5426\u3002<br \/>R2\u3067\u62d2\u5426\u3059\u308c\u3070\u305d\u306e\u5148\u3078\u3082\u30eb\u30fc\u30c8\u60c5\u5831\u306f\u6d41\u308c\u306a\u3044\u3060\u308d\u3046\u306a\u30fc\u306a\u3093\u3066\u5b89\u6613\u306b\u601d\u3063\u3066\u3044\u307e\u3057\u305f\u3002OSPF\u3068distribute-list\u306e\u3053\u3068\u7406\u89e3\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3055\u30fc\u305b\u3093\u3002<\/p>\n<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-left: auto; margin-right: auto; text-align: center;\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><a href=\"https:\/\/4.bp.blogspot.com\/-ZLLh-NB4Pqk\/WUhrkWBFXGI\/AAAAAAAAANs\/HDYfTFil9xwqnwMj2JgC9JttEuA7GdrbACLcBGAs\/s1600\/topology.PNG\" style=\"margin-left: auto; margin-right: auto;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" data-original-height=\"192\" data-original-width=\"545\" height=\"112\" src=\"https:\/\/4.bp.blogspot.com\/-ZLLh-NB4Pqk\/WUhrkWBFXGI\/AAAAAAAAANs\/HDYfTFil9xwqnwMj2JgC9JttEuA7GdrbACLcBGAs\/s320\/topology.PNG\" width=\"320\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">\u30eb\u30fc\u30bf3\u53f0\u3067OSPF\u3067\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3055\u305b\u308b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30fbR1\u306eConfig <\/p>\n<pre>interface FastEthernet0\/0<br \/> ip address 172.16.10.1 255.255.255.0<br \/> duplex auto<br \/> speed auto<br \/>!<br \/>interface FastEthernet0\/1<br \/> ip address 192.168.10.1 255.255.255.0<br \/> duplex auto<br \/> speed auto<br \/>!<br \/>interface FastEthernet1\/0<br \/> ip address 192.168.20.1 255.255.255.0<br \/> duplex auto<br \/> speed auto<br \/>!<br \/>router ospf 1<br \/> log-adjacency-changes<br \/> network 172.16.10.0 0.0.0.255 area 10<br \/> network 192.168.10.0 0.0.0.255 area 10<br \/> network 192.168.20.0 0.0.0.255 area 10<br \/>!<br \/><\/pre>\n<p>\u30fbR2\u306eConfig <\/p>\n<pre>interface FastEthernet0\/0<br \/> ip address 172.16.10.2 255.255.255.0<br \/> duplex auto<br \/> speed auto<br \/>!<br \/>interface FastEthernet0\/1<br \/> ip address 172.16.20.1 255.255.255.0<br \/> duplex auto<br \/> speed auto<br \/>!<br \/>router ospf 1<br \/> log-adjacency-changes<br \/> network 172.16.0.0 0.0.255.255 area 10<br \/> distribute-list Deny_OSPF in<br \/>!<br \/>ip forward-protocol nd<br \/>!<br \/>!<br \/>no ip http server<br \/>no ip http secure-server<br \/>!<br \/>ip access-list standard Deny_OSPF<br \/> deny   192.168.0.0 0.0.255.255<br \/> permit any<br \/><\/pre>\n<p>\u30fbR3\u306eConfig <\/p>\n<pre>interface FastEthernet0\/0<br \/> ip address 172.16.20.2 255.255.255.0<br \/> duplex auto<br \/> speed auto<br \/>!<br \/>interface FastEthernet0\/1<br \/> ip address 192.168.30.1 255.255.255.0<br \/> duplex auto<br \/> speed auto<br \/>!<br \/>interface FastEthernet1\/0<br \/> ip address 192.168.40.1 255.255.255.0<br \/> duplex auto<br \/> speed auto<br \/>!<br \/>router ospf 1<br \/> log-adjacency-changes<br \/> network 172.16.20.0 0.0.0.255 area 10<br \/> network 192.168.30.0 0.0.0.255 area 10<br \/> network 192.168.40.0 0.0.0.255 area 10<br \/><\/pre>\n<p>\u305d\u308c\u305e\u308c\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30c6\u30fc\u30d6\u30eb\u3092\u898b\u308b\u3068 <\/p>\n<pre>R1#sh ip route <br \/>Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP<br \/>       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area <br \/>       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2<br \/>       E1 - OSPF external type 1, E2 - OSPF external type 2<br \/>       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2<br \/>       ia - IS-IS inter area, * - candidate default, U - per-user static route<br \/>       o - ODR, P - periodic downloaded static route<br \/><br \/>Gateway of last resort is not set<br \/><br \/>O    192.168.30.0\/24 [110\/30] via 172.16.10.2, 00:10:34, FastEthernet0\/0<br \/>C    192.168.10.0\/24 is directly connected, FastEthernet0\/1<br \/>O    192.168.40.0\/24 [110\/21] via 172.16.10.2, 00:10:34, FastEthernet0\/0<br \/>     172.16.0.0\/24 is subnetted, 2 subnets<br \/>O       172.16.20.0 [110\/20] via 172.16.10.2, 00:13:10, FastEthernet0\/0<br \/>C       172.16.10.0 is directly connected, FastEthernet0\/0<br \/>C    192.168.20.0\/24 is directly connected, FastEthernet1\/0<br \/><\/pre>\n<pre>R2#sh ip route <br \/>Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP<br \/>       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area <br \/>       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2<br \/>       E1 - OSPF external type 1, E2 - OSPF external type 2<br \/>       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2<br \/>       ia - IS-IS inter area, * - candidate default, U - per-user static route<br \/>       o - ODR, P - periodic downloaded static route<br \/><br \/>Gateway of last resort is not set<br \/><br \/>     172.16.0.0\/24 is subnetted, 2 subnets<br \/>C       172.16.20.0 is directly connected, FastEthernet0\/1<br \/>C       172.16.10.0 is directly connected, FastEthernet0\/0<br \/><\/pre>\n<pre>R3#sh ip route <br \/>Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP<br \/>       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area <br \/>       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2<br \/>       E1 - OSPF external type 1, E2 - OSPF external type 2<br \/>       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2<br \/>       ia - IS-IS inter area, * - candidate default, U - per-user static route<br \/>       o - ODR, P - periodic downloaded static route<br \/><br \/>Gateway of last resort is not set<br \/><br \/>C    192.168.30.0\/24 is directly connected, FastEthernet0\/1<br \/>O    192.168.10.0\/24 [110\/30] via 172.16.20.1, 00:11:22, FastEthernet0\/0<br \/>C    192.168.40.0\/24 is directly connected, FastEthernet1\/0<br \/>     172.16.0.0\/24 is subnetted, 2 subnets<br \/>C       172.16.20.0 is directly connected, FastEthernet0\/0<br \/>O       172.16.10.0 [110\/20] via 172.16.20.1, 00:11:22, FastEthernet0\/0<br \/>O    192.168.20.0\/24 [110\/21] via 172.16.20.1, 00:11:22, FastEthernet0\/0<br \/><\/pre>\n<p>R2\u3060\u3051\u304c\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30c6\u30fc\u30d6\u30eb\u306b192.168\u7cfb\u304c\u8f09\u3063\u3066\u3044\u306a\u3044\u3002  <\/p>\n<p>\u8a2d\u8a08\u6642\u306b\u7d4c\u8def\u5236\u5fa1\u3068\u304b\u3057\u3063\u304b\u308a\u76db\u308a\u8fbc\u3093\u3067\u304a\u304b\u306a\u3044\u3068\u3042\u3068\u304b\u3089\u300c\u3084\u3079\u3063!\u3067\u304d\u306d\u30fc\u3058\u3083\u3093\u300d\u3063\u3066\u306a\u308b\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u66f4\u3060\u3051\u3069OSPF\u3067\u306f\u7d4c\u8def\u5236\u5fa1\u306f\u540c\u4e00\u30a8\u30ea\u30a2\u5185\u3060\u3068\u53d7\u4fe1\u5074\u3067\u62d2\u5426\u3059\u308b\u3057\u304b\u3067\u304d\u306a\u3044\u306e\u306d\u3002\u9001\u4fe1\u3067\u30d5\u30a3\u30eb\u30bf\u306f\u639b\u3051\u3089\u308c\u306a\u3044, \u9014\u4e2d\u306e\u30eb\u30fc\u30bf\u3067\u53d7\u4fe1\u62d2\u5426\u3057\u3066\u3082LSA\u3067\u30a2\u30c9\u30d0\u30bf\u30a4\u30ba\u3055\u308c\u308b\u304b\u3089\u305d\u306e\u5148\u306b\u306f\u4f1d\u642c\u3057\u3066\u3057\u307e\u3046\u3002\u3053\u306e\u3042\u305f\u308a\u7406\u89e3\u3067\u304d\u3066\u3044\u2026 <span class=\"read-more\"><a href=\"https:\/\/wp.zassoul.com\/?p=535\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,15,8],"tags":[],"class_list":["post-535","post","type-post","status-publish","format-standard","hentry","category-cisco","category-network","category-8"],"_links":{"self":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/posts\/535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=535"}],"version-history":[{"count":0,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=\/wp\/v2\/posts\/535\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.zassoul.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}