Destination Target
172.31.0.0/16 Local
0.0.0.0/0 igw-1234567
Route tables associated with VPCs and Subnets are used for Routing
Route Tables have Routes - set of rules
Each route or routing rule has a destination (CIDR Block - range of addresses) and target
Rule 1 - Route requests to 172.31.0.0/16 (172.31.0.0 to 172.31.255.255) to local resources
Rule 2 - Route all other IP addresses (0.0.0.0/0) to internet (internet gateway)
What happens if I search for an address 172.31.0.10?
Two matches - 172.31.0.0/16 (172.31.0.0 to 172.31.255.255) and 0.0.0.0/0
Most specific rule wins 172.31.0.0/16 is more specific. Result : Routing to a local resource
What happens if I search for an address 69.209.0.10?
One destination match - 69.208.0.10. Result : Routing to internet