{"id":154094,"date":"2023-08-02T13:49:34","date_gmt":"2023-08-02T08:19:34","guid":{"rendered":"https:\/\/www.gkseries.com\/blog\/?p=154094"},"modified":"2023-08-02T13:49:36","modified_gmt":"2023-08-02T08:19:36","slug":"consider-three-machines-m-n-and-p-with-ip-addresses-100-10-5-2-100-10-5-5-and-100-10-5-6-respectively","status":"publish","type":"post","link":"https:\/\/www.gkseries.com\/blog\/consider-three-machines-m-n-and-p-with-ip-addresses-100-10-5-2-100-10-5-5-and-100-10-5-6-respectively\/","title":{"rendered":"Consider three machines M, N, and P with IP addresses 100.10.5.2, 100.10.5.5, and 100.10.5.6 respectively."},"content":{"rendered":"\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Q. Consider three machines M, N, and P with IP addresses 100.10.5.2, 100.10.5.5, and 100.10.5.6 respectively. The subnet mask is set to 255.255.255.252 for all the three machines. Which one of the following is true?<\/td><\/tr><tr><td>(A) M, N, and P all belong to the same subnet<\/td><\/tr><tr><td>(B) Only M and N belong to the same subnet<\/td><\/tr><tr><td>(C) Only N and P belong to the same subnet<\/td><\/tr><tr><td>(D) M, N, and P belong to three different subnets<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Ans: Only N and P belong to the same subnet<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Solution:<\/p>\n\n\n\n<p>First, we will do bitwise AND between Subnet mask and given IP address one by one<\/p>\n\n\n\n<p>For M: 100.10.5.2<\/p>\n\n\n\n<p>Bitwise AND:<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; 01100100.00001010.00000101.00000010 (100.10.5.2)<\/p>\n\n\n\n<p>AND 11111111.11111111.11111111.11111100 (255.255.255.252)<\/p>\n\n\n\n<p>___________________________________________________________<\/p>\n\n\n\n<p>&nbsp;&nbsp; = 01100100.00001010.00000101.00000000 (100.10.5.0)<\/p>\n\n\n\n<p>For N: 100.10.5.5<\/p>\n\n\n\n<p>Bitwise AND:<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; 01100100.00001010.00000101.00000101 (100.10.5.5)<\/p>\n\n\n\n<p>AND 11111111.11111111.11111111.11111100 (255.255.255.252)<\/p>\n\n\n\n<p>___________________________________________________________<\/p>\n\n\n\n<p>&nbsp;&nbsp; = 01100100.00001010.00000101.00000100 (100.10.5.4)<\/p>\n\n\n\n<p>For P: 100.10.5.2<\/p>\n\n\n\n<p>Bitwise AND:<\/p>\n\n\n\n<p>01100100.00001010.00000101.00000110 (100.10.5.6)<\/p>\n\n\n\n<p>AND 11111111.11111111.11111111.11111100 (255.255.255.252)<\/p>\n\n\n\n<p>___________________________________________________________<\/p>\n\n\n\n<p>&nbsp;&nbsp; = 01100100.00001010.00000101.00000100 (100.10.5.4)<\/p>\n\n\n\n<p>It is sure from the above computation that N and P belong to the same network (i.e., 100.10.5.4), while M can belong to the same network or it can be from any other network.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Q. Consider three machines M, N, and P with IP addresses 100.10.5.2, 100.10.5.5, and 100.10.5.6 respectively. The subnet mask is set to 255.255.255.252 for all the three machines. Which one of the following is true? (A) M, N, and P all belong to the same subnet (B) Only M and N belong to the same [&hellip;]<\/p>\n","protected":false},"author":419,"featured_media":154095,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[5141],"tags":[5140],"class_list":["post-154094","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gate","tag-gate-questions"],"_links":{"self":[{"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/posts\/154094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/users\/419"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/comments?post=154094"}],"version-history":[{"count":1,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/posts\/154094\/revisions"}],"predecessor-version":[{"id":154096,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/posts\/154094\/revisions\/154096"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/media\/154095"}],"wp:attachment":[{"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/media?parent=154094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/categories?post=154094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/tags?post=154094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}