Python: get default gateway for a local interface/ip address in linux
Posted
by gnp
on Stack Overflow
See other posts from Stack Overflow
or by gnp
Published on 2010-05-03T23:11:47Z
Indexed on
2010/05/03
23:18 UTC
Read the original article
Hit count: 342
On Linux, how can I find the default gateway for a local ip address/interface using python?
I saw the question "How to get internal IP, external IP and default gateway for UPnP", but the accepted solution only shows how to get the local IP address for a network interface on windows.
Thanks.
© Stack Overflow or respective owner