{"id":758,"date":"2022-08-18T14:19:53","date_gmt":"2022-08-18T05:19:53","guid":{"rendered":"https:\/\/roroing.net\/?p=758"},"modified":"2022-08-18T14:29:30","modified_gmt":"2022-08-18T05:29:30","slug":"758","status":"publish","type":"post","link":"https:\/\/roroing.net\/?p=758","title":{"rendered":"\u30d1\u30b1\u30c3\u30c8\u30c8\u30ec\u30fc\u30b5\u30fc\u3067ACL\u306e\u691c\u8a3c"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\u6982\u8981<\/h1>\n\n\n\n<p>\u30b9\u30a4\u30c3\u30c1\u306bACL\u3092\u8a2d\u5b9a\u3059\u308b\u524d\u306b\u3001<br>\u30d1\u30b1\u30c3\u30c8\u30c8\u30ec\u30fc\u30b5\u30fc\u3067\u5b9f\u65bd\u3057\u305fACL\u306e\u691c\u8a3c\u5185\u5bb9\u3092\u8a18\u8f09\u3059\u308b\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u691c\u8a3c\u65b9\u6cd5<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">\u74b0\u5883<\/h2>\n\n\n\n<p>\u30d1\u30b1\u30c3\u30c8\u30c8\u30ec\u30fc\u30b5\u30fc\u306b\u3066\u4ee5\u4e0b\u306e\u691c\u8a3c\u74b0\u5883\u3092\u7528\u610f\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"957\" height=\"322\" src=\"https:\/\/roroing.net\/wp-content\/uploads\/2022\/08\/ACL1.png\" alt=\"\" class=\"wp-image-760\"\/><\/figure>\n\n\n\n<p>\u30fbPC0 : 192.168.1.1<br>\u30fbPC1 : 192.168.1.3<br>\u30fbSwitch0[vlan1]\uff1a192.168.1.5<br>\u30fbRouter0[Giga 0\/1]\uff1a192.168.1.254<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u3044\u305a\u308c\u3082ping\u306e\u53cd\u5fdc\u304c\u6b63\u5e38\u306b\u8fd4\u3063\u3066\u304f\u308b\u3002<br>PC0\u2192Router<br>PC1\u2192Router<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u76ee\u7684<\/h2>\n\n\n\n<p>Router0\u3067\u3001ACL\u3092\u4f5c\u6210\u3057\u3066\u3001<br>[PC1 : 192.168.1.3]\u304b\u3089\u306e\u30d1\u30b1\u30c3\u30c8\u3092\u62d2\u5426\u3057\u305f\u3044<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u691c\u8a3c\u5185\u5bb9<\/h2>\n\n\n\n<p>\u30fb Router0\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3001\u30b3\u30f3\u30d5\u30a3\u30ae\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u30e2\u30fc\u30c9\u306b\u3066<br>\u3000192.168.1.3\u3092\u62d2\u5426\u3059\u308b\u30a2\u30af\u30bb\u30b9\u30ea\u30b9\u30c81\u3092\u4f5c\u6210\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Router(config)#access-list 1 deny host 192.168.1.3<\/code><\/pre>\n\n\n\n<p>\u30fb\u30a2\u30af\u30bb\u30b9\u30ea\u30b9\u30c8\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5168\u3066\u62d2\u5426\u3059\u308b\u6027\u8cea\u304c\u3042\u308b\u305f\u3081\u3001<br>\u3000\u3059\u3079\u3066\u306e\u30d1\u30b1\u30c3\u30c8\u3092\u8a31\u53ef\u3059\u308b\u5185\u5bb9\u3092\u8ffd\u52a0\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Router(config)#access-list 1 permit any\nRouter(config)#exit<\/code><\/pre>\n\n\n\n<p>\u30fb\u30a2\u30af\u30bb\u30b9\u30ea\u30b9\u30c81\u306e\u5185\u5bb9\u3092\u30b3\u30f3\u30d5\u30a3\u30b0\u306b\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Router#show access-lists\nStandard IP access list 1\n        10 deny host 192.168.1.3\n        20 permit any<\/code><\/pre>\n\n\n\n<p>\u30fbPC1\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089Router\u306bping\u304c\u901a\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3042\u3068\u306b\u3001\u30b3\u30f3\u30d5\u30a3\u30b0\u30e2\u30fc\u30c9\u304b\u3089\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u30e2\u30fc\u30c9\u306b\u5909\u66f4\u3057\u3001\u30a2\u30af\u30bb\u30b9\u30ea\u30b9\u30c81\u3092\u8a2d\u7f6e\u3059\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"433\" height=\"109\" src=\"https:\/\/roroing.net\/wp-content\/uploads\/2022\/08\/ACL3.png\" alt=\"\" class=\"wp-image-761\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>Router(config)#int GIgabitEthernet 0\/1\r\nRouter(config-if)#ip access-group 1 in<\/code><\/pre>\n\n\n\n<p><br>\u30fb\u7279\u6a29\u30e2\u30fc\u30c9\u3067\u73fe\u5728\u306e\u8a2d\u5b9a\u304b\u3089\u30a2\u30af\u30bb\u30b9\u30ea\u30b9\u30c8\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Router#show run\r\ninterface GigabitEthernet0\/1\r\nip address 192.168.1.254 255.255.255.0\r\nip access-group 1 in<\/code><\/pre>\n\n\n\n<p>\u30fb\u518d\u5ea6PC1\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089Router\u306bping\u3092\u98db\u3070\u3057\u3001\u901a\u3089\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"525\" height=\"290\" src=\"https:\/\/roroing.net\/wp-content\/uploads\/2022\/08\/ACL4-1.png\" alt=\"\" class=\"wp-image-763\"\/><\/figure>\n\n\n\n<p>\u30fbPC0\u304b\u3089Router\u306bping\u304c\u901a\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"452\" height=\"332\" src=\"https:\/\/roroing.net\/wp-content\/uploads\/2022\/08\/ACL5.png\" alt=\"\" class=\"wp-image-764\"\/><\/figure>\n\n\n\n<p>## \u691c\u8a3c\u7d50\u679c<br>PC0\u304b\u3089Router\u3078\u306eping\u306f\u901a\u308b\u304c\u3001PC1\u306f\u3001<br>\u30a2\u30af\u30bb\u30b9\u30ea\u30b9\u30c8\u306b\u3088\u3063\u3066ping\u304c\u901a\u3089\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n\n\n\n<p># \u7591\u554f<\/p>\n\n\n\n<p>## \u30a2\u30af\u30bb\u30b9\u30ea\u30b9\u30c8\u306e\u9806\u756a\u3092\u5909\u66f4\u3059\u308b\u306b\u306f\u3069\u3046\u3057\u305f\u3089\u3044\u3044\u304b<\/p>\n\n\n\n<p>\u30fb\u30a2\u30af\u30bb\u30b9\u30ea\u30b9\u30c8\u3092\u78ba\u8a8d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Router#sh access-lists\r\nStandard IP access list 1\r\n10 deny host 192.168.1.3\r\n20 permit any\r\n30 deny host 192.168.1.4<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u3082\u4f55\u3082\u5909\u66f4\u3055\u308c\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Router(config)#access-list 1 permit any<\/code><\/pre>\n\n\n\n<p>### \u30b7\u30fc\u30b1\u30f3\u30b9\u3092\u6307\u5b9a\u3057\u3066\u524a\u9664\u3059\u308b <\/p>\n\n\n\n<p>permit any\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u309230\u4ee5\u4e0b\u306b\u3057\u305f\u3044\u306e\u3067\u3001 20\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u3067\u3042\u308bpermit any\u3092\u524a\u9664\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Router(config)#ip access-list standard 1\nRouter(config-std-nacl)#no 20\nRouter(config-std-nacl)#exit<\/code><\/pre>\n\n\n\n<p>\u518d\u5ea6\u30a2\u30af\u30bb\u30b9\u30ea\u30b9\u30c81\u3092\u78ba\u8a8d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Router#sh access-lists\nStandard IP access list 1\n10 deny host 192.168.1.3\n30 deny host 192.168.1.4<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306b\u3066\u30b7\u30fc\u30b1\u30f3\u30b920\u304c\u524a\u9664\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d ### \u30b3\u30f3\u30d5\u30a3\u30b0\u30e2\u30fc\u30c9\u306b\u5165\u308a\u3001\u30a2\u30af\u30bb\u30b9\u30ea\u30b9\u30c81\u306b\u518d\u5ea6\u3000permit any\u3000\u3092\u5165\u529b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Router(config)#access-list 1 permit any<\/code><\/pre>\n\n\n\n<p>\u518d\u5ea6\u3001\u30a2\u30af\u30bb\u30b9\u30ea\u30b9\u30c81\u3092\u78ba\u8a8d\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Router#sh access-lists\nStandard IP access list 1\n10 deny host 192.168.1.3\n30 deny host 192.168.1.4\n40 permit any<\/code><\/pre>\n\n\n\n<p>permit any \u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u304c20\u304b\u308940\u306b\u5909\u308f\u3063\u305f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u30b9\u30a4\u30c3\u30c1\u306bACL\u3092\u8a2d\u5b9a\u3059\u308b\u524d\u306b\u3001\u30d1\u30b1\u30c3\u30c8\u30c8\u30ec\u30fc\u30b5\u30fc\u3067\u5b9f\u65bd\u3057\u305fACL\u306e\u691c\u8a3c\u5185\u5bb9\u3092\u8a18\u8f09\u3059\u308b\u3002 \u691c\u8a3c\u65b9\u6cd5 \u74b0\u5883 \u30d1\u30b1\u30c3\u30c8\u30c8\u30ec\u30fc\u30b5\u30fc\u306b\u3066\u4ee5\u4e0b\u306e\u691c\u8a3c\u74b0\u5883\u3092\u7528\u610f\u3057\u305f\u3002 \u30fbPC0 : 192.168.1.1\u30fbPC1 : 192. <a href=\"https:\/\/roroing.net\/?p=758\" class=\"more-link\">...<span class=\"screen-reader-text\"> \"\u30d1\u30b1\u30c3\u30c8\u30c8\u30ec\u30fc\u30b5\u30fc\u3067ACL\u306e\u691c\u8a3c\"<\/span> \u3092\u7d9a\u3051\u3066\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[18],"tags":[],"class_list":{"0":"post-758","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-ccna","7":"h-entry","8":"hentry","9":"h-as-article"},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/roroing.net\/index.php?rest_route=\/wp\/v2\/posts\/758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roroing.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/roroing.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/roroing.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/roroing.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=758"}],"version-history":[{"count":4,"href":"https:\/\/roroing.net\/index.php?rest_route=\/wp\/v2\/posts\/758\/revisions"}],"predecessor-version":[{"id":769,"href":"https:\/\/roroing.net\/index.php?rest_route=\/wp\/v2\/posts\/758\/revisions\/769"}],"wp:attachment":[{"href":"https:\/\/roroing.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/roroing.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/roroing.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}