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?

feita há um ano246 visualizações
2 Respostas
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
ESPECIALISTA
respondido há um ano
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.

respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas