Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Destination and Target in Route table (AWS VPC)?

What is Destination and Target in Route table? I can see Destination and target can be configured to Internet gateway, is there any other use case ?

like image 955
Ananda-SteelTownBoy Avatar asked Nov 19 '17 08:11

Ananda-SteelTownBoy


People also ask

What is destination in route?

The destination route is a manually-configured route entry that determines the next routing hop based on the destination IP address. Usually a network with comparatively a small number of outbound connections or stable Intranet connections will use a destination route.

What is destination and gateway in routing table?

A “route” is a defined pair of addresses: a “destination” and a “gateway”. The pair indicates that if you are trying to get to this destination, communicate through this gateway. So, a gateway is any router (or routing host) through which packets pass (are sent) when trying to reach a given set of destinations.

What is route table in AWS VPC?

A route table contains a set of rules, called routes, that are used to determine where network traffic from your subnet or gateway is directed. To put it simply, a route table tells network packets which way they need to go to get to their destination.

What does it mean when a route table target is local?

In the above example "local" means the VPC router will send traffic in that cidr range to the local VPC. Specifically, it will send the traffic to the specific network interface that has the IP address specified and drop the packet if nothing in your VPC has that IP address.

What is target local AWS?

Target field specifies where such a request should be routed. It could be local (i.e. to targets in this VPC) or your-internet-gateway-ID in case those requests should be routed to the gateway for external/somewhere-else access. A list of possible target values is here.


1 Answers

Destination => IP address/CIDR range .
Target => Where you want to send the traffic for the specified destination (e.g. if the destination is my local subnet, mention target as "local")

The Internet gateway is one of the targets (e.g. routing traffic to the internet). Other options for the target would be

  • NAT Gateway
  • Virtual Private Gateway
  • VPC endpoint
  • VPC peering connection etc. depending on your architecture

Route table document explains it well.

like image 134
sudo Avatar answered Sep 21 '22 17:09

sudo