186d7f5d3SJohn Marino######################################################################### 286d7f5d3SJohn Marino# 386d7f5d3SJohn Marino# Example of ppp.linkdown file 486d7f5d3SJohn Marino# 586d7f5d3SJohn Marino# This file is checked when ppp closes a connection. 686d7f5d3SJohn Marino# ppp searches the labels in this file as follows: 786d7f5d3SJohn Marino# 886d7f5d3SJohn Marino# 1) The label that matches the IP number assigned to our side. 986d7f5d3SJohn Marino# 1086d7f5d3SJohn Marino# 2) The label specified on the command line to ppp. 1186d7f5d3SJohn Marino# 1286d7f5d3SJohn Marino# 3) If no label has been found, use MYADDR if it exists. 1386d7f5d3SJohn Marino# 1486d7f5d3SJohn Marino# 1586d7f5d3SJohn Marino# $FreeBSD: src/share/examples/ppp/ppp.linkdown.sample,v 1.3 1999/09/07 07:56:54 brian Exp $ 1686d7f5d3SJohn Marino# $DragonFly: src/share/examples/ppp/ppp.linkdown.sample,v 1.2 2003/06/17 04:36:57 dillon Exp $ 1786d7f5d3SJohn Marino# 1886d7f5d3SJohn Marino######################################################################### 1986d7f5d3SJohn Marino 2086d7f5d3SJohn Marino# We don't really need to do much here. If we have notified a DNS 2186d7f5d3SJohn Marino# of our temporary IP number, we may want to ``un-notify'' them. 2286d7f5d3SJohn Marino# 2386d7f5d3SJohn Marino# If you're into sound effects when the link goes down, you can run 2486d7f5d3SJohn Marino# ``auplay'' (assuming NAS is installed and configured). 2586d7f5d3SJohn Marino# 2686d7f5d3SJohn MarinoMYADDR: 2786d7f5d3SJohn Marino !bg /usr/X11R6/bin/auplay /etc/ppp/linkdown.au 2886d7f5d3SJohn Marino 2986d7f5d3SJohn Marino# If you're running ``ppp -auto -nat dynamic-nat-auto'', and are 3086d7f5d3SJohn Marino# assigned a dynamic IP number by the peer, this may be worth while 3186d7f5d3SJohn Marino# to keep the interface aliases to a minimum (see ``enable iface-alias'' 3286d7f5d3SJohn Marino# in the man page): 3386d7f5d3SJohn Marino# 3486d7f5d3SJohn Marinodynamic-nat-auto: 3586d7f5d3SJohn Marino iface clear 36