I've been having a problem where my macbook won't reconnect to the internet after I turn off my work VPN. A simple reboot fixes this, but I was wondering if there was a way I could restart the network configs, or clear cache (not sure exactly what the problem is) from the command line - without having to do a reboot?
I've tried the following, without success
$ ifconfig en0 down && ifconfig en0 up
Is there a way to reset the network config to whatever the default values are after a reboot?
Edit: This doesn't happen every time, I'm not exactly sure what chain of events triggers it.