HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- creating a dhcp class
Operating System - Linux
1828676
Members
2209
Online
109984
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2003 04:28 AM
01-29-2003 04:28 AM
I am trying to create a dhcp class in the dhcpd.conf file based on the first 3 bits of a MAC address.
We have to configure a large number of mobile devices which all have a MAC address starting 00:a0:f8. I want to create a class based on this information so I can alloacte a sperate IP range and also a short default lease time.
A "tcpdump -lenx -s 1500 port 67 | dhcpdump" command give the following information as part of a dhcprequest packet:
OPTION: 61 ( 7) Client-identifier 0100a0f827540b
but using an entry:
match if substring(option dhcp-client-indentifier, 0, 10) = "0100A0F8"
does not work.
We have to configure a large number of mobile devices which all have a MAC address starting 00:a0:f8. I want to create a class based on this information so I can alloacte a sperate IP range and also a short default lease time.
A "tcpdump -lenx -s 1500 port 67 | dhcpdump" command give the following information as part of a dhcprequest packet:
OPTION: 61 ( 7) Client-identifier 0100a0f827540b
but using an entry:
match if substring(option dhcp-client-indentifier, 0, 10) = "0100A0F8"
does not work.
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2003 03:26 PM
01-29-2003 03:26 PM
Solution
Umm.. lets see..
substring takes two paramters, an offset, and a length.
Now, given that you are grabbing 10 characters of the 'dhcp-client-identifier', and comparing it against only 8 digits, I'm picking you'll never get a match.
Try using a length of '8', i.e.:
match if substring(option dhcp-client-identifier, 0, 8) = "0100A0F8"
Or bugger off dhcp-client-identifier, and just use:
match if substring(hardware, 0, 8) = "0100A0F8"
If these still fail, show us a bit more of your dhcpd.conf than just this one line.
substring takes two paramters, an offset, and a length.
Now, given that you are grabbing 10 characters of the 'dhcp-client-identifier', and comparing it against only 8 digits, I'm picking you'll never get a match.
Try using a length of '8', i.e.:
match if substring(option dhcp-client-identifier, 0, 8) = "0100A0F8"
Or bugger off dhcp-client-identifier, and just use:
match if substring(hardware, 0, 8) = "0100A0F8"
If these still fail, show us a bit more of your dhcpd.conf than just this one line.
One long-haired git at your service...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP