auto ip assigning according to username!

Taking care of your Linux box.
TheElectron707
Lance Naik
Posts: 28
Joined: Sun Jun 08, 2003 10:46 am
Location: Lahore

auto ip assigning according to username!

Postby TheElectron707 » Thu Feb 05, 2004 4:08 pm

TheElectron707

arifishaq
Lance Naik
Posts: 39
Joined: Fri Oct 03, 2003 2:20 pm

give this a try

Postby arifishaq » Fri Feb 06, 2004 8:49 pm

It doesn't seem quite feasible to me, honestly. DHCP comes into action while your client is booting. The IP address has already been assigned by the time you get to know who the user is (assuming that on a given computer, any user can sit down and log in).

However, you may want to try the Internet Systems Consortium site http://www.isc.org/index.pl?/sw/dhcp/ They provide a freely redistribuitable reference implementation of the DHCP client and server.

Here is a snippet from their DHCP FAQ. It may make some sense to you. I haven't had too much time to go through this stuff. Sorry.

[i]I want to hand out specific (fixed) IP address to clients.
Q: I need the dhcp server to give out fixed ip address to each client. So when each machine boots dhcp will give the same address to each one.
A: Write a host statement for each machine with a fixed-address declaration and a hardware declaration, and then declare ``boot-unknown-clients false;'' at the top level. This is all documented in the dhcpd.conf.5 man page.

[/i]

Good luck!

TheElectron707
Lance Naik
Posts: 28
Joined: Sun Jun 08, 2003 10:46 am
Location: Lahore

Postby TheElectron707 » Fri Feb 06, 2004 10:21 pm

Well, yes i am aware of that, one can assign STATIC ip based on the MAC address of the ethernet card. but the no. of clients is very large that i might not be able to handle individual ips so how can i handle a very very long mac address for each client. plus i will have to go through much tourble if any client changes in NIC as he will get a new MAC.........

but thanx for ur concern.
TheElectron707

zaeemarshad
Lieutenant Colonel
Posts: 660
Joined: Sat Jul 06, 2002 12:35 pm
Location: Islamabad
Contact:

Postby zaeemarshad » Wed Feb 11, 2004 3:30 pm

hmmm.. i smell scripting here. :) . You can log all the mac addresses accessing your firewall with a script going through all the entries and filtering out all the previously unknown mac addresses. learning a bit of awk might help. otherwise what you are asking for may not be possible. I remember that squid uses some identd server to block specific usernames but dunno if that will work with dhcp or not. There doesnt seem to be such an implementation in all the dhcp servers available.

Regards
Zaeem

arifishaq
Lance Naik
Posts: 39
Joined: Fri Oct 03, 2003 2:20 pm

there might just be ...

Postby arifishaq » Thu Feb 12, 2004 3:36 pm



Return to “Administration”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest