?
Solved

how to assign the gateway and dns entires from the dhcp when configured with ddns

Posted on 2011-10-10
10
Medium Priority
?
323 Views
Last Modified: 2012-05-12
Dear Experts:
Configured ddns using dhcp and bind packages, working perfectly now the requirement is to enable the dhcp for the mobile users (laptop users) where they will be getting the ip address , gateway and dns from the dhcp .
------------------
1.static zones  are used for the the servers
2.dynamic zones for the desktops and workstations but this does not have gateway or dns so not internet.
3. now the requirement is to handle for the mobile laptop users, how to handle for mobile users , (if same laptops are used by the mobile users then can capture the mac and use this for reserving particular ip address).
how to acheive the above "3" is it by defining the mac and ip address , gateway and dns in the dhcpd.conf please suggest me how to declare this in the dhcpd.conf.
Please help, thanks in advance.


0
Comment
Question by:D_wathi
  • 7
  • 3
10 Comments
 
LVL 21

Expert Comment

by:Papertrip
ID: 36943362
Is it required to have laptops and mobile devices on a separate subnet from the desktops?  Why do you want to do MAC address matching?

The information for gateway and DNS servers is configured globally in dhcpd.conf using the 'options' directive, but if it needs to be different for a particular subnet declaration then you just put those options into that statement.

From a previous question of yours, I have an excerpt of your dhcpd.conf, which appears to be setup properly, so I'm not sure why #2  isn't working.  FYI all of this is completely unrelated to you having DDNS setup.

# option definitions common to all supported networks...
option domain-name "dyn.shriramdb.com";
option domain-name-servers 192.168.1.244;
option routers 192.168.1.244;
option broadcast-address 192.168.1.255;
option ntp-servers 192.168.1.244;

Open in new window


0
 

Author Comment

by:D_wathi
ID: 36943500
Hi Sir, thanks for the reply, i am not looking at separate subnet for laptops and mobile devices.
As of now if manually assign the ip , gateway and dns as per the static zones internet is working for those systems. have assigned for servers and few desktops and work stations.

How to make the laptop (mobile users) to get internet connection, when pointed laptops to obtain ip and dns server automatically they get the ipaddress but they are not getting internet.

Actually,  option routers should be 192.168.1.2  as the router eth0 ip is 192.168.1.2 and this serves as gateway for the entire lan. i think if i change option routers to 192.168.1.2 then laptop users will get internet , please suggest me is this correct.

Thanks in advance








0
 
LVL 21

Expert Comment

by:Papertrip
ID: 36943586
Actually,  option routers should be 192.168.1.2  as the router eth0 ip is 192.168.1.2 and this serves as gateway for the entire lan. i think if i change option routers to 192.168.1.2 then laptop users will get internet , please suggest me is this correct.

Correct.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:D_wathi
ID: 36943723
Thanks sir, with this any user pointing their system to the dhcp server then they will be able to access internet , Sir, is it possible to control, that is only laptop users should have internet access and for all the other desktop users internet should not be availble, i dod not know how to acheive this please help.

Is it something like the below or all the mobile and laptop users
host laptopuser1 {
      hardware ethernet 08:00:2b:4c:59:23;
     fixed-address 192.168.1.222;
       option routers 192.168.1.2 # actual router#
   }
---------------------------------------
and in the main options-routers giving a fake which is non router so that other than the mac address declaration internet will not be accessible

please suggest me to go further or is any other medthod, please help.
0
 
LVL 21

Expert Comment

by:Papertrip
ID: 36943818
Something like that should not be done through DHCP, you should create a new subnet on your network and configure your router and/or firewall to disallow that subnet to reach the internet.

Once you do that, then you just create a new subnet declaration for it in dhcpd.conf, and you won't need to change any options.
0
 
LVL 21

Expert Comment

by:Papertrip
ID: 36943839
Sorry that last sentence is incorrect.
You will need to change options as your gateway and broadcast will not be the same for the new subnet.

You can probably use DHCP for what you are trying to do, but it really isn't the right way and I would expect it to cause problems for you in the future, if you can even get it to work in the first place.
0
 
LVL 21

Expert Comment

by:Papertrip
ID: 36943925
If you setup a new subnet, you will need to add a new interface to your dhcp server that listens on that subnet and then create a new subnet declaration that listens on that interface with all the correct network info for that subnet.  There may be a "better" way to do this perhaps using vlan tagging, but I'm not positive about that and don't have time to research it right this moment.
0
 
LVL 21

Expert Comment

by:Papertrip
ID: 36943991
http://linuxmanpages.com/man5/dhcpd.conf.5.php

Read the sections labeled "ADDRESS POOLS" and "ALLOW AND DENY WITHIN POOL DECLARATIONS"
0
 
LVL 21

Accepted Solution

by:
Papertrip earned 2000 total points
ID: 36944024
http://linuxmanpages.com/man5/dhcpd.conf.5.php#lbAE
http://linuxmanpages.com/man5/dhcpd.conf.5.php#lbAX

If I am understanding this correctly, then what you want to do can be done using that approach.  You will need to add host declarations for each of the machines that you want to be a "known-client".  FYI I have never tried to do what you are doing, but I think this should work just fine.  I still think however that you should be handling the internet access on your router and/or firewall instead of just supplying a fake router.

http://linuxmanpages.com/man5/dhcpd.conf.5.php#lbAU
0
 

Author Comment

by:D_wathi
ID: 36944092
Sir, Thank you very much for the support. will go through the provided links and do it accordingly. Thanks once again.
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how a domain name may be inadvertently appended to all DNS queries. This exhibits as described below. (CODE)And / Or: (CODE) Cause This issue can occur in either of these two scenarios. EITHER 1. A Primary DNS S…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question