Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use tunnelblick and OpenVPN on the mac, but when I choose to disconnect from the VPN I lose all network connectivity and have to reboot to get back online.

Is there a way to get a new IP or something, without having to reboot?

share|improve this question

You could enter your network settings, find your physical network interface, and use the release/renew buttons (in that order).

This would cause your interface to attempt to request configuration again from your router.

My guess is that the issue is that your routing table isn't getting it's default gateway reset to the IP of your router after OpenVPN tears down it's interface.

To see if a better solution (one that involves less work) could be found, could you copy the output of route -n before using OpenVPN, while using it, and after using it?


share|improve this answer

Try disconnecting, then reconnecting the network. Either unplug Ethernet and then plug it back in, or turn Airport off and then back on.

share|improve this answer
"have you tried turning it off and back on again?" – alex Dec 15 '11 at 22:43

You must log in to answer this question.