Take the 2-minute tour ×

Usually, I use the network connections icon on the top bar to connect to VPN.

VPN Connection

The connection is configured properly and it connects well. Configuration screen shot is given below.

enter image description here

As you can see I have selected the 'Connect automatically' option. But this option doesn't help in connecting to VPN automatically upon login.

This is my university VPN and it uses 'Point-to-Point encryption (MPPE)' for authentication enter image description here

I need to connect to the VPN using command line, so that I can write a script and run it at start up, so the connection is automatically established every time I login. This will also help in connecting to VPN when I login from 'init 3' mode. I depend on this VPN connection for my internet access. Please help me with the required commands.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

See here the best answer is to use NetworkManager command line interface.

share|improve this answer
great!!! that worked! thanks you so much –  WarFox Apr 1 '12 at 14:09
add comment

Your Answer


