SERVER MANAGEMENT

How to enable PPP in OpenVZ VPS

enable ppp in openvz
enable ppp in openvz

How to enable PPP in OpenVZ VPS

PPPD is the Point-to-Point Protocol daemon which is used to manage network connections between two servers. The role of pppd is managing PPP session establishment and session termination. This post will help you to enable PPP in OpenVZ VPS.

The Hardware node should have the following kernel modules in order to enable PPP in OpenVZ VPS

ppp_async
ppp_deflate

Check the mentioned modules are already loaded on the server using the following command.

 
lsmod | grep ppp

If the above command shows a blank output, execute:

 
modprobe ppp_async
modprobe ppp_deflate

run the lsmod command again to list the modules if they are active.

 
# lsmod | grep ppp
ppp_deflate    4176 0 
zlib_deflate  21629 1 ppp_deflate
ppp_async      7866 0 
ppp_generic   25763 2 ppp_deflate,ppp_async
slhc           5813 1 ppp_generic
crc_ccitt      1725 1 ppp_async

You now need to enable PPP module in a VPS:

 
vzctl stop VEID
vzctl set VEID --features ppp:on --save

Now, set ppp within the VPS:

 
vzctl set VEID --devices c:108:0:rw --save

Start the VPS

 
vzctl start VEID
vzctl exec VEID mknod /dev/ppp c 108 0
vzctl exec VEID chmod 600 /dev/ppp

Now, restart the VPS

 
vzctl restart VEID

Login to the VPS:

 
vzctl enter VEID

See if the PPP module works in the VPS:

 
[root@amiczon ~]# /usr/sbin/pppd
~ÿ}#À!}!}!} }4}"}&} } } } }%}& ù}9?}'}"}(}"–o~~ÿ}#À!}!}!} }4}"}&} } } } }%}& ù}9?}'}"}(}"–o~~ÿ}#À!}!}!} }4}"}&} } } } }%}& ù}9?}'}"}(}"–o~

You should now receive a message asking for the password or some garbage characters like above.

That’s it!

Also Read:

If you like the post and wish to receive more articles from us, please like our FB page: If you like this post and wish to receive more articles from us, please like our FB page: Button

Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.

For more details on our services, please drop us an E-mail at info@grepitout.com