January 23, 2022, 08:50:02 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: dhcp server  (Read 4351 times)

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
dhcp server
« on: January 06, 2005, 10:53:24 AM »
Hello Frds
i have a question abt DHCP server,
I have configured DHCP SERVER , it is able to give ip- addresses dynamically, but my pb is that i want to give name to my clients dynamically by using DHCP SERVER.

if suppose your DHCP server assign ip-address to a client as 192.168.2.183 , but  i want to assign name to a this client dynamically as ws183 means:
if it assign ip to some client like 192.168.2.34, then i also want to give name dynamically as ws34
mens i want to append ws to last octet of ip-address, how can i give names  like this dynamically,

CAN ANYONE HELP ME PLZZZ.............
Regards
Gaurav

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
dhcp server
« Reply #1 on: January 06, 2005, 02:59:22 PM »
I think that is the work of BIND !! called DNS server..

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
dhcp server
« Reply #2 on: January 07, 2005, 04:53:52 AM »
hi ricky
i know this is a work of BIND
CAN U TELL WHICH CONFIGURATION IS TO ADD IN THAT ?
regards
gauravbajaj

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
dhcp server
« Reply #3 on: January 07, 2005, 08:08:38 AM »
this can't be described here.. better look for a good tutorial for BIND

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
dhcp server
« Reply #4 on: January 08, 2005, 01:22:05 PM »
If u intend to do locally without a dns. Read along:

So if u want to do that, i can suggest u to go to :

http://www.ltsp.org

See how to configure dhcp server. I outline here the things u need to do:

1, Edit ur "dhcpd.conf" file
2. Edit ur "hosts" file.
3. Edit ur "resolv.conf" file (Normally u can omit this if
    u have a hostname for u pc set previously other
    than localhost.localdomain)

Read  the ltsp documentation.

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
dhcp server
« Reply #5 on: January 11, 2005, 03:46:07 AM »
i know how to configure DHCP & DNS but i want to give name to clients automatically  using DHCP . do u know how to do this?
the site
 www.ltsp.org
has  no answer of my query

tell me if u know this
bye
 gaurav

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
dhcp server
« Reply #6 on: January 12, 2005, 05:00:10 AM »
hello can anyone knows abt this?
tell me if u know

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
dhcp server
« Reply #7 on: January 12, 2005, 05:02:39 AM »
Hi all
Can you help me to sort my pb of DHCP server, i wanna give name to clients Dynamically in DHCP server. i did it only once but know i  don't remember it
bye
gaurav

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
dhcp server
« Reply #8 on: January 12, 2005, 11:34:11 AM »
well..  I think you are saying that how to assign fix info for a specific client on the network using dhcp !!

Say you want to assign ip address 192.168.1.23  to tthe client with mac address of 00:A1:DD:74:C3:F2 .

To do so.. you first have a gobal option specifying the domain for whole network , include following line changing to name you want in begining of your dhcpd.conf .
Code: [Select]
option domain-name              "yourdomain.com";
Now say you want to assign some name like computerA then it will look like computerA.yourdomain.com .
To do so add following
Code: [Select]
host computerA
{
option host-name "computerA.yourdomain.com";
      hardware ethernet 00:A1:DD:74:C3:F2;
      fixed-address 192.168.1.23;
 }

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
dhcp server
« Reply #9 on: January 13, 2005, 04:40:48 AM »
No dear
You can't understand what i am saying,
Actually suppose my dhcp server give ip-address to some client as 192.168.2.183 but i want to give dynamic name to this clients as 'ws183' means  last octet that is 183 append to ws ,so  it  becomes ' ws183'. This is only for one computer , suppose i have 10 computers in my network  & my DHCP server give ip-address to these computers as 192.168.2.183,  192.168.2.184,........
& i want to give name to client that has ip as 192.168.2.183 as ws183, to client that has ip as 192.168.2.184 as ws184. THAT MEANS last octet of ip-address is append with ws .

SO do u  know where to give this entry or u know any shell script for this ?
IF U KNOW PLEASE TELL ME? I NEED IT URGENT
THXX IN ADVANCE
BYE
gaurav

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
dhcp server
« Reply #10 on: January 13, 2005, 07:16:12 AM »
THXXXXX RICKY
YOUR CONFIGURATION WORKS,THANKS A LOT
BUT IF I HAVE LARGE NO OF COMPUTERS IN N/W  AND I WANT TO GIVE NAME TO ALL OF THEM DYNAMICALLY ,THEN I HAVE TO MAKE ENTRY FOR EACH CLIENT IN dhcpd.conf FILE.

GAURAV