{"id":8143,"date":"2012-04-26T14:48:53","date_gmt":"2012-04-26T14:48:53","guid":{"rendered":"http:\/\/tajdini.net\/blog\/2012\/04\/26\/calculate-wildcard\/"},"modified":"2012-04-26T14:48:53","modified_gmt":"2012-04-26T14:48:53","slug":"calculate-wildcard","status":"publish","type":"post","link":"https:\/\/tajdini.net\/blog\/cisco-and-networking\/calculate-wildcard\/","title":{"rendered":"\u0645\u062d\u0627\u0633\u0628\u0647 wildcard mask \u0647\u0627\u06cc \u067e\u06cc\u0686\u06cc\u062f\u0647 \u062f\u0631 Access Control List"},"content":{"rendered":"<p><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">\u0645\u0628\u0646\u0627\u06cc \u0645\u062d\u0627\u0633\u0628\u0647 address \u0648Wildcard mask \u062f\u0631 ACL \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0648 \u0639\u0645\u0644 \u0645\u0646\u0637\u0642\u06cc AND \u0648 XOR \u0645\u06cc\u0628\u0627\u0634\u062f.\u06a9\u0647 \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0631\u0648\u0634 \u0645\u062d\u0627\u0633\u0628\u0647 \u0622\u0646 \u0631\u0627 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u06cc\u062f.<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">\u062f\u0631 \u0627\u0628\u062a\u062f\u0627 \u062e\u0631\u0648\u062c\u06cc AND \u062f\u0648 \u0648\u0631\u0648\u062f\u06cc A \u0648 B \u0631\u0627 \u0628\u0627\u0647\u0645 \u0646\u06af\u0627\u0647 \u0645\u06cc\u06a9\u0646\u06cc\u0645:<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">A AND B<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">______________<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">| A | B | out |<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">| 0 | 0 | 0 |<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">| 0 | 1 | 0 |<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">| 1 | 0 | 0 |<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">| 1 | 1 | 1 |<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><\/p>\n<p><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u062e\u0631\u0648\u062c\u06cc XOR \u062f\u0648 \u0648\u0631\u0648\u062f\u06cc A \u0648 B \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u0645\u06cc\u06a9\u0646\u06cc\u0645.<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">A XOR B<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">______________<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">| A | B | out |<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">| 0 | 0 | 0 |<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">| 0 | 1 | 1 |<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">| 1 | 0 | 1 |<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">| 1 | 1 | 0 |<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><\/p>\n<p><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">\u0647\u0645\u0627\u0646\u0637\u0648\u0631\u06cc \u06a9\u0647 \u0645\u06cc \u062f\u0627\u0646\u06cc\u0645 \u0646\u062d\u0648\u0647 \u0646\u0648\u0634\u062a\u0646 \u06cc\u06a9 ACL \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u0645\u06cc \u0628\u0627\u0634\u062f :<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">access-list 1 permit [address] [wildcard]<\/span><\/p>\n<p><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">\u06a9\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0642\u0633\u0645\u062a address \u0646\u062a\u06cc\u062c\u0647 and \u0622\u062f\u0631\u0633\u0647\u0627\u06cc A \u0648 B \u0645\u06cc\u0628\u0627\u0634\u062f (A\u0648B \u0622\u062f\u0631\u0633\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0645\u06cc\u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u0631 ACL \u0642\u0631\u0627\u0631 \u06af\u06cc\u0631\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0631\u0648\u0634\u0646 \u0634\u062f\u0646 \u0627\u06cc \u0645\u0637\u0644\u0628 \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0645\u062b\u0627\u0644 \u062e\u0648\u0627\u0647\u0645 \u0632\u062f) \u0648 \u0642\u0633\u0645\u062a wildcard \u0646\u062a\u06cc\u062c\u0647 XOR \u062f\u0648 \u0622\u062f\u0631\u0633 A \u0648B \u0645\u06cc\u0628\u0627\u0634\u062f.<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">\u0645\u062b\u0627\u06441:<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">\u0641\u0631\u0636 \u06a9\u0646\u06cc\u062f \u0645\u0627 \u0633\u0647 \u0634\u0628\u06a9\u0647 \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u062f\u0627\u0631\u06cc\u0645 \u0648 \u0645\u06cc\u062e\u0648\u0627\u0647\u06cc\u0645 ACL \u0628\u0646\u0648\u06cc\u0633\u06cc\u0645 \u06a9\u0647 \u0627\u062c\u0627\u0632\u0647 \u0639\u0628\u0648\u0631 \u062a\u0631\u0627\u0641\u06cc\u06a9 \u0627\u06cc\u0646 \u0633\u0647 \u0634\u0628\u06a9\u0647 \u0631\u0627\u0628\u062f\u0647\u062f \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0646\u062d\u0648\u0647 \u06a9\u0627\u0631 \u0631\u0627 \u0628\u0627 \u0647\u0645 \u0645\u06cc\u0628\u06cc\u0646\u06cc\u0645:<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">74.18.23.0\/24<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">68.34.14.0\/24<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">84.51.20.0\/24<\/span><\/p>\n<p><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">\u0627\u0648\u0644\u06cc\u0646 \u0627\u0642\u062f\u0627\u0645\u06cc \u06a9\u0647 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u062f\u0647\u06cc\u0645 \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0622\u062f\u0631\u0633\u0647\u0627 \u0631\u0627 \u0628\u0647 \u0628\u0627\u06cc\u0646\u0631\u06cc \u062a\u0628\u062f\u06cc\u0644 \u0645\u06cc\u06a9\u0646\u06cc\u0645.<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">74.18.23.0\/24 &#8211; 01001010 . 00010010 . 00010111 . 00000000<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">68.34.14.0\/24 &#8211; 01000100 . 00100010 . 00001110 . 00000000<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">84.51.20.0\/24 &#8211; 01010100 . 00110011 . 00010100 . 00000000<\/span><\/p>\n<p><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">84.51.20.0\/24 &#8211; 01010100 . 00110011 . 00010100 . 00000000<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">\u0647\u0645\u0627\u0646\u0637\u0648\u0631\u06cc \u06a9\u0647 \u062f\u0631 \u0628\u0627\u0644\u0627 \u0630\u06a9\u0631 \u0634\u062f \u062d\u0627\u0644 \u0628\u0627\u06cc\u062f address \u0648 wildcard \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0633\u0647 \u0622\u062f\u0631\u0633 \u0645\u062d\u0627\u0633\u0628\u0647 \u06a9\u0646\u06cc\u0645:<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">\u0645\u062d\u0627\u0633\u0628\u0647 address ) \u0646\u062a\u06cc\u062c\u0647 AND \u0633\u0647 \u0622\u062f\u0631\u0633):<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">74.18.23.0\/24 &#8211; 01001010 . 00010010 . 00010111 . 00000000<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">68.34.14.0\/24 &#8211; 01000100 . 00100010 . 00001110 . 00000000<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">84.51.20.0\/24 &#8211; 01010100 . 00110011 . 00010100 . 00000000<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">AND Result &#8212;- 01000000 . 00100010 . 00000100 . 00000000= 64.2.4.0<\/span><\/p>\n<p><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">\u0645\u062d\u0627\u0633\u0628\u0647 wildcard(\u0646\u062a\u06cc\u062c\u0647 XOR \u0633\u0647 \u0622\u062f\u0631\u0633 ):<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">74.18.23.0\/24 &#8211; 01001010 . 00010010 . 00010111 . 00000000<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">68.34.14.0\/24 &#8211; 01000100 . 00100010 . 00001110 . 00000000<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">84.51.20.0\/24 &#8211; 01010100 . 00110011 . 00010100 . 00000000<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">XOR Result &#8212;- 00011110 . 00010001 . 00011011 . 00000000=30.17.27.0<\/span><\/p>\n<p><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\"><strong>\u0646\u06a9\u062a\u0647: . \u062f\u0631 \u0627\u06cc\u0646 wildcard \u0627\u062e\u0631\u06cc\u0646 octet \u0635\u0641\u0631 \u0645\u06cc\u0628\u0627\u0634\u062f \u06a9\u0647 \u0631\u0627 \u0628\u0631\u0627\u0628\u0631 \u0628\u0627 255 \u0642\u0631\u0627\u0631 \u0645\u06cc\u062f\u0647\u06cc\u0645<\/strong><\/span><\/p>\n<p><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">\u0628\u0646\u0627\u06cc\u0631\u0627\u06cc\u0646 ACL \u0645\u0627 \u0628\u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f.<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">access-list 1 permit 64.2.4.0 30.17.27.255<\/span><\/p>\n<p><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">\u0645\u062b\u0627\u0644 2:<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">\u062f\u0648 \u0622\u062f\u0631\u0633 \u0631\u06cc\u0632 \u0631\u0627 \u062f\u0627\u0631\u06cc\u0645.<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">12.18.23.5 <\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">12.18.22.6<\/span><\/p>\n<p><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">\u0646\u062a\u06cc\u062c\u0647 and :<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">12.18.23.5 &#8211; 00001100 . 00010010 . 00010111 . 00000101<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">12.18.22.6 &#8211; 00001100 . 00010010 . 00010110 . 00000110<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">AND Result &#8211; 00001100 . 00010010 . 00010110 . 00000100 = 12.18.22.4<\/span><\/p>\n<p><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">\u0646\u062a\u06cc\u062c\u0647 XOR:<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">12.18.23.5 &#8211; 00001100 . 00010010 . 00010111 . 00000101<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">12.18.22.6 &#8211; 00001100 . 00010010 . 00010110 . 00000110<\/span><br \/><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">XOR Result &#8211; 00000000 . 00000000 . 00000001 . 00000011 = 0.0.1.3<\/span><\/p>\n<p><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">\u0646\u062a\u06cc\u062c\u0647 ACL:<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-family: tahoma,arial,helvetica,sans-serif;\">access-list 2 permit 12.18.22.4 0.0.1.3<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0645\u0628\u0646\u0627\u06cc \u0645\u062d\u0627\u0633\u0628\u0647 address \u0648Wildcard mask \u062f\u0631 ACL \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0648 \u0639\u0645\u0644 \u0645\u0646\u0637\u0642\u06cc AND \u0648 XOR \u0645\u06cc\u0628\u0627\u0634\u062f.\u06a9\u0647 \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0631\u0648\u0634 \u0645\u062d\u0627\u0633\u0628\u0647 \u0622\u0646 \u0631\u0627 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u06cc\u062f.\u062f\u0631 \u0627\u0628\u062a\u062f\u0627 \u062e\u0631\u0648\u062c\u06cc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[221],"tags":[264,90],"class_list":["post-8143","post","type-post","status-publish","format-standard","hentry","category-cisco-and-networking","tag-persian","tag-cisco"],"_links":{"self":[{"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/posts\/8143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/comments?post=8143"}],"version-history":[{"count":0,"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/posts\/8143\/revisions"}],"wp:attachment":[{"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/media?parent=8143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/categories?post=8143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/tags?post=8143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}