summaryrefslogtreecommitdiffstats
path: root/etc/ppp/ppp.linkup.sample
blob: 544657aa50cc5b74fc3dbd5641ed2de0c710d757 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#########################################################################
#
#          Example of ppp.linkup file
#
#
#  This file is checked when PPP establishes network level connection.
#  PPP command searches label in this file in following way and order.
#
#  1) At first, IP address assigned into our side is searched 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 searched.
#
# $FreeBSD$
#
#########################################################################
#
# 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 0 HISADDR
#
# If we are invoked with an argument ``iij-demand'', then
# delete existing route entry and add peer as default gateway.
#
iij-demand:
 delete ALL
 add 0 0 HISADDR
#
# Otherwise, simply add peer as default gateway.
#
MYADDR:
 add 0 0 HISADDR
OpenPOWER on IntegriCloud