Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
|
 |
03-04-2009, 09:02 AM
|
#1
|
LQ Newbie
Registered: Mar 2009
Posts: 5
Rep:
|
configuration of DHCP server in windows server 2003 with GateWay
Hi, guys how are you doing?
I am new for linuxquestions website and i have several questions regarding WINDOWS server 2003 and i have no experience about how to configure DHCP server with GateWay
1. during the configuration of DHCP from the server, can i include the server IP Address in the Range of address that the scope Distributes? and what if i exculde from the range of IP Address that the scope distrubites?
2. My server IP Address is 10.62.0.1 ( calss A ) and the Router to be configured IP Address is 192.168.1.1 ( calss C ) that is (G.Way) which is DYNAMIC IP-ADDRESS. SO, is it possible to configure this class C gateway in to calss A, IP Address?
3. If the DHCP is already configured from the server, and Aoutorized that means i have now DHCP server and DHCP client. so, what would happen to the client if i removed and reinstalled again the DHCP?
Please Guys i need your help?
THANK YOU VERY MUCH AND GOD BLESS YOU
Last edited by danyee22; 03-04-2009 at 09:04 AM.
|
|
|
03-04-2009, 10:17 AM
|
#2
|
Member
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891
Rep: 
|
This is a LINUX forum, you might want to try a Windows forum!
1. In general terms you must exclude any IP addresses within the scope that you have manually configured onto devices.
2. No you can't give a class A host a class C gateway, it breaks the basic rules of IP. The configured gateway must belong to the same IP network as the host, with the same mask.
3. If you remove and re-install the DHCP, the client will retain the IP it was given until it is reset or its lease expires. When it renews the new server will learn about it.
Other devices will ping the offered address before accepting it, so it shouldn't matter that the new server is unaware of existing leases until they are renewed.
|
|
|
03-04-2009, 10:18 AM
|
#3
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,476
|
Quote:
Originally Posted by danyee22
Hi, guys how are you doing?
I am new for linuxquestions website and i have several questions regarding WINDOWS server 2003 and i have no experience about how to configure DHCP server with GateWay
1. during the configuration of DHCP from the server, can i include the server IP Address in the Range of address that the scope Distributes? and what if i exculde from the range of IP Address that the scope distrubites?
2. My server IP Address is 10.62.0.1 ( calss A ) and the Router to be configured IP Address is 192.168.1.1 ( calss C ) that is (G.Way) which is DYNAMIC IP-ADDRESS. SO, is it possible to configure this class C gateway in to calss A, IP Address?
3. If the DHCP is already configured from the server, and Aoutorized that means i have now DHCP server and DHCP client. so, what would happen to the client if i removed and reinstalled again the DHCP?
Please Guys i need your help?
THANK YOU VERY MUCH AND GOD BLESS YOU
|
1. You can include the server address in a DHCP range, but why would you? You should have a separate range of addresses blocked off for static use (things like printers, servers, etc., which need to stay the same).
2. Yes, addresses can be routed wherever you'd like, as long as you have a path.
3. The client would keep the address, until the lease time expired. It would then try to renew the lease, by contacting the DHCP server. If it couldn't find it, bad things happen.
Also, this is LINUX questions....you say you're running a WINDOWS server. You may want to contact Microsoft for help with their DHCP offerings.
|
|
|
03-04-2009, 11:07 AM
|
#4
|
LQ Newbie
Registered: Mar 2009
Posts: 5
Original Poster
Rep:
|
Thank you very much Guys, but for question number 2, TBOne says i can configure any calss gateway as long as i have a path. so, do you think that the G.Way will work in DHCP CLIENT?
|
|
|
03-04-2009, 12:59 PM
|
#5
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,476
|
Quote:
Originally Posted by danyee22
Thank you very much Guys, but for question number 2, TBOne says i can configure any calss gateway as long as i have a path. so, do you think that the G.Way will work in DHCP CLIENT?
|
Well, I said you can configure what you want, but you need a PATH from point a to point b. But baldy3105 is right on the money with his answer to point 2.
And again, this is LINUX QUESTIONS...you're asking questions about a WINDOWS server. Try a Windows forum.
|
|
|
03-04-2009, 06:17 PM
|
#6
|
Member
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891
Rep: 
|
Well, we're both right, two halves of the same story. To clarify, you can route packets to anywhere from your client, as long as you have a route that points the way. For the client the default-gateway is the first hop in any path to anywhere except the local ip network which the client accesses directly. The client must be able to communicate with the gateway to send packets to it for routing, so the gateway (or router, under IP they are the same thing) MUST share an ip subnet with the client, so that the client can give it packets which it has to forward on to other networks.
So for a network of 10.2.2.x you might define a dhcp scope of 10.2.1.1 to 10.2.1.254 for your DHCP scope. If your gateway on this network is 10.2.1.1 then this would need to be excluded from this scope. Different kit does this in different ways. In Cisco you define a network and exclude static addresses for example. If you have lots of network to play with you might keep 10.2.0.x for routers, 10.2.1.x for servers 10.2.2.x for DHCP clients etc.
So in my example if your client is going to be offered an address of 10.2.1.2, the gateway 10.2.1.1 that I assigned must be specified in the scope as the default gateway, so that the host can find it, and its address must be excluded from the DHCP range to be offered to the clients. The gateway, (be it a router or a server which also routes or a L3 switch or whatever) then needs to have routes to the other networks to which that hosts wants to communicate.
Obviously for another host on the opposite side of the router the whole configuration must be similar for bidirectional routing.
Just remember all hosts on a subnet must share the same mask. The default gateway must be in the same network as the clients it needs to route for.
There are (as always) exceptions to these rules, but you need to know what you are doing if you try to invoke them or you will kill the network dead.
|
|
|
All times are GMT -5. The time now is 08:59 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
|
|