Network
ppp-off
Disconnect a PPP connection.
Additional Notes
ppp-off is a script (typically a shell script) that terminates an active PPP (Point-to-Point Protocol) connection. It sends the appropriate signals to the PPP daemon (pppd) to disconnect the link, hang up the modem, and clean up network interfaces and routing table entries.
PPP is a data link protocol used to establish direct connections between two networking nodes. While largely replaced by broadband and mobile technologies, PPP is still used in DSL connections (PPPoE), dial-up access, serial console connections, and certain embedded systems. The ppp-off script is part of the ppp package on Linux systems.
Syntax
ppp-off [device]
Parameters
device: The TTY device used by the PPP connection (e.g.,ttyS0,ttyUSB0). If omitted, the default device is used.
Examples
ppp-off
Disconnect the current PPP connection.
ppp-off ttyS0
Disconnect the PPP connection on serial port ttyS0.
ppp-off ttyUSB0
Disconnect a PPP connection on a USB modem.
Practical Notes
ppp-offis a script, not a binary. Its location varies:/etc/ppp/ppp-off,/usr/sbin/ppp-off, or/usr/bin/ppp-off.- For PPPoE connections used in DSL, use
poff(fromrp-pppoe) instead. - On modern systems, the
pppddaemon can be managed withkillall pppdorsystemctl stop pppdas alternatives. - Before running
ppp-off, ensure the PPP interface is active. Check withifconfig ppp0orip addr show ppp0. - The
ponscript starts a PPP connection;ppp-offterminates it.