Don't use HISADDR in ppp.conf examples as it's not
set up properly 'till ppp.linkup is parsed. PR: 3114 Submitted by: Kenneth R. Westerback <krw@tcn.net>
This commit is contained in:
parent
cdc86cbc9f
commit
22c094029f
@ -4,7 +4,7 @@
|
||||
#
|
||||
# Written by Toshiharu OHNO
|
||||
#
|
||||
# $Id: ppp.conf.sample,v 1.11 1997/03/16 00:59:08 jmg Exp $
|
||||
# $Id: ppp.conf.sample,v 1.12 1997/05/08 00:55:42 brian Exp $
|
||||
#
|
||||
#################################################################
|
||||
|
||||
@ -91,6 +91,8 @@ ondemand:
|
||||
# IP will be either, take a wild guess at an some IPs that you can't
|
||||
# currently route to. Ensure that the "delete" and "add" lines are also
|
||||
# present in ppp.linkup so that when we connect, things will be put straight.
|
||||
# Note that it is illegal to use HISADDR here - HISADDR is only available
|
||||
# in ppp.linkup (after the value has been established).
|
||||
#
|
||||
# The /0 bit says that we insist on 0 bits of the specified IP actually
|
||||
# being correct, therefore, the other side can assign any IP numbers.
|
||||
@ -104,7 +106,7 @@ pmdemand:
|
||||
set timeout 120
|
||||
set ifaddr 10.10.10.10/0 10.10.11.11/0 255.255.255.0
|
||||
delete ALL
|
||||
add 0 0 HISADDR
|
||||
add 0 0 10.10.11.11
|
||||
set openmode active
|
||||
|
||||
# Examples to connect using a null-modem cable from one machine to another.
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $Id: userppp.sgml,v 1.12 1997/02/22 12:59:40 peter Exp $ -->
|
||||
<!-- $Id: userppp.sgml,v 1.13 1997/03/14 04:17:44 brian Exp $ -->
|
||||
<!-- The FreeBSD Documentation Project -->
|
||||
|
||||
<sect>Setting up user PPP<label id="userppp">
|
||||
@ -233,7 +233,7 @@ nameserver 158.152.1.65
|
||||
10 set timeout 120
|
||||
11 set ifaddr x.x.x.x y.y.y.y
|
||||
12 delete ALL
|
||||
13 add 0 0 HISADDR
|
||||
13 add 0 0 y.y.y.y
|
||||
14 set openmode active
|
||||
</verb></tscreen>
|
||||
Do not include the line numbers, they are just for this discussion.
|
||||
@ -321,11 +321,13 @@ x.x.x.x:
|
||||
<tscreen><verb>
|
||||
ifaddr 10.0.1.1/0 10.0.1.2/0
|
||||
delete ALL
|
||||
add 0 0 HISADDR
|
||||
add 0 0 10.0.1.2
|
||||
</verb></tscreen>
|
||||
You should NOT use 0 as either IP address. If you do, ppp will not be
|
||||
able to set up the correct initial entries in the routing table.
|
||||
|
||||
Note also that the HISADDR macro is not yet available in ppp.conf.
|
||||
|
||||
See the pmdemand entry in the files <tt>/etc/ppp/ppp.conf.sample</tt> and
|
||||
<tt>/etc/ppp/ppp.linkup.sample</tt> for a detailed example.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user