CentOS 6.8 command line can use Pptpsetup for PPTP dialing
1. Install PPP,PPTP and pptp-setup three packages first
Yum install-y PPP PPTP Pptp-setup
2. Connect using Pptpsetup
Pptpsetup--create VPN name--server server IP--username user name--password password--encrypt--start
[root@centos6-8-1 ~]# Pptpsetup --create VPN--server 192.168.127.128--username user--password passw
d--encrypt--start
Using interface ppp0
connect:ppp0 <-->/DEV/PTS/2
CHAP authentication succeeded MPPE 128-bit stateless compression
Enabled local
IP addresses 192.168.0.235
remote IP address 192.168.0.1
Using IP addr You can see one more interface ppp0:
[Root@centos6-8-1 ~]# IP Addr
1:lo: <LOOPBACK,UP,LOWER_UP> MTU 65536 qdisc noqueue State UNKNOWN
Link/loopback 00:00:00:00:00:00 BRD 00:00:00:00:00:00
inet 127.0.0.1/8 Scope host lo
INET6:: 1/128 scope host
valid_lft Forever Preferred_lft Forever
2:eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> MTU 1500 Qdisc pfifo_fast State up Qlen 1000
Link/ether 00:0c:29:27:eb:e7 BRD ff:ff:ff:ff:ff:ff inet 192.168.127.129/24 brd 192.168.127.255
Scope Global eth0
inet6 fe80::20c:29ff:fe27:ebe7/64 scope link
valid_lft forever preferred_lft Forever 4:ppp0
: < Pointopoint,multicast,noarp,up,lower_up> MTU 1496 Qdisc pfifo_fast State UNKNOWN Qlen 3
link/ppp
192.168.0.235 Peer 192.168.0.1/32 Scope Global PPP0
3. Add default route
Route add default Dev ppp0
VPN is already available at this time.
If you want to disconnect the PPTP connection, end the PPTP process directly
The above is a small set to introduce the CentOS 6.8 command line using Pptpsetup for PPTP dial-up implementation method, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!