The following WLAN test is successful in ubuntu11.04:
Install L2TP IPSec VPN
We will use l2tp-ipsec-vpn software for Werner Jaeger
First, open the terminal and execute the following command to install the l2tp-ipsec-vpn Software
Sudo apt-add-repository PPA: Werner-Jaeger/PPA-Werner-vpnsudo apt-Get updatesudo apt-Get install l2tp-ipsec-vpn
Configure L2TP/IPSec: IPSec Tab
After restarting the computer, we should see two similar icons in the system tray. This is the system tray icon of the L2TP IPSec VPN software.
Right-click the icon and selectEdit connections.
Add a new VPN connection name, for example, AES (the name can be any one ).
Enter the server address (domain name or IP address) of your L2TP/IPSec VPN in the remote server ), select use pre-shared key for authentication in the following input box and enter your L2TP/IPSec VPN pre-shared key, that is, pre-shared key (if you use the certificate to select the following and import the certificate) ).
You do not need to set the L2TP tab.
Configure L2TP/IPSec: PPPTab
Finally, set the PPP tab, select allow these protocols, and check Microsoft chap Version 2 (do not select other options. Generally, the L2TP/IPSec VPN authentication protocols are Microsoft chap version 2, if it cannot be authenticated, try to check other protocols ). enter the user name and password of your L2TP/IPSec VPN in username and password respectively.
No other settings are required. Save the configuration and prepare to connect to the VPN.
In this case, the VPN connection still fails. In the IPsec option, check the disable IPSec encription and find that the VPN can be connected, but the webpage cannot be opened. The following error message is displayed:
This webpage is not available
The server at xxxxCan't be found, because the DNS lookup failed.
Solution: Find the IP settings option in the PPP option and check before the obtain DNS server addresses automatically. Reconnect and find that you can access the Internet.