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 Antworten
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
EXPERTE
beantwortet vor einem Jahr
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.

beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen