Couldn't you use the "LOCAL IP:REMOTE IP" function in your options file:

192.168.1.1:192.168.1.100
Your machine's local IP:The Ip you want to give the caller

If you put this option into a file specific to your dial in device, then whenever
somebody calls the phone line on that device the options file will allocate the
appropriate IP address for that device. This happens regardless of what interface
(ppp0, ppp1 or whatever) is allocated.

The device specific file should follow this naming convention:
/etc/ppp/options.ttyS0
/etc/ppp/options.ttyS1
/etc/ppp/options.ttyS2
.....

If you read the ppp man page you will find, that ppp when activated (for example by
mgetty or manually) will first read the command line options, then the general options
file (/etc/ppp/options), then the device specific options file
(/etc/ppp/options.ttyS0).

Somewhere in there are also user specific options. I have never used that so, if you
need to, look it up.

I hope this is what you meant.

Regards
Bernhard

"Adi C." wrote:

> I have no authentication at all. I will show you the config files:
> in /etc/inittab:
> -----
> ....
> p0:2345:respawn:/usr/sbin/pppd /dev/ttyC0
> ....
> ----
> In /etc/ppp/options:
> -----------
> lock
> crtscts
> modem
> -detach
> asyncmap 00000000
> mru 296
> mtu 296
> ---------
> In /etc/ppp/options.ttyC0:
> --------
> 115200
> bsdcomp 15
> defaultroute
> connect '/usr/sbin/chat -v -f /etc/ppp/chat.warp'
> -----------
> In /etc/ppp/chat.warp:
> --------
> ABORT   "NO CARRIER"
> ABORT   "BUSY"
> ABORT   "ERROR"
> TIMEOUT 40
> ""      +++\dAT&F1&D2X3&N16&U14
> OK      ATD
> CONNECT ""
> -----------
>
> This is all I have, and another 7 leased lines whit similar
> configurations. Those lines don't stay up all the time.
>
> On Fri, 6 Aug 1999, Pierce Colemon Wong wrote:
>
> > why not setting the ip in the pap-secrets as to a login name?
> >
> >
> > "Adi C." wrote:
> >
> > > Well, the problem is that the line is a leased line administrated by me.
> > > The ISP is not responsible for the allocation of IP. I have one IP for the
> > > connection. The problem is that sometimes that IP get assigned to ppp0,
> > > other
> > > times to ppp1, etc.
> > >
> > > On Thu, 5 Aug 1999, Ray Olszewski wrote:
> > >
> > > > It depends. During negotiation, the two sides need to agree on the IP
> > > > addresses that the link will use at both ends. In practice, it is customary
> > > > for the end that answers the phone to set the IP addresses (since it has a
> > > > pool of addresses to assign, typically). This can be done statically (tied
> > > > to the userid used to log in, for example - that's how my connection works)
> > > > or dynamically, assigning an arbitrary address from a pool, or an address
> > > > tied to the phone line that received the call, or probably other things I'm
> > > > not thinking of. So ... talk to your ISP and see if you can arrange what you
> > > > want.
> > > >
> > > > At 05:30 PM 8/5/99 +0300, Adi C. wrote:
> > > > >Hi!
> > > > >I wonder if a ppp device (e.g ppp0) can be associated to always stay on a
> > > > >specific IP (e.g. 192.168.1.1).
> > > > [rest deleted]
> > > >
> > > > ------------------------------------"Never tell me the odds!"---
> > > > Ray Olszewski                                        -- Han Solo
> > > > Palo Alto, CA  94303-3603                     [EMAIL PROTECTED]
> > > > ----------------------------------------------------------------
> > > >
> > >
> > > -
> > > To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
> > > the body of a message to [EMAIL PROTECTED]
> >
> > --
> > comee
> > Pierce Wong
> > [EMAIL PROTECTED]
> > CDC Internet Administrator
> > Technical Advisor.
> >
> >
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
> the body of a message to [EMAIL PROTECTED]


-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to