LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 10-29-2002, 09:27 AM   #1
bwilliam79
LQ Newbie
 
Registered: Oct 2002
Location: Springfield, MO
Distribution: SUSE
Posts: 12

Rep: Reputation: 0
Question DHCP vendor-encapsulated-options substring


I am trying to get a substring from option 43 (vendor-encapsulated-options), but the DHCP server doesn't seem to be parsing out the information I need. I am needing it to differentiate between PXE clients so I don't have to keep track of MAC addresses. The data coming in from the client is +@?04694246 and I need to parse out the 4694 part. The line I am using to try to get the substring is

class "TEST" {
match if substring(vendor-client-option, 4, 4) = "4694";
}

then in my address range I have the "allow members of "TEST";" statement without the outside quotes. The DHCP daemon starts up fine, but when the client requests an address, I get the message that there are no available leases. Does someone know if I am parsing wrong or if I can have the parsed output written to a log so I can see what I am getting? Thanks!
 
Old 10-29-2002, 10:08 AM   #2
bwilliam79
LQ Newbie
 
Registered: Oct 2002
Location: Springfield, MO
Distribution: SUSE
Posts: 12

Original Poster
Rep: Reputation: 0
I posted the wrong info, the line I am using should be

class "TEST" {
match if substring(vendor-encapsulated-options, 4, 4) = "4694";
}

Sorry about that.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
replace a substring with another string in C zeppelin Programming 21 11-09-2009 09:59 PM
Replace substring with SED marri Programming 2 07-09-2005 05:18 PM
how to find an exact substring match? ldp Programming 7 02-22-2005 06:28 AM
C++ STL count() number of substring occurences... nyk Programming 4 06-25-2004 07:12 AM
Custom DHCP Options Llawnroc Linux - Networking 1 09-08-2003 12:47 AM


All times are GMT -5. The time now is 05:19 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration