title: AWS VPC Route Table -- Delete default route
body: <p>In AWS VPC each route table you create comes with a defualt (local route 10.0.0.0/16) this causes some problem when I want my EC2 instances to have another EC2 instance as default gateway. </p>
  
  <p>For instance if you have two EC2 intances namely A (in subnet 10.0.30.0/24) and B (in subnet 10.0.40.0/24) and if you set A as the default gateway for B then all packets from B are not sent via A. Instead they are sent via 10.0.40.1. </p>
  
  <p>I even tried creating a new route table and add a route like : 0.0.0.0/0 go via NIC of A, even this does not route traffic via A</p>
  
  <p>If I delete the route to 10.0.40.1 on B then I lose all connectivity to B</p>
  
  <p>My questions are:</p>
  
  <ol>
  <li>What can I do to make sure all packets from B are always sent via A?</li>
  <li>Is it possible to delete the 10.0.0.0/16 local route?</li>
  <li>What else can I do to do what I want?</li>
  </ol>