On Centos 6.5, I use NM to bring up the VPN to my office, and to disconnect from it. every now and then I screw up and disconnect the LAN itself instead of the VPN. once I do that, even after reconnecting to the LAN I'm hosed. /etc/resolv.conf hasn't been put back to the non-VPN version, so I manually fix that. but even then I can't get any name resolution. I'm sure that rebooting IS NOT the right answer, but it's the only one I've come up with that solves the problem. What should I be doing instead, once the system is in this state? thanks! -- ---- Fred Smith -- fredex at fcshome.stoneham.ma.us ----------------------------- "Not everyone who says to me, 'Lord, Lord,' will enter the kingdom of heaven, but only he who does the will of my Father who is in heaven." ------------------------------ Matthew 7:21 (niv) -----------------------------
On 01/25/2014 09:45 PM, Fred Smith wrote:> every now and then I screw up and disconnect the LAN itself instead of > the VPN.I also use NM and VPN in this way, but I've never had the problem you describe. I usually just connect to VPN and leave it on. I've set up the VPN connection so that only company-related traffic goes through VPN, the rest goes directly. Mogens -- Mogens Kjaer, mk at lemo.dk http://www.lemo.dk
On 2014-01-25, Fred Smith <fredex at fcshome.stoneham.ma.us> wrote:> On Centos 6.5, I use NM to bring up the VPN to my office, and to disconnect > from it. > > every now and then I screw up and disconnect the LAN itself instead of > the VPN. > > once I do that, even after reconnecting to the LAN I'm hosed. > > /etc/resolv.conf hasn't been put back to the non-VPN version, so I manually > fix that. > > but even then I can't get any name resolution. > > I'm sure that rebooting IS NOT the right answer, but it's the only one > I've come up with that solves the problem. > > What should I be doing instead, once the system is in this state? > > thanks! >Try doing (as root) service NetworkManager restart to restore NM to its intial state. Not an ideal solution (assuming it works), but better than a full reboot. -- Liam