Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 1997 06:04:57 -0500 (EST)
From:      StevenR362@aol.com
To:        zerodist@ms2.hinet.net, freebsd-current@freebsd.org
Subject:   Re: PPP dynamic IP routing
Message-ID:  <970123210549_-2012976636@emout09.mail.aol.com>

next in thread | raw e-mail | index | archive | help
In a message dated 97-01-23 04:28:15 EST, zerodist@ms2.hinet.net (zerodist)
writes:

> I use a dial up phone to dial up to my ISP. Both my ISP and I got ip
>  addresses 
>  randomly. To do automatic routing, I use Ip style as follows in ppp.conf
>  and 
>  ppp.linkup.
>      ifconfig 203.70.2.66/24 203.70.2.4/24 in ppp.conf
>      add 0 0 203.70.2.4/24 in ppp.linkup
>  But it seems not much help. Now I still have to add default route
>  manually.
>  In linux I can solve this problem using device name.
>  Thanks.

c.c. list trimmed to one group.

Try adding the following entry to ppp.linkup  
# Otherwise, simply add peer as default gateway.
MYADDR:
 add 0 0 HISADDR 

You don't need an ifconfig line in ppp.conf but if you insist then do it like
this.
 set ifaddr 203.70.2.66/24 203.70.2.4/24 255.255.255.0
^ remember to have a leading space.

Then when you connect with iij ppp and the connection is established.
Do a "show route" command at the ppp command line.  You should
have a default route entry corresponding to the remote host's ip address.
The "show ipcp" command will tell you both your assigned ip and the remote ip
for this particular dialup session.  It works fine for me, especially with
the -alias
flag.

Steve




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?970123210549_-2012976636>