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?

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
전문가
답변함 일 년 전
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.

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인