Skip to main content

New answers tagged

2 votes

Automatically connect to ethernet when available

I've written a bash script to help with this: https://github.com/waltinator/net-o-matic It watches the connection, and when the connection drops, does a user-specified thing to try to reconnect or do ...
waltinator's user avatar
  • 6,876
0 votes

How to find out which interface am I using for connecting to the internet?

Another elegant one-liner without multiple commands and dependencies like route on modern distros: nmcli -t -f DEVICE c show --active | head -n 1 It'll show eth0 on a normal Wired Connection Edit: ...
Jonny Soe's user avatar
  • 101
3 votes
Accepted

manage route redirects received from the default gateway

Redirects and PMTUD results are stored in the route cache: ip route show cache ip route flush cache
grawity's user avatar
  • 15.2k
0 votes

manage route redirects received from the default gateway

The routing table(s) are stored "in the kernel". A start is maybe route.h. You can access this information here /proc/net/route or with a tool like ip route. The same is true for the net ...
ctx's user avatar
  • 2,937

Top 50 recent answers are included