ip r | awk '/default/{print$3}'
ip -6 r | awk '/default/{print$3}'
Blog
How to Find the Linux Gateway

ip r | awk '/default/{print$3}'
ip -6 r | awk '/default/{print$3}'
Note: This post may be AI-assisted and then human-edited. Editorial responsibility: Dmytro Lomaka, Kaltenkirchen.
Essential cookies are always active. Statistics, external fonts and marketing load only with your consent (GDPR).
Language, session, consent storage
Anonymous visit analytics
Google Fonts and other CDNs
Advertising pixels and trackers
Scan to open this site quickly on your phone