Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #173311 > unrolled thread

Re: need help on pptp config

Started byLi Wei <rootof3@yahoo.com>
First post2016-10-08 03:10 +0200
Last post2016-10-08 11:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.user

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: need help on pptp config Li Wei <rootof3@yahoo.com> - 2016-10-08 03:10 +0200
    Re: need help on pptp config Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-10-08 11:00 +0200

#173311 — Re: need help on pptp config

FromLi Wei <rootof3@yahoo.com>
Date2016-10-08 03:10 +0200
SubjectRe: need help on pptp config
Message-ID<spOjf-bZ-3@gated-at.bofh.it>
Thanks for your reply!

I'm user of VPN. The provider chooses PPTP.
In Windows XP, it works and the default gateway is 192.168.115.34
how to config it in Linux? Thanks!
how to add a route to the remote IP 192.168.115.1 on interface ppp0? Thanks!

In Linux I use VPN with pptp-linux
below is by ifconfig -a:

eth0      Link encap:Ethernet  HWaddr 00:19:21:d1:80:74  
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::219:21ff:fed1:8074/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:55 errors:0 dropped:0 overruns:0 frame:0
          TX packets:62 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:6258 (6.1 KiB)  TX bytes:6000 (5.8 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:192.168.115.34  P-t-P:192.168.115.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1496  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:80 (80.0 B)  TX bytes:86 (86.0 B)

below is by ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
    link/ether 00:19:21:d1:80:74 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.3/24 brd 192.168.1.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::219:21ff:fed1:8074/64 scope link 
       valid_lft forever preferred_lft forever
3: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1496 qdisc pfifo_fast state UNKNOWN group default qlen 3
    link/ppp 
    inet 192.168.115.34 peer 192.168.115.1/32 scope global ppp0
       valid_lft forever preferred_lft forever


 

[toc] | [next] | [standalone]


#173313

FromPascal Hambourg <pascal@plouf.fr.eu.org>
Date2016-10-08 11:00 +0200
Message-ID<spVE5-4PH-7@gated-at.bofh.it>
In reply to#173311
Warning : the "References:" field in your mail header is wrong and does 
not link to the message you replied to, so it breaks the thread.

Le 08/10/2016 à 03:00, Li Wei a écrit :
>
> how to add a route to the remote IP 192.168.115.1 on interface ppp0? Thanks!

The route should have been added automatically by pppd because it is 
ppp0's peer address and ppp0 is UP, as can be seen in pppd's log and in 
the output of ifconfig and ip addr.

Also a route to the PPTP server should have been automatically added by 
pptp-linux, so that it is still reachable if pppd alters the default 
route with the "defaultroute replacedefaultroute" option.

> In Linux I use VPN with pptp-linux

How do you use pptp-linux ? Please provide all details.

> ppp0      Link encap:Point-to-Point Protocol
>           inet addr:192.168.115.34  P-t-P:192.168.115.1  Mask:255.255.255.255
>           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1496  Metric:1

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web