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

0

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?

已提问 1 年前246 查看次数
2 回答
1

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 0.0.0.0/0 - that's the default route.

profile pictureAWS
专家
已回答 1 年前
0

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

route.destination-cidr-block

Accept answer if helped.

已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则