Solved Display gateway address for wlan0

unitrunker

Well-Known Member

Reaction score: 131
Messages: 397

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: 25
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