xref: /freebsd/share/examples/ppp/ppp.linkdown.sample (revision fe75646a0234a261c0013bf1840fdac4acaf0cec)
1#########################################################################
2#
3#          Example of ppp.linkdown file
4#
5#  This file is checked when ppp closes a connection.
6#  ppp searches the labels in this file as follows:
7#
8#  1) The label that matches the IP number assigned to our side.
9#
10#  2) The label specified on the command line to ppp.
11#
12#  3) If no label has been found, use MYADDR if it exists.
13#
14#
15#
16#########################################################################
17
18# We don't really need to do much here.  If we have notified a DNS
19# of our temporary IP number, we may want to ``un-notify'' them.
20#
21# If you're into sound effects when the link goes down, you can run
22# ``auplay'' (assuming NAS is installed and configured).
23#
24MYADDR:
25 !bg /usr/local/bin/auplay /etc/ppp/linkdown.au
26
27# If you're running ``ppp -auto -nat dynamic-nat-auto'', and are
28# assigned a dynamic IP number by the peer, this may be worth while
29# to keep the interface aliases to a minimum (see ``enable iface-alias''
30# in the man page):
31#
32dynamic-nat-auto:
33 iface clear
34