I just need to send/receive a messages through a unix-socket with PPP. But at first I want to launch the pppd with an usual serial port to make sure I know how it works. As I see, if I bind a pppd to a serial, all the packets that has come there will be unwrapped from PPP/IP/..., and redirected to some port with my application. As I understand this could be only done by creating a new network interface by the pppd. So I am need to give an IP to pppd. After reading a manuals, and getting some problems I figure out an options that seems to be right, but I still can't get it working:
$ pppd local -detach 10.5.57.198: /dev/ttyS4
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS4
LCP: timeout sending Config-Requests
Connection terminated.
Modem hangup
Before the title LCP: timeout sending Config-Requests
appears I have some time, and I launched in this time ifconfig
-- alas, here is no new network interface appeared.
Also I was seeked for a tutorials, but all that I found is doesn't seem to be useful, mostly because these deprecated: these often mention a configs, or soft, or sites that is not present right now. And partially because these mention many actions which doesn't seem to carry a sense for me.
So, do anybody knows, what is the options I am missing?