1995-01-31 07:24:33 +01:00
|
|
|
#########################################################################
|
|
|
|
#
|
|
|
|
# Example of ppp.linkup file
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# This file is checked when PPP establishes network level connection.
|
1996-01-31 16:03:18 +01:00
|
|
|
# PPP command searches label in this file in following way and order.
|
1995-01-31 07:24:33 +01:00
|
|
|
#
|
1996-01-31 16:03:18 +01:00
|
|
|
# 1) At first, IP address assigned into our side is searched and execute
|
1995-01-31 07:24:33 +01:00
|
|
|
# associated command.
|
|
|
|
#
|
|
|
|
# 2) If it didn't found, then label name specified at startup time is
|
|
|
|
# searched.
|
|
|
|
#
|
1996-01-31 16:03:18 +01:00
|
|
|
# 3) If given label name is not found, then label MYADDR is searched.
|
1995-01-31 07:24:33 +01:00
|
|
|
#
|
1996-03-08 10:39:45 +01:00
|
|
|
# $Id: ppp.linkup.sample,v 1.2 1996/01/31 15:03:06 mpp Exp $
|
1995-01-31 07:24:33 +01:00
|
|
|
#
|
|
|
|
#########################################################################
|
|
|
|
#
|
|
|
|
# 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:
|
1996-03-08 10:39:45 +01:00
|
|
|
# add 192.244.176.0 0 HISADDR
|
1995-01-31 07:24:33 +01:00
|
|
|
#
|
1996-01-31 16:03:18 +01:00
|
|
|
# If we are invoked with an argument ``iij-demand'', then
|
1995-01-31 07:24:33 +01:00
|
|
|
# delete existing route entry and add peer as default gateway.
|
|
|
|
#
|
|
|
|
iij-demand:
|
|
|
|
delete ALL
|
|
|
|
add 0 0 HISADDR
|
|
|
|
#
|
1996-01-31 16:03:18 +01:00
|
|
|
# Otherwise, simply add peer as default gateway.
|
1995-01-31 07:24:33 +01:00
|
|
|
#
|
|
|
|
MYADDR:
|
|
|
|
add 0 0 HISADDR
|