#c2w1 [Optional] AWS Networking Overview- VPC Route Table

Hi All,

I am very new to networking and want to know if the custom route table 2 is correct. Or the destination should be 10.0.1.0/16 for Target = Local? Thanks!

Hello @michaelkawaicheung,
Yes good observation, the part after the IP address is called CIDR (Classless Interdomain Routing). That defines the prefix, in this case (10.0.x.x) like a range of address with the same prefix. That way it reduces the size of the route table to 10.0.0.0/16 instead of 10.0.0.0 through 10.0.1.0. Hope it helps

@Georgios thank you for your prompt reply. I guess that means the the lecture note is correct?

In that way, resources in both the public/private subnet will “see” resources with 10.0.x.x as in the same network (i.e. no need to go out of the local network) as “Local” = 10.0.0.0/16 (which is the VPC’s address)?

@michaelkawaicheung
Yes, exactly that is correct, the part after /16 means that the leftmost 16 bits defines the subnet_mask (10.0.x.x) which will route to local network, instead of the NAT or internet gateway respectively. That is the reason that the route table is smaller since 10.0.0.0/16 as target is sufficient. I hope it’s helpful