How to check the default route on private and isolated subnets?


I am trying to use describe_route_tables on boto3 to describe routes that are going to a particular subnet and going to a particular gateway/network firewall.

Furthermore, is there a way to check the default route in a subnet? Using bogo3?

2 Answers

The default route is no different to any other route - there's no special marker for it. Look for a route that has a DestinationCidrBlock of - that's the default route.

profile pictureAWS
answered a year ago

You can use that boto3 command. You can further use this filter to only grep default route


Accept answer if helped.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions