Solved Display gateway address for wlan0

unitrunker

Active Member

Reaction score: 66
Messages: 187

ifconfig does not display it. Did not find anything in dhclient(8). 'apropos gateway' turned up nothing.

I can tail /var/log/messages to see what dhclient wrote there but I suspect there is a more direct way to get this detail.
 

moridin

Member

Reaction score: 24
Messages: 34

I'm not sure what you mean exactly, but either route -n get default or netstat -rn would show you the default gateway you are using (just don't understand if there's anything wlan specific).
 
Top