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

Notices


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

Rep: Reputation: 0
ISC DHCP Server


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 agent.id and remote.id sub options for option 82.

Iam able to compare and check the agent.id and remote.id 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 agent.id == "eth1" ;
}


class MyPCNetwork {

match if remote.id == "SUBMAC"

}


subnet mysubnet {
pool {
allow members of MyNetWork
192.168.8.2 192.168.8.254
}

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


but when i need to check both the agent.id and remote.id 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.

Problem
=======
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
or

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

Sorry for my english.

waiting for reply,


Suresh Guduru
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:27 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