143902Sbrian######################################################################### 243902Sbrian# 343902Sbrian# Example of ppp.linkdown file 443902Sbrian# 543902Sbrian# This file is checked when ppp closes a connection. 643902Sbrian# ppp searches the labels in this file as follows: 743902Sbrian# 843902Sbrian# 1) The label that matches the IP number assigned to our side. 943902Sbrian# 1043902Sbrian# 2) The label specified on the command line to ppp. 1143902Sbrian# 1243902Sbrian# 3) If no label has been found, use MYADDR if it exists. 1343902Sbrian# 1443902Sbrian# 1550476Speter# $FreeBSD: releng/10.3/share/examples/ppp/ppp.linkdown.sample 229831 2012-01-09 00:48:19Z eadler $ 1643902Sbrian# 1743902Sbrian######################################################################### 1843902Sbrian 1943902Sbrian# We don't really need to do much here. If we have notified a DNS 2043902Sbrian# of our temporary IP number, we may want to ``un-notify'' them. 2143902Sbrian# 2243902Sbrian# If you're into sound effects when the link goes down, you can run 2343902Sbrian# ``auplay'' (assuming NAS is installed and configured). 2443902Sbrian# 2543902SbrianMYADDR: 26229831Seadler !bg /usr/local/bin/auplay /etc/ppp/linkdown.au 2743902Sbrian 2851049Sbrian# If you're running ``ppp -auto -nat dynamic-nat-auto'', and are 2943902Sbrian# assigned a dynamic IP number by the peer, this may be worth while 3043902Sbrian# to keep the interface aliases to a minimum (see ``enable iface-alias'' 3143902Sbrian# in the man page): 3243902Sbrian# 3351049Sbriandynamic-nat-auto: 3443902Sbrian iface clear 35