1.. _ppp: 2 3Point-to-Point Protocol (PPP) Support 4##################################### 5 6.. contents:: 7 :local: 8 :depth: 2 9 10Overview 11******** 12 13`Point-to-Point Protocol 14<https://en.wikipedia.org/wiki/Point-to-Point_Protocol>`_ (PPP) is a data link 15layer (layer 2) communications protocol used to establish a direct connection 16between two nodes. PPP is used over many types of serial links since IP packets 17cannot be transmitted over a modem line on their own, without some data link 18protocol. 19 20In Zephyr, each individual PPP link is modelled as a network interface. This 21is similar to how Linux implements PPP. 22 23PPP support must be enabled at compile time by setting option 24:kconfig:option:`CONFIG_NET_L2_PPP`. 25The PPP implementation supports only these protocols: 26 27* LCP (Link Control Protocol, 28 `RFC1661 <https://tools.ietf.org/html/rfc1661>`__) 29* HDLC (High-level data link control, 30 `RFC1662 <https://tools.ietf.org/html/rfc1662>`__) 31* IPCP (IP Control Protocol, 32 `RFC1332 <https://tools.ietf.org/html/rfc1332>`__) 33* IPV6CP (IPv6 Control Protocol, 34 `RFC5072 <https://tools.ietf.org/html/rfc5072>`__) 35 36For using PPP with a cellular modem, see :zephyr:code-sample:`cellular-modem` sample 37for additional information. 38 39Testing 40******* 41 42See the `net-tools README`_ file for more details on how to test the Zephyr PPP 43against pppd running in Linux. 44 45.. _net-tools README: 46 https://github.com/zephyrproject-rtos/net-tools/blob/master/README.md#ppp-connectivity 47