Mention sticky routes.

Also, complete the comment about the dial command in the multilink
example.
Suggested by: Martin Cracauer <cracauer@cons.org>
This commit is contained in:
Brian Somers 1998-05-05 23:31:45 +00:00
parent 610b185f37
commit c57a7a001f
2 changed files with 24 additions and 36 deletions

View File

@ -4,7 +4,7 @@
#
# Originally written by Toshiharu OHNO
#
# $Id: ppp.conf.sample,v 1.28.2.4 1998/04/24 19:16:23 brian Exp $
# $Id: ppp.conf.sample,v 1.28.2.5 1998/04/30 23:54:38 brian Exp $
#
#################################################################
@ -42,16 +42,7 @@ default:
# An on demand example where we have dynamic IP addresses:
# If the peer assigns us an arbitrary IP (most ISPs do this) and we
# can't predict what their IP will be either, take a wild guess at
# some IPs that you can't currently route to. Ensure that the "delete"
# and "add" lines are also present in the pmdemand section of ppp.linkup
# so that when we connect, things will be put straight.
#
# This will work with static IP numbers too. You can also use this entry
# if you don't want on-demand dialup. The "set ifaddr", "delete" and
# "add" lines are required for on-demand. The "delete" and "add" lines
# should not be used if you're not in -auto mode. Note, for dynamic IP
# numbers, whether dialing manually or on demand, there should *always*
# be an entry in ppp.linkup.
# some IPs that you can't currently route to.
#
# The /0 bit in "set ifaddr" says that we insist on 0 bits of the
# specified IP actually being correct, therefore, the other side can assign
@ -60,6 +51,11 @@ default:
# The forth arg to "set ifaddr" makes us send "0.0.0.0" as our requested
# IP number, forcing the peer to make the decision.
#
# This entry also works with static IP numbers or when not in -auto mode.
# The ``add'' line adds a `sticky' default route that will be updated if
# and when any of the IP numbers are changed in IPCP negotiations.
# The "set ifaddr" is required in -auto mode.
#
# Finally, the ``enable dns'' bit tells ppp to ask the peer for the
# nameserver addresses that should be used. This isn't always supported
# by the other side, but if it is, /etc/resolv.conf will automatically be
@ -70,8 +66,7 @@ pmdemand:
set login "ABORT NO\\sCARRIER TIMEOUT 5 ogin:--ogin: ppp word: ppp"
set timeout 120
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
delete ALL
add 0 0 HISADDR
add default HISADDR
enable dns
# When we want to use PAP or CHAP instead of using a unix-style login
@ -85,8 +80,7 @@ PAPorCHAPpmdemand:
set authkey MyKey
set timeout 120
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
delete ALL
add 0 0 HISADDR
add default HISADDR
enable dns
# On demand dialup example with static IP addresses:
@ -95,17 +89,16 @@ PAPorCHAPpmdemand:
#
# # ppp -auto ondemand
#
# It is not necessary to have an entry in ppp.linkup when both IP numbers
# are static. Be warned though, the MYADDR: label is executed from
# ppp.linkup if the "ondemand:" and "192.244.176.44" labels are not found.
# With static IP numbers, our setup is similar to dynamic:
# Remember, ppp.linkup is searched for a "192.244.176.44" label, then
# a "ondemand" label, and finally the "MYADDR" label.
#
ondemand:
set phone 1234567
set login "ABORT NO\\sCARRIER TIMEOUT 5 ogin:--ogin: ppp word: ppp"
set timeout 120
set ifaddr 192.244.185.226 192.244.176.44 255.255.255.0
delete ALL
add 0 0 HISADDR
set ifaddr 192.244.185.226 192.244.176.44
add default HISADDR
enable dns
# Example segments
@ -355,7 +348,8 @@ loop-in:
# the ``link'' command.
#
# You can now ``dial'' specific links, or even dial all links at the
# same time. The `dial'
# same time. The `dial' command may also be prefixed with a specific
# link that should do the dialing.
#
mloop:

View File

@ -12,40 +12,34 @@
# 3) If no label has been found, use MYADDR if it exists.
#
#
# $Id: ppp.linkup.sample,v 1.12 1997/11/18 18:59:57 brian Exp $
# $Id: ppp.linkup.sample,v 1.13 1997/11/18 19:21:47 brian Exp $
#
#########################################################################
# By default, simply delete any existing default route and add the peer
# as default gateway.
# It is no longer necessary to re-add the default route here as our
# ppp.conf route is `sticky' (see the man page).
# If you're into sound effects when the link comes up, you can run
# ``auplay'' (assuming NAS is installed and configured).
#
MYADDR:
delete 0
add 0 0 HISADDR
!bg /usr/X11R6/bin/auplay /etc/ppp/linkup.au
# If we've got 192.244.176.32 as our address, then regard peer as a gateway
# to 192.244.176.0 network.
# to 192.244.176.0 network. This may also be done in ppp.conf instead.
#
192.244.176.32:
add 192.244.176.0 0 HISADDR
# If we are invoked with an argument ``pmdemand'', then
# delete all existing (wrong) routing entries and add the peer IP
# as our default gateway.
# This is vital if you don't already know either sides IP number.
#
# We also want to execute a script on startup. This script can do
#You may want to execute a script after connecting. This script can do
# nice things such as kick off "sendmail -q", "popclient my.isp" and
# "slurp -d news". It can be passed MYADDR, HISADDR and INTERFACE
# as arguments too - useful for informing a DNS of your assigned IP.
#
# You may also want some sound effects....
#
pmdemand:
delete ALL
add 0 0 HISADDR
!bg /etc/ppp/ppp.etherup.pmdemand
! sh -c "cat /etc/ppp/linkup.au >/dev/audio"
# If your minimum call charge is 5 minutes, you may as well stay on
# the line for that amount of time. If we want a 60 second subsequent