summaryrefslogtreecommitdiffstats
path: root/etc/ppp/ppp.linkup.sample
diff options
context:
space:
mode:
authoramurai <amurai@FreeBSD.org>1995-01-31 06:24:33 +0000
committeramurai <amurai@FreeBSD.org>1995-01-31 06:24:33 +0000
commit0487956fcf018d602bfe99b0e3398c6f4d55680a (patch)
treea94f3c389eccb994a5dee291a9892ea40a0542b1 /etc/ppp/ppp.linkup.sample
parent74b5a342fdaa61a48241c521c2b54ab517204f92 (diff)
downloadFreeBSD-src-0487956fcf018d602bfe99b0e3398c6f4d55680a.zip
FreeBSD-src-0487956fcf018d602bfe99b0e3398c6f4d55680a.tar.gz
Reviewed by:
Diffstat (limited to 'etc/ppp/ppp.linkup.sample')
-rw-r--r--etc/ppp/ppp.linkup.sample37
1 files changed, 37 insertions, 0 deletions
diff --git a/etc/ppp/ppp.linkup.sample b/etc/ppp/ppp.linkup.sample
new file mode 100644
index 0000000..afe58a7
--- /dev/null
+++ b/etc/ppp/ppp.linkup.sample
@@ -0,0 +1,37 @@
+#########################################################################
+#
+# Example of ppp.linkup file
+#
+#
+# This file is checked when PPP establishes network level connection.
+# PPP command seaches label in this file in following way and order.
+#
+# 1) At first, IP address assigned into our side is serched and execute
+# associated command.
+#
+# 2) If it didn't found, then label name specified at startup time is
+# searched.
+#
+# 3) If given label name is not found, then label MYADDR is serched.
+#
+# $Id:$
+#
+#########################################################################
+#
+# If we've got 192.244.176.32 as our address, then regard peer as a gateway
+# to 192.244.176.0 network.
+#
+#192.244.176.32:
+# add 192.244.176.0 255.255.255.0 HISADDR
+#
+# If we are invked with an argument ``iij-demand'', then
+# delete existing route entry and add peer as default gateway.
+#
+iij-demand:
+ delete ALL
+ add 0 0 HISADDR
+#
+# Otherwide, simply add peer as default gateway.
+#
+MYADDR:
+ add 0 0 HISADDR
OpenPOWER on IntegriCloud