An open API service indexing awesome lists of open source software.

https://github.com/yaroslaff/getdefgw

Get default gateway interface / IP (for Linux)
https://github.com/yaroslaff/getdefgw

address default gateway get ip ipv4 ipv4-address network route router routing

Last synced: 11 months ago
JSON representation

Get default gateway interface / IP (for Linux)

Awesome Lists containing this project

README

          

# defgw
Get default gateway interface / IP (for Linux)

Parses/decodes /proc/net/route and prints def gw information

## Install
~~~
pip3 install getdefgw
~~~

## Usage
~~~
$ getdefgw
192.168.100.245

$ getdefgw --dev
wlp8s0
~~~