I'm trying to add a default route on my ppp0 connection, I want the default route points to that connection. I tried to add it in /etc/rc.local but I don't think that is the right place to do so. I would like to know where is the right place to accomplish this.
|
|
|||||||||
closed as too localized by Luis Alvarado♦ Mar 14 '13 at 16:30This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question. |
|||||||||
|
|||||||||
|
The right place should be the file
The IP address is the one of your default gateway and the last entry is the device name of your device. |
|||||||||||||
|
|
Already long time ago, but none of the above described solutions worked for me. I finally found the solution in the comments in the ip-up file under the /etc/ppp directory in Ubuntu. I created a script in the The script is picked up automatically after the pptp connection was created. It works like a charm. |
||||
|
|
|
If you are using Network Manager, you can add a route via the Configure VPN... menu option under the networking widget. Then on the VPN, click on edit for the VPN you need to add a route to. Then under IPV4 settings, change Method to Automatic VPN. Then click on routes and add your route there (eg network 192.168.1.0 netmask 255.255.255.0 gateway 192.168.1.20) where the gateway is the VPN server you are connecting to. |
|||
|
|
|
Your default route for your primary interface? This should be done by default if you're using DHCP. If you have a statically configured interface, you'll need to add a stanza to
(Obviously these numbers would be adjusted for your network.) Add this to |
|||||
|