<div dir="ltr">I am running Debian testing. When I reboot and plug in my network cable, I am able to ping external servers and machines on my LAN. Basically, it all just works with the network cable plugged in. <div><br></div>
<div>When I reboot and turn on the wifi (ie there is a switch on my laptop to turn on/of wifi) and have the network cable disconnected, I can ping external sites but not internal machines. I get the message Destination Host Unreachable. If  I then plug in the network cable (and turn off wfi) I am able to ping both internal and external servers. If I now disconnect the cable and turn on wifi again, I can ping both external and internal servers. </div>
<div><br></div><div>/etc/network/interfaces</div><div><div>auto eth0</div><div>iface eth0 inet static<br></div><div>        address 192.168.25.150</div><div>        netmask 255.255.255.0</div><div><span class="" style="white-space:pre">  </span>gateway 192.168.25.1</div>
<div><span class="" style="white-space:pre">    </span>dns-search <a href="http://ph.cox.net">ph.cox.net</a></div><div><span class="" style="white-space:pre">        </span>dns-nameservers 68.105.28.12 68.105.29.12 68.105.28.11 </div>
<div>        gateway 192.168.25.1</div><div><br></div><div>allow-hotplug wlan0<br></div><div>iface wlan0 inet dhcp</div></div><div><br></div><div>I looked at resolv.conf and route for the two scenarios - </div><div><br></div>
<div>1. Reboot into cable connected network - </div><div><div>root@orca:/home/mark# route</div><div>Kernel IP routing table</div><div>Destination     Gateway         Genmask         Flags Metric Ref    Use Iface</div><div>
default         gateway         0.0.0.0         UG    0      0        0 eth0</div><div>link-local      *               255.255.0.0     U     1000   0        0 eth0</div><div>192.168.25.0    *               255.255.255.0   U     0      0        0 eth0</div>
</div><div><br></div><div><div>root@orca:/home/mark# cat /etc/resolv.conf </div><div># Generated by NetworkManager</div><div>search <a href="http://ph.cox.net">ph.cox.net</a></div><div>nameserver 68.105.28.12</div><div>nameserver 68.105.29.12</div>
<div>nameserver 68.105.28.11</div></div><div><br></div><div>2. Reboot into wifi</div><div><div>root@orca:/home/mark# route</div><div>Kernel IP routing table</div><div>Destination     Gateway         Genmask         Flags Metric Ref    Use Iface</div>
<div>default         gateway         0.0.0.0         UG    0      0        0 wlan0</div><div>link-local      *               255.255.0.0     U     1000   0        0 wlan0</div><div>192.168.25.0    *               255.255.255.0   U     0      0        0 eth0</div>
<div>192.168.25.0    *               255.255.255.0   U     0      0        0 wlan0</div></div><div><br></div><div><div>root@orca:/home/mark# cat /etc/resolv.conf </div><div>nameserver 192.168.25.1</div></div><div><br></div>
<div>I could change interfaces to have a static IP for wifi, and it would work when I reboot. However, for that occasional visit to Starbucks my wifi would not work. </div><div><br></div><div>What do I need to do to make my wifi work both at home and on the road?</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Mark </div></div>