Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-21-2005, 07:57 PM
|
#1
|
Member
Registered: Feb 2005
Posts: 42
Rep:
|
Problem with DHCP Server.
Hi I have recently built a debian dhcp server for my company. I got everything on it up and running for our DSL customer. But when we cut our wireless customers over to DHCP we ran into some major problems. What I have going on is I have some client radios out there that when they send out a DHCP request to my server they put there mac address at the front of the packet. So when it hits the server the server sees that mac and tries to send the offer back to that mac however the radio with that mac will not accept this. I need my DHCP server to look at the mac address of the device that is actually plugged into these radios. The mac of the device is there because it is what sent out the request. I am using SmartBridges radios and I have searched there website and they have told me that in order fix this problem I need to make my server look at the broadcast message instead of the Unicast message. So from the research that I have done I have found that I need to put this command into my DHCP server "always-broadcast on;" however I have to put this into an if statement or a class declaration or a host declaration. I think that I can build this if statement into my subnet declaration and that will work. However to build the if statement I have been told that I will need to use the "vendor-class-identifier" which I don't really understand how to use and get this information.
OK so now for the real questions here. Can I set an identifier into my if statement for a certain mac address?? The radios that I am using all have 00:0c as the beginning of there mac address. If I can how do I go about doing this. If I can't use the mac address how do I figure out what class-vendor-identifier I want to use?? Also does anyone know of an easier solution to this problem?? If so I would like to hear any thoughts. If you need anymore info from me please let me know and I will do my best to get it to you.
Thanks
Brian
|
|
|
11-22-2005, 02:23 PM
|
#2
|
Member
Registered: Feb 2001
Location: South Africa
Distribution: Fedora, Mandriva, PCLOS, SUSE - anything a can get my hands on
Posts: 140
Rep:
|
Hmmm, I'm not sure I understand your network setup......
Do you need to give the wireless pc static ip's from the dhcp?
Do they get any ip's at all from the dhcp server?
If they do get a ip, can you ping them?
Maybe you can post your dhcp.conf?
|
|
|
11-22-2005, 06:25 PM
|
#3
|
Member
Registered: Feb 2005
Posts: 42
Original Poster
Rep:
|
Hi thank you for getting back to me on this. Yes I want the client pc or router to get a public ip address. And no when the server gives out an address the client pc or router does not receive the address. What is happening is that the radio's that I am using have NAT macaddress enabled on them. So when the client pc or router sends out a request to the server the radio that it sends the request over puts it's mac address in front of the request. So when it gets to the server it then reads that mac address and tries to send the offer back to it. However that radio is unable to accept this offer and does not pass it on to the device. So I have been told that i have to put the command of "always-broadcast on" into my dhcpd.conf file. But in order to do so I have to have an if statement or a class or host declaration. Here is my dhcpd.conf file so that you can take a look at it and see what I have.
#
# Sample configuration file for ISC dhcpd for Debian
#
# $Id: dhcpd.conf,v 1.4.2.2 2002/07/10 03:50:33 peloy Exp $
#
#option definitions common to all supported networks...
#option domain-name "fugue.com";
#option domain-name-servers 207.171.***.***, 207.171.***.***;
#option subnet-mask 255.255.***.***;
#option vendor-class-identifier; <-- [Here is where I tried to use the identifier but with no such luck. And as you can see below this is where I think it would have to go to work.]
#default-lease-time 172800;
#max-lease-time 172800;
#subnet 207.171.192.*** netmask 255.255.***.*** {
# range 207.171.***.*** 207.171.***.***;
# option routers 207.171.***.***;
# if {
# option vendor-class-identifier (Unique Identifier);
# always-broadcast on;
# range 207.171.***.*** 207.171.***.***;
# }
# else {
# range 207.171.***.*** 207.171.***.***;
# }
#}
I know I have it all edited out but as you can see I have the if else statement in my subnet declaration. I am trying to use the Vendor-class_identifier as a way to identify any of these radios on the network. So if it matches up with the identifier I want to have always-broadcast on and I want it to pull from this range. However if it does not match this then go ahead and pull from this range.
So what I am having trouble with here is I could not get the option vendor-class-identifier to work in my config. I tried putting it up at the beginning of the dhcpd.conf file and in the subnet declaration but it would not work. Once I find a unique identity for all of those radio's I think that this statement should work. Am I wrong?? If you need anything else please let me know.
Thank You
Brian
|
|
|
All times are GMT -5. The time now is 07:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|