LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-28-2007, 03:53 AM   #1
Khanye
LQ Newbie
 
Registered: Feb 2007
Posts: 2

Rep: Reputation: 0
Unhappy Option user-class on DHCP client won't work


I have a win2003 dhcp server which validates both MAC addresses and requires the clients to provide a pre-defined user-class (eg 0x103dff8). When clients do not provide the user-class, they do not get a gateway but only an IP and netmask. This works perfectly with Windows clients but I can't seem to be able to get Linux clients to work. My clients are Fedora 5 or RedHat 9. The file I have been trying to manipulate is the /etc/dhclient.conf. Any guidance with this will be much appreciated. I'm fairly new to the Linux world.
 
Old 03-01-2007, 03:30 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
hi, welcome to LQ!!!
Quote:
Originally Posted by Khanye
I can't seem to be able to get Linux clients to work.
could you please elaborate on this a little bit??
 
Old 03-01-2007, 06:54 AM   #3
Khanye
LQ Newbie
 
Registered: Feb 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Post

The DHCP server checks the client MAC address and issues an IP address and an s/mask (but not the defaulty g/way).

I think usually people would just let the DHCP server use the MAC address to determine the client's identity and issue all the addresses. I am trying to get both the MAC address and an ID number which I will declare (the server will look for this ID) validated before a gateway is given by the server.

Trying to implement it in Linux using this:
http://www.die.net/doc/linux/man/man...options.5.html, as a guide. Where in the /etc/dhclient.conf do I place the classid? Do I need to have anything else in the file? Is it the correct file to use to tell the server the client's class ID?

As I say, the process is working well in Windows. I just issue the command IPCONFIG /setclassid "Local Area Connection" the-a-team as guided by http://support.microsoft.com/default...b;en-us;235272
 
Old 08-25-2016, 01:37 AM   #4
nec
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
Hello,

I'm discovering the Slackware distro, and I'm stuck with the same issue : in our DHCP setup, all our DHCP clients (windows or Linux) are configured to send user-class option to the DHCP servers. Requests with no classID are rejected.

Under Debian-like distros, we modify
/etc/dhcp/dhclient.conf
by adding
send user-class "blahblahblah";

I'm trying to use Slax (derived from Slackware), and the only relevant file I found is /etc/dhcpd.conf .
In this file, I tried to add :
userclass blahblahblah
option userclass blahblahblah
user-class blahblahblah
option user-class blahblahblah
userclass "blahblahblah"
option userclass "blahblahblah"
user-class "blahblahblah"
option user-class "blahblahblah"

with reboots between each try.

To no avail.

Using a static network configuration is working well, but it is not what's needed.

Is this /etc/dhcpd.conf the right place to setup the DHCP *CLIENT*?
How comes this parameter does not seem to be passed onto the DHCP server?

Thank you.

Nec
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help installing First Class Client on Puppy slickhare Linux - Newbie 4 11-20-2006 01:34 PM
IMPORTANT:: Linux First Class Client SpiderIRE Linux - Software 1 11-17-2006 05:48 AM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 05:18 AM
Newb Trying to get dhcp-client to work in debian xixer Linux - Networking 3 03-18-2004 12:23 PM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:12 AM.

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