Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Reset network after sleep when Cisco VPN is installed Network
If you are using the Cisco VPN client 3.7.x with the GUI, you might have noticed that when it is installed, your network won't return from sleep. After having to reboot every time this happened, I got frustrated. Apparantly this problem is fixed in version 4.x of the client, but you can't get it from Cisco unless you have a Cisco support contract, and our network security guys don't want to upgrade to 4.x just yet. So aside from black hat methods, I am stuck with 3.7.2.

If you lose your network after waking from sleep, here is an easier way to get it back than a reboot. Run these two commands in Terminal (or your favorite terminal application):
sudo ifconfig en0 down
sudo ifconfig en0 mtu 1500 up
Most Macs with one network card should have their card at en0. If your card is not at en0, substitute which interface you want to reset. I am assuming that if you have multiple ethernet interfaces, you can figure out which one is which.

Also, the MTU setting *could* be different for you. 1500 is the default, but who knows what your ISP or network guys or yourself might have set. So if you are concerned you can just type ifconfig en0, which will spit out your current network configuration. Somewhere in there, usually near the end of the first line, you will see your MTU setting, and you can adjust the above commands to set it back to that same value.

I am sure that you could wrap all this into an AppleScript application or something. For some reason, turning the interface off and back on again from within System Preferences doesn't do the trick.
    •    
  • Currently 2.75 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[14,002 views]  

Reset network after sleep when Cisco VPN is installed | 8 comments | Create New Account
Click here to return to the 'Reset network after sleep when Cisco VPN is installed' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Reset network after sleep when Cisco VPN is installed
Authored by: hatoncat on Aug 19, '03 11:28:13AM

Many colleges distribute the 4.x client on their web sites for (aparrently) public consumption. There is no priacy involved, since the software is free to use. A quick google search turns up dozens of sites that have the 4.x client for download. My WISP runs a Cisco VPN, and while I prefer the OS X built-in client, I have 4.x running, while they only support 4.x on Windoze.



[ Reply to This | # ]
Reset network after sleep when Cisco VPN is installed
Authored by: raider on Aug 19, '03 12:31:09PM
Thanks for the tips! With your info, I did some looking. I found this link with instructions on setting up the built-in VPN, which I will try tonight to see if it works with my company network.

The 4.01 client can be downloaded here.

[ Reply to This | # ]
Doesn't resolve the issue that wasn't an issue
Authored by: sjonke on Aug 19, '03 04:43:24PM

I don't recall having to reboot even with the 3.x clients. After waking from sleep the vpn connection would be dead even though the client didn't seem to realize it, but I just had to disconnect the vpn and then reconnect and all was well. The same is true in 4.0.x. I wish it would automatically reconnect, but there you go.

---
--- I hate Microsoft and I vote



[ Reply to This | # ]
Reset network after sleep when Cisco VPN is installed
Authored by: raider on Aug 20, '03 12:02:31PM
Well, the problem is not that I lose connection to the VPN, but rather I lose connection to ANY network.

I tried using OSXs built-in PPTP but our VPN rules won't allow it to connect. I downloaded 4.01 and then couldn't get 3.7.2 uninstalled. I found varoius instructions for uninstalling 3.7.2 since the uninstall script and the GUI uninstaller were not present on my machine. (They say this might happen - must be too many versions of 3.7.x floating around). So I had to manually delete all the cisco VPN files. I have not had time to try it out yet. More to come...

[ Reply to This | # ]
Reset network after sleep when Cisco VPN is installed
Authored by: gsdali on Aug 31, '03 12:40:52PM

Can you provide a link to something telling me how to do a manual uninstall. This has been plaguing me since I started using Cisco VPN a good while back. Now I've graduated from University and no longer need the VPN it would be great to have normal service resumed on my mac, and I've long since deleted the VPNCLient app.

---
--
Ed Lynch-Bell
dali@zerointegrity.co.uk



[ Reply to This | # ]
Reset network after sleep when Cisco VPN is installed
Authored by: raider on Sep 09, '03 11:20:51AM

Unfortunately I don't have a link. I just did it myself. I searched the disk for anything with "cisco" in the name and deleted it. If I remember correctly, there was something in the StartupItems that needed to be removed - which proved to be the culpret.



[ Reply to This | # ]
Reset network after sleep when Cisco VPN is installed
Authored by: raider on Sep 09, '03 11:54:15AM

4.01 fixed the sleep problems, and appears to work OK. Now if anyone knows how to "break" it to allow for my local LAN access while I am connected to the VPN. ;) Thanks folks for the help, and I hope this info helps at least one other person.



[ Reply to This | # ]
Reset network after sleep
Authored by: nrowe on Nov 06, '04 11:48:05PM

I lose my local network to a windoz pc after putting my mac to sleep. I must redo the sharing setup and restart to get it back. Any way to get it back without a reboot?



[ Reply to This | # ]