What is the portable way to get the default route source address? – unix.stackexchange.com

I need to get the IP address used as the source for packets sent via the default route. My first idea was to use ip r and deduce this from there: # ip r 0.0.0.0/1 via 10.0.2.1 dev tun0 default via ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "What is the portable way to get the default route source address? – unix.stackexchange.com"