{"componentChunkName":"component---src-templates-blog-post-js","path":"/aws/aws-networking/aws-vpc/","result":{"data":{"site":{"siteMetadata":{"title":"Recipes Collection","author":"Internet Community"}},"markdownRemark":{"id":"7cc50605-7c30-5cdc-8d9f-ec05f83060d4","html":"<h1 id=\"what-is-aws-vpc\"><a href=\"#what-is-aws-vpc\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>What is AWS VPC?</h1>\n<ul>\n<li>VPC stands for Virtual private cloud</li>\n<li>Basically Amazon giving you it’s software defined network for your own use</li>\n<li>VPC is an isolated network in a region.</li>\n<li>VPC spans all availability zones in a region</li>\n</ul>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/315700ff6edf4a2da9d8512c01c7806e/ed123/what-is-vpc.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 590px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 53.37837837837838%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAYAAAB/Ca1DAAAACXBIWXMAAAsSAAALEgHS3X78AAACpElEQVQoz12S60+SYRjG+Qf7Ul9a2VaZ2apprmlr5Tq4bKV2mM3z+QQYICstj6ECOgiFBCQPqagcBIXglTP66wHNtd7t917X/ex+rue5372yWCxGMpkklUqRSCROiZPJpHG5lrFYLKytrWI2m1hfXycletOZFP8+8XicXE5OZbmFaDRKIBAglT4imcqSSGaEZsR6jFA4QiRymPeHhwkyR8d43Xv0VPejqFWibdSSzWbPwk8CJYk5nZHVeQPrJj2/zEY2Fs1s/bCyvWTLk/NbtkV2nUvYJr7xvug5VVee0V3dQzZzEnh8fIwsEopwEAxhn7EimdXsGwbwz/QR1A8Qnh8UKieQ90qCBjn+2X4i3zWwJQ61r/H3brkw8UYWFmFS9BD7rJXfU020V5XxtKyY+soSBuse8uL+LUExQ+8eUV1WyIPiAhoq7xAzDuCYMrC/44ajNPm83MhxKU7AF8QybuLANEzAOITfMIRvVp3HM/0R74zqzPv0GtGj4cA8itNg4/dBGJIRMgnpZORcqtftw6jV47Va8FvN+BdNeBYsorYJrPgEnpzabOy7nIRWlvE5nNgNS4RDUbLJKPGwl2w6gUySovh9e8x/FYG6Xla/tLD8uYmVkWY2xtv5KdQl2Dz1zk+NrI224TOqMY3O4NnZRQoHCAX9RMTfInO73Tjsy4wpR3DIX1JbXkRp4WWel1yn4fFdKm4WUF5UQMuTEipuXOR2wQWq711jVfsBnWpY7Otg0TDB1vYOm5sbyGxiDKNxjt6mLsZaXzPR9gptfRVjLa+YbK8R9ev/qMn3jLbWoehRoXxbybSiAYdrhQXxmWQ6nY7JyUnUag2qQQ1qwaBCRVdHN/J+JYpTBvoUZ7W8X4FSoUHe2cyb0ktcPX+O1vZO9Ho9fwC6Zd6K9t7opwAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"what is vpc\"\n        title=\"\"\n        src=\"/static/315700ff6edf4a2da9d8512c01c7806e/fcda8/what-is-vpc.png\"\n        srcset=\"/static/315700ff6edf4a2da9d8512c01c7806e/12f09/what-is-vpc.png 148w,\n/static/315700ff6edf4a2da9d8512c01c7806e/e4a3f/what-is-vpc.png 295w,\n/static/315700ff6edf4a2da9d8512c01c7806e/fcda8/what-is-vpc.png 590w,\n/static/315700ff6edf4a2da9d8512c01c7806e/efc66/what-is-vpc.png 885w,\n/static/315700ff6edf4a2da9d8512c01c7806e/c83ae/what-is-vpc.png 1180w,\n/static/315700ff6edf4a2da9d8512c01c7806e/ed123/what-is-vpc.png 1765w\"\n        sizes=\"(max-width: 590px) 100vw, 590px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>\n<h1 id=\"vpc-components\"><a href=\"#vpc-components\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>VPC Components</h1>\n<ul>\n<li>VPC</li>\n<li>Subnet</li>\n<li>Route Table</li>\n<li>Security Groups</li>\n<li>Network ACLs</li>\n</ul>\n<h1 id=\"what-is-subnet\"><a href=\"#what-is-subnet\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>What is Subnet</h1>\n<ul>\n<li>Subnets are basically sub networks inside a VPC. It is like network in the network.</li>\n<li>Each subnet can be one availability zone</li>\n</ul>\n<h1 id=\"what-is-internet-gateway\"><a href=\"#what-is-internet-gateway\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>What is Internet Gateway</h1>\n<ul>\n<li>All the internet access happens through internet gateway</li>\n<li>This is important for all the traffic leaving VPC</li>\n</ul>\n<h1 id=\"what-is-security-group\"><a href=\"#what-is-security-group\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>What is Security Group</h1>\n<ul>\n<li>Security groups are applied on per instance level.</li>\n<li>We assign security group to VPCs. And every instance running on the VPC can be attached to the security groups which are assigned to the VPC.</li>\n<li>Security groups are one way of controlling which access is allowed to the instances and which traffic may leave the instances. That basically acts like a firewall.</li>\n</ul>\n<h1 id=\"what-is-network-control-list-nacl\"><a href=\"#what-is-network-control-list-nacl\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>What is Network Control List (NACL)</h1>\n<ul>\n<li>These apply on subnet level</li>\n<li>We can define which traffic may enter the subnet</li>\n<li>Security group is bit more granular, but NACL allows to really configure the whole subnet.</li>\n</ul>\n<h1 id=\"routing-table\"><a href=\"#routing-table\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Routing table</h1>\n<ul>\n<li>Route the traffic differently with Route table</li>\n<li>Specify is traffic allowed to reach other instances in the VPC, is it allowed to leave the VPC</li>\n<li>Can control the assignment of public IPs</li>\n</ul>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/97011c41a1c38bf9d2e40d3e2b86cbf9/541fe/controlling-routing.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 590px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 57.432432432432435%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAALCAYAAAB/Ca1DAAAACXBIWXMAAAsSAAALEgHS3X78AAACs0lEQVQoz12T+09SYRjH+RfbqrW1aq7bXIuatZxGMyunlm5dKMNqlVHIxUTIqZkXjibgETkCEmBqZSoXQyQTQeDT6+GHLmf77Hm+Z2fP+3nfc44ml8tRKBTY3d2l0udJpZIEAnOEQkFkWcbnm0Hx+5mZkVlaWuT/a+fXDjs7FTT5fJ54Ik5uN0++UBIURV8gk8myuc/mFul0Rs0bG2ly4nlFCmBqM2O9a2PMNv7PcM1ecQ/FpxCcdLPgdRPzTvF5xsuy4hcofJlTWN5H5CVh+T0yj/ORkaYj9Vw9qMNusKuDSqUS5XIZTbFUZF6OkPCMsu01sem2sumxsu1/p7Llc5CddbKt9PNzdj87KUaGyH2WiQUr2y+Xyn8Z7hUIyQtkvQNMGOrQXThLw8UzmO7Uce+qFt35U9zTaTG2XKH2zDFqTh5l8NE1fkw6cA/J5MXZq0OFnWq4v+WAO0xcGKY/mvg+bmHNZSExYWHd1c3qeDfrkpm4YGXsDd9GTWx8FHlqmNEeia+xr2TT2T+GpXKR6eFpFqd8rCky636ZuDJLPBggEQqQFCREX8lBtU+Gg0QlL23V7egv63E+dap2hXwBTWYrg08SL0AaJCEZWZOE0YSZ1HQfSa/AY1dratpBylu590O2s+IZxjMiFl9PshhdZCG8wOq3VTRflpcYeScRcXbR16altrqK+uoTdDZoabl0mtqzx9TaoTtHTdVhtMcPYb5dQ7ivC8sTKx/6bHwKhYl+ihKLxtDMiQ+4p9vByMvHjHZex/HwBs6OW7x/0syAoQmHvpH+jiYGDc3Y9Tfpvd/IB0MjrtdPMeoN9AqJ+YCfcCSi/ggaaWyMHrMZ07Pn2F68xP64HfuDJt7qm+l92EyPqBb9HcwC64NWbJ16rF1G3rx4RUN9HQ1VB2hrbWHc5UIS/AZaINh3ccPAOgAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"controlling routing\"\n        title=\"\"\n        src=\"/static/97011c41a1c38bf9d2e40d3e2b86cbf9/fcda8/controlling-routing.png\"\n        srcset=\"/static/97011c41a1c38bf9d2e40d3e2b86cbf9/12f09/controlling-routing.png 148w,\n/static/97011c41a1c38bf9d2e40d3e2b86cbf9/e4a3f/controlling-routing.png 295w,\n/static/97011c41a1c38bf9d2e40d3e2b86cbf9/fcda8/controlling-routing.png 590w,\n/static/97011c41a1c38bf9d2e40d3e2b86cbf9/efc66/controlling-routing.png 885w,\n/static/97011c41a1c38bf9d2e40d3e2b86cbf9/c83ae/controlling-routing.png 1180w,\n/static/97011c41a1c38bf9d2e40d3e2b86cbf9/541fe/controlling-routing.png 1654w\"\n        sizes=\"(max-width: 590px) 100vw, 590px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>\n<h1 id=\"public-and-private-subnets\"><a href=\"#public-and-private-subnets\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Public and Private Subnets</h1>\n<ul>\n<li>\n<p>Private Subnet</p>\n<ul>\n<li>Block outgoing traffic to deny internet access or doesn’t assign any public IPs</li>\n<li>Can use to holds database service. These shouldn’t need to access from internet. They only need to accessed from your web servers.</li>\n</ul>\n</li>\n<li>\n<p>Public Subnet</p>\n<ul>\n<li>Allow outgoing traffic to internet or have Public (Elastic) IPs</li>\n<li>Can use to hold web servers which have to be accessible from the internet and which should send traffic to the internet</li>\n</ul>\n</li>\n</ul>\n<h1 id=\"nat-gateway\"><a href=\"#nat-gateway\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>NAT Gateway</h1>\n<ul>\n<li>Sometimes we still want our private subnet instances can reach out to the internet because they should be install updates of a software fro example. We do this by redirecting outgoing internet access to a NAT gateway instead of blocking it.</li>\n<li>NAT stands for network address translation</li>\n<li>It translates internal IPs to public ones. NAT Gateway has a public IP. Forwards to the internet gateway. Still access the internet indirectly with private instances.</li>\n</ul>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/7752d415cd42d6fa72a5cd327b504662/26a94/public-and-private-subnets.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 590px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 62.83783783783784%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAYAAACpUE5eAAAACXBIWXMAAAsSAAALEgHS3X78AAADMUlEQVQ4y12T3VMTVxjG+Xs6tb1zetGLftxVx1svOvWiVjs6nbHAKNWREahTi7VjQSgXTYgoUj/AcSqOIQkkgSz5hGSzSZZNsgmJLSTGJJBABJH8epIw048z8+xzzrP7/vY9Z+a08b+R0lP4vD6ikSjZTJYVdYVYVBWuoYQV9KROWJZRlDCJdOI/tfX9Om17e3sUCgVqr2vNcGu3yp9FndxGlrUNnXQhylolSbakkimskK+IvJymVC7x1PQMy4SVacM0YSncrG+r1+vIcpilBTeab4mge46A28KS107Q72TZbycg5rLPjRLwIntbHvEEuHS0k85Pz/HV4dNMDU+1gI2HpujoLg9by0/Zj85Qj1kg4WQv7oLkIm+TTtA9vNUkWPW1lPawv+om7fejRQ62Xj8AqkGdlMtOUhpk7PpljNcuYvihi+DUAI9/7eHBrW4eDXWzPPULI73tjPS0Y7x6nqJ9lHTAhpII8LKaovq6dNChnCK96BBd3uDhzUtMDnQz3v8dVz8/xbFDR/nsnSMce/cIfcdPYuj9lns/XeD+jS5KswZeiS7zaKztBymTbQHlxQgRq0Qx4KAiL7CtuHglzu1x/yimC8MYOn7G1DXM1DUDRZHXIhKV0DyloBPXo2mGegYwXh/BMmluAcPuCKrDSyHiIRcUfwx5KKoyb3I6u2sJdnPhlq/rlJMqxXiMohZlI6URmrEzecvEM+PvhJzSP1telVxsOsfIO8fJNTR/j+LiAzGfYF26TU6o5B0nvyi+cY9R8Nxha2mC2rrE9o7KxqYiSC9awJXGGc7Noty8SF/HWXqEus99zR9DvXzfeZYr7WdEfoYng1foPPUF50+f4PI3X/LSZuAvycrS3HMCtnFq2/kWMBrU0GyzFMy/kZkZJWMxsSqUc9wla71N+rmBjPDGupE33mfMo5QX7pCSvPgts6j3+3hTLbeA2ewLwr4g8WAIbX5ewG3ERccrwjWrlZh5hpjdSVRIdcw3Fff5iS8rRMwPMQ32Y+w6icv8pHVT/j12KltsxpNUk2mqiRRlJUpJjgiPNdfVZIpKQqdZtVPmx44THP7gQz7+6BPeP/QefwOwE2AxZbzOBQAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"public and private subnets\"\n        title=\"\"\n        src=\"/static/7752d415cd42d6fa72a5cd327b504662/fcda8/public-and-private-subnets.png\"\n        srcset=\"/static/7752d415cd42d6fa72a5cd327b504662/12f09/public-and-private-subnets.png 148w,\n/static/7752d415cd42d6fa72a5cd327b504662/e4a3f/public-and-private-subnets.png 295w,\n/static/7752d415cd42d6fa72a5cd327b504662/fcda8/public-and-private-subnets.png 590w,\n/static/7752d415cd42d6fa72a5cd327b504662/efc66/public-and-private-subnets.png 885w,\n/static/7752d415cd42d6fa72a5cd327b504662/26a94/public-and-private-subnets.png 1102w\"\n        sizes=\"(max-width: 590px) 100vw, 590px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>\n<h1 id=\"cidr-block\"><a href=\"#cidr-block\" aria-hidden class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>CIDR Block</h1>\n<ul>\n<li>\n<p>Notation for IP address ranges</p>\n<ul>\n<li>e.g. 1.0.0.0/16</li>\n</ul>\n</li>\n<li><a href=\"https://jodies.de/ipcalc\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https://jodies.de/ipcalc</a></li>\n<li>With the netmask (value after slash) we decide how many binary figures are fixed.</li>\n<li>32 is the highest. It means it’s a one IP. Everything is fixed.</li>\n<li>192.168.0.1/16 - 16 will fix the firest two blocks. This means .0.1 will be variable. </li>\n</ul>","timeToRead":3,"frontmatter":{"title":"AWS VPC","date":"April 22, 2022","spoiler":"Following are some notes collected through internet"},"fields":{"slug":"/aws/aws-networking/aws-vpc/","langKey":"en"}}},"pageContext":{"slug":"/aws/aws-networking/aws-vpc/","previous":{"fields":{"slug":"/micro-frontends/","langKey":"en","directoryName":"micro-frontends","maybeAbsoluteLinks":[]},"frontmatter":{"title":"Micro Frontends"}},"next":{"fields":{"slug":"/kubernetes/kubernetes-jobs/","langKey":"en","directoryName":"kubernetes-jobs","maybeAbsoluteLinks":[]},"frontmatter":{"title":"Kubernetes Jobs"}},"translations":[],"translatedLinks":[]}}}