I am linux newbie so please help me with this issue:
I need to connect to vpn serwer (PPTP). I am using NetworkManager and a widget for configure/run the connection.
Not the problem: I can connect easilly BUT all the time a have DHCP address assigned automatically even If I put my static VPN IP that I must use for this connection.
First tab (PPTP) - VPN IP, user name, NT domain
Second tab (IPv4) - manual method selected, IP (correct) provided, mas, gateway, dns…
THird tab (IPv^) - not used
As I said I can connect but I dont know why I have dynamic IP all the time while there is manual one specified in the setup. For example i use manual IP: 192.168.111.100 but I am assigned 192.168.111.1
please help… I am already fighting it 2 days
thanks in advance
From networkmanager log:
Dec 31 16:33:21 pc101aw NetworkManager: CHAP authentication succeeded
Dec 31 16:33:21 pc101aw NetworkManager: MPPE 128-bit stateless compression enabled
Dec 31 16:33:24 pc101aw NetworkManager: local IP address 192.168.111.1
Dec 31 16:33:24 pc101aw NetworkManager: remote IP address XXX
Dec 31 16:33:24 pc101aw NetworkManager: <info> Tunnel Device: ppp0
Dec 31 16:33:24 pc101aw NetworkManager: <info> Internal IP4 Address: 192.168.111.1
Dec 31 16:33:24 pc101aw NetworkManager: <info> Internal IP4 Prefix: 32
But why the heck 192.168.111.1 when there is different IP in setup…
What is important: I can easilly setup the connecting with this static IP under Win7 so serverside it works and IP is correct…
But the problem is that from Windows i can setup connection and it works (static IP). Using Win7 I define VPN connection - I enter VPN address, local IP that I want to have assigned when connected and … voila. It works.
When I switch to suse - no luck, all the time I got IP assigned by DHCP.
So even if there is something weird with the server - when connecting from Win client it works
Unfortunately I am not administrator of this VPN server and I cannot check anything there - I already tried to talk to server admin but they suggested to switch to windows
Does your VPN client need a static IP for any particular reason?
My test with my VPN connection wouldn’t allow me to assign a static IP either, but I’ assuming that’s down to the server policy. I’ll check with our administrator (to see if this is the case) in the next couple of days.
after a deep searching. i think we cannot add a specific address for ppp0 using pptp on linux. since the vpn server is made with a windows network instruction, the argument for specifying its own spesific address works only in windows os. also the cofiguration of /etc/ppp/ip-up.d/provider scripts fails in changing the ip address of dev ppp0.
when using pptp client to windows vpn server u must deal with dhcp and noway for static ip.
also network-manager-pptp do not have this option. we can not add a manual method for ipv4 in vpn config.
on the otherhand, since windows os can do that, u can install a windows os in a VM and bridge the vpn connection into a virtual host network card. this is the only solution found right now.