Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-02-2008, 01:09 PM   #1
LQ Newbie
Registered: Dec 2007
Posts: 2

Rep: Reputation: 0

Hai ,
Iam trying to test the DHCP server in linux.
Iam able to install and run the examples of assigning the IP addresses
to client based on range and pool entries.
My problem is that when i use DHCP option 82 for relay agent information for assigning IP addresses based on the option 82 fields.
They are and sub options for option 82.

Iam able to compare and check the and in class definitions as shown below. They are getting matched, based on the option 82 information received from the relay agent as shown below.

class MyNetWork {
match if == "eth1" ;

class MyPCNetwork {

match if == "SUBMAC"


subnet mysubnet {
pool {
allow members of MyNetWork

when doing the dhcp requests from clients, the packet is broadcasted to client with ip lease.

but when i need to check both the and in a single classs so that it can be used for holding the informaton. when i test the these classes for the option 82 information sub options and ethnic values and or combination of others, etc.

when i

is there any one has code which can allot IP addresss statically to a network based on the network topology. FOr examples, the PC is connected in the port 1 of the Switch and is in turn connected to some other which is having relay agent, and from there to dhcp srver lan.
how can i write dhcpd.conf for checkig the two suboptions of option 82.

to put long story short,

how can use two conditions checks in single class

how can i check the both option 82 sub options inthe dhcp server so that i can assigne ip addresss based on iff = "eth1" and = "client1" .

Sorry for my english.

waiting for reply,

Suresh Guduru


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
Migrate DHCP from Microsoft to ISC DHCP on Linux rsmccain Linux - Networking 4 10-27-2006 07:47 PM
Isc Dhcp Server On Aix 5.2 rylaix AIX 0 09-08-2005 11:42 AM
Suse Linux 9.2 ISC DHCP Server Problem mikfig Linux - Networking 2 12-22-2004 11:40 AM
ISC DHCP Server MAC Address dlucas10 Linux - Networking 1 05-25-2004 05:49 PM
Dhcp Isc Help x86br Linux - Networking 6 04-19-2003 06:10 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration