Regarding setting up a private network I am working on an automated way with linode api. I can obtain public and private ip from my linode using linodeiplist. But how can I get the "Default Gateways" (with the api) that I have in linode/Remote Access to complete the interfaces file as said in
~~[https://library.linode.com/networking/configuring-static-ip-interfaces#sphstatic-ip-configuration" target="blank">](https://library.linode.com/networking/c … figuration">https://library.linode.com/networking/configuring-static-ip-interfaces#sph_static-ip-configuration](.
I will appreciate any help to find a way to obtain the gateway using or not the API.
regards