LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-24-2001, 11:33 PM   #1
anoop_chandran
Member
 
Registered: Nov 2001
Distribution: Redhat 7.0 ,mandrake 8.0 ,Redhat 7.2
Posts: 99

Rep: Reputation: 15
dynamic IP........


hi,

how can i allocate IP addressess dynamically to my dial-in clients.
as of now i have respective options.ttyS0,ttyS1.........for ttyS0 and ttyS1 with static IP in each of these files.

should i torture my named.conf again?if so ,how?

thanx ........
 
Old 11-25-2001, 12:08 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Even though the ip is static on the server end it is dhcp to the client end.

They do not have to set it up manually. right?

Also the dns servers are sent to the clients when they login.

I think thats the way you want it.

Mine is setup that way and I see no reason why it should change ip addresses.

If you do not have yours working that way you need to send the client it's ip address and dns servers.

note the ip addresses in the last line, it is serverip:clientip

my options file

-detach
asyncmap 0
modem
crtscts
lock
require-pap
refuse-chap
login
proxyarp
ms-dns 24.18.24.15
ms-dns 24.18.24.17
10.0.0.1:10.0.0.101
----------------------------------------------------------------------------------------------
pap-secrets file

# client server secret IP addresses
fishdawg * "" 10.0.0.101

---------------------------------------------------------------------------------------------
If these users are dialup only you might want to set there default shell to /usr/sbin/pppd

this way they will start pppd instead of using pap

you can make a .ppprc file in each of these users home folder and it will contain the serverip:clientip line

this will give each user the ip you want to assign when they login

----------------------------------------------------------------------------------------------

I use Autoppp for mine and the settings at the top.
 
Old 11-25-2001, 12:26 AM   #3
anoop_chandran
Member
 
Registered: Nov 2001
Distribution: Redhat 7.0 ,mandrake 8.0 ,Redhat 7.2
Posts: 99

Original Poster
Rep: Reputation: 15
thanx..........
but i already have this UP and running.........
as u said the IP we provide to the client is dynamic from their point of view...but we have a single ip always for the client
i just wanted to know whether it's possible to allote the client different IP's whenever they connect...

with the setup i have now ,whenever someone dials into my machine thru modem0-------ttyS0 they get an IP ,and they'll be getting the same IP everytime they dialin thru modem0-----ttyS0..is it possible to change this so that every time he dials in he gets different ip..say in the range 192.168.1.100 to 192.168.1.110.

thanx again.....
 
Old 11-25-2001, 12:35 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I guess you could if you really want to.

I can't see why you would .

You need to dynamically change the file with the ip in it

Maybe there is another way but I don't know what it is.

I guess you could echo the contents of a file containing everything except the ipaddress in it.

then append the ipaddress that you randomly select to the file
using >>



Well I think I have finally went off the deep end here with this


create a count file and put 1 into it.

when the user logs off look at this file and echo the ipaddress associated with 2 into the options file, then update the contents of the count file to 2

etc...












Last edited by DavidPhillips; 11-25-2001 at 12:40 AM.
 
Old 11-25-2001, 01:46 AM   #5
anoop_chandran
Member
 
Registered: Nov 2001
Distribution: Redhat 7.0 ,mandrake 8.0 ,Redhat 7.2
Posts: 99

Original Poster
Rep: Reputation: 15
:-)


thanx.........
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dynamic linking joshknape Linux - Software 1 09-19-2005 09:43 PM
Dynamic IP - DNS? Terra Niux Linux - Newbie 9 12-06-2004 01:39 PM
Getting Dynamic IP eponymous Linux - Networking 5 10-09-2004 06:08 PM
Dynamic name resolution for dynamic IP merlin740 Linux - Software 2 10-04-2004 05:56 PM
Dynamic IP? Gerardoj Linux - Networking 5 05-27-2003 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration