Win 2k3 DHCP Server help!
#1
Scooby Regular
Thread Starter
Join Date: Aug 2001
Location: Hampshire
Posts: 10,954
Likes: 0
Received 0 Likes
on
0 Posts
Win 2k3 DHCP Server help!
Righto!
I've got a machine which is sitting on a management LAN acting as a DHCP server for 2 subnets which are in a Superscope.
One adapter has an address on 1 subnet, the other adapter has an address on the other subnet, both are plugged into switch serving the management LAN.
I need the clients on each subnet (all plugged into same switch) to be able to talk to each other.
I've enable IP forwarding on the DHCP server box, and as options in both scopes with the superscope. I've set option 3 in DHCP (router) as the DHCP server address, and all the information gets populated to the boxes, but they still can't talk to each subnet.
What am I doing wrong? Should I just be using 1 NIC?
Ta
Neil
I've got a machine which is sitting on a management LAN acting as a DHCP server for 2 subnets which are in a Superscope.
One adapter has an address on 1 subnet, the other adapter has an address on the other subnet, both are plugged into switch serving the management LAN.
I need the clients on each subnet (all plugged into same switch) to be able to talk to each other.
I've enable IP forwarding on the DHCP server box, and as options in both scopes with the superscope. I've set option 3 in DHCP (router) as the DHCP server address, and all the information gets populated to the boxes, but they still can't talk to each subnet.
What am I doing wrong? Should I just be using 1 NIC?
Ta
Neil
#2
Scooby Regular
what's the default gateway on the PC's. If you do a traceroute do the PC's go to the dhcp box to try to talk to the other subnet??
you need to check box ends to make sure the ping reaches the remote host and the reply has a route back.
Also, you don't have any firewall software on the dhcp box do you that could interfere with your tests?
Stefan
you need to check box ends to make sure the ping reaches the remote host and the reply has a route back.
Also, you don't have any firewall software on the dhcp box do you that could interfere with your tests?
Stefan
#3
Scooby Regular
iTrader: (1)
Join Date: Jul 2004
Location: There on the stair
Posts: 10,208
Likes: 0
Received 0 Likes
on
0 Posts
You've got two NICs on the same Server? You can only have one default gateway, so one NIC will have that assigned and the other will need a static route table created. This is probably what is stopping the traffic getting around
Not being a comms guy i can't tell you HOW to configure it, but the switches can forward DHCP traffic through a network that is not on the same sub-net, so you can in theory have just the one card. Do a search on DHCP helper
Not being a comms guy i can't tell you HOW to configure it, but the switches can forward DHCP traffic through a network that is not on the same sub-net, so you can in theory have just the one card. Do a search on DHCP helper
#4
Scooby Regular
you only need a default gateway to tell a host where to find a network it doesn't know about. On the server itself it will keep its own routing tables update with both NIC subnets.
Where you may have a problem is the default gateway assigned to the PC's on the subnets. That gateway should be the server's NIC on the same subnet.
You only need to worry about additional gateways or static routes if there is another subnet involved outwith the dhcp box.
Where you may have a problem is the default gateway assigned to the PC's on the subnets. That gateway should be the server's NIC on the same subnet.
You only need to worry about additional gateways or static routes if there is another subnet involved outwith the dhcp box.
#5
Scooby Regular
Thread Starter
Join Date: Aug 2001
Location: Hampshire
Posts: 10,954
Likes: 0
Received 0 Likes
on
0 Posts
Right getting somewhere.
I need a static route creating as Kieren said.
If I manually put it in using route add 192.168.112.64 mask 255.255.255.192 192.168.111.96 then it works and I can ping.
However if I add it into the DHCP scope options under option 33, it only allows me to input the network address and route, no option to stick in the mask (only allows pairs of ip's) so it defaults to 255.255.255.255, which obviously doesn't work!
There must be a way in DHCP to add the static route to the routing table with the correct mask...........?
I need a static route creating as Kieren said.
If I manually put it in using route add 192.168.112.64 mask 255.255.255.192 192.168.111.96 then it works and I can ping.
However if I add it into the DHCP scope options under option 33, it only allows me to input the network address and route, no option to stick in the mask (only allows pairs of ip's) so it defaults to 255.255.255.255, which obviously doesn't work!
There must be a way in DHCP to add the static route to the routing table with the correct mask...........?
#6
Scooby Regular
Originally Posted by ScoobyJawa
Right getting somewhere.
If I manually put it in using route add 192.168.112.64 mask 255.255.255.192 192.168.111.96 then it works and I can ping.
If I manually put it in using route add 192.168.112.64 mask 255.255.255.192 192.168.111.96 then it works and I can ping.
#7
Scooby Regular
Thread Starter
Join Date: Aug 2001
Location: Hampshire
Posts: 10,954
Likes: 0
Received 0 Likes
on
0 Posts
On the DHCP Client mate. It still gets all info from the server, but when added to the clients routing table manually its fine.
When I try and send the static route with the rest of the DHCP information to the client using DHCP option 33, it won't allow you to input a mask and so the route on the client ends up with a default of 255.255.255.255 (and thus doesn't work) instead of the 255.255.255.192 which I want and works! Gah!! LOL!
When I try and send the static route with the rest of the DHCP information to the client using DHCP option 33, it won't allow you to input a mask and so the route on the client ends up with a default of 255.255.255.255 (and thus doesn't work) instead of the 255.255.255.192 which I want and works! Gah!! LOL!
Trending Topics
#9
Originally Posted by Kieran_Burns
You don't need routes on the clients... they just go to the point of last resort, which is the default gateway... that's where you need to add the routes
The clients do not need to know anything but the address of the gateway.
Its then the servers job of routing.
#10
Scooby Regular
Thread Starter
Join Date: Aug 2001
Location: Hampshire
Posts: 10,954
Likes: 0
Received 0 Likes
on
0 Posts
The clients are also on 2 seperate networks. The default gateway for the client is the production lan not the management lan so using that defaut gateway results in a fail, hence needing to add the static route to the client...............
I think! LOL!
I think! LOL!
#11
Originally Posted by ScoobyJawa
The clients are also on 2 seperate networks. The default gateway for the client is the production lan not the management lan so using that defaut gateway results in a fail, hence needing to add the static route to the client...............
I think! LOL!
I think! LOL!
Clients on subnet A should use the ip address of the NIC you have in subnet A as their gateways and clients in subnet B should have the ip address of the NIC sitting in subnet B.
Setting up routing on the server will enable clients to see each other
#12
Scooby Regular
Thread Starter
Join Date: Aug 2001
Location: Hampshire
Posts: 10,954
Likes: 0
Received 0 Likes
on
0 Posts
No theres 3!
Theres a management lan with subnets a and b. Half the clients are on a and half on b.
Seperately each of these are also on a production lan which is subnet c. The production lan NIC has the default gateway enabled.
I need the management lan NIC to be able to talk between subnets a and b..........
Theres a management lan with subnets a and b. Half the clients are on a and half on b.
Seperately each of these are also on a production lan which is subnet c. The production lan NIC has the default gateway enabled.
I need the management lan NIC to be able to talk between subnets a and b..........
#14
Scooby Regular
Thread Starter
Join Date: Aug 2001
Location: Hampshire
Posts: 10,954
Likes: 0
Received 0 Likes
on
0 Posts
This is getting kinda confusing lol!
There is a management lan switch, that all the boxes have a NIC plugged in to.
There is a production LAN which all the boxes have a NIC plugged in to. (Hardcoded IP and Gateway etc).
The management LAN is split between 2 subnets, half the boxes on one and half on the other. Both are served by the same DHCP server (only plugged into the management lan, this server is not on production). The DHCP server has one NIC running an IP on one subnet, and another NIC running an IP from the second subnet - again both plugged into the management lan switch!
On the production side everything is hardcoded and works fine.
On management lan DHCP serves the addresses to 2 different subnets.
All works fine but boxes on one management subnet cannot talk to the machines on the other.
Default gateway on the client is in use for the production lan so all none known networks try to be reached through that, which of course fails.
Therefore I need a route setting up on the client to tell it which NIC to use for the other subnet.
This is where its failing. It works fine if I put in route add etc on the client. But for some reason when you try and serve a static route via DHCP (option 33) there is no way of putting in the netmask, thus the static route fails.
I'm just wondering if its not possible to do via DHCP? If not it means I need to go and hard code it round 60 boxes - doh!
Dunno if thats cleared it up anymore LOL! but I might just go round and hard code it, its almost impossible to find this info out from the net! Can't believe theres an option with DHCP to add a static route, but defaults the netmask to 255.255.255.255 - seems pointless, unless there is a way to change that?
There is a management lan switch, that all the boxes have a NIC plugged in to.
There is a production LAN which all the boxes have a NIC plugged in to. (Hardcoded IP and Gateway etc).
The management LAN is split between 2 subnets, half the boxes on one and half on the other. Both are served by the same DHCP server (only plugged into the management lan, this server is not on production). The DHCP server has one NIC running an IP on one subnet, and another NIC running an IP from the second subnet - again both plugged into the management lan switch!
On the production side everything is hardcoded and works fine.
On management lan DHCP serves the addresses to 2 different subnets.
All works fine but boxes on one management subnet cannot talk to the machines on the other.
Default gateway on the client is in use for the production lan so all none known networks try to be reached through that, which of course fails.
Therefore I need a route setting up on the client to tell it which NIC to use for the other subnet.
This is where its failing. It works fine if I put in route add etc on the client. But for some reason when you try and serve a static route via DHCP (option 33) there is no way of putting in the netmask, thus the static route fails.
I'm just wondering if its not possible to do via DHCP? If not it means I need to go and hard code it round 60 boxes - doh!
Dunno if thats cleared it up anymore LOL! but I might just go round and hard code it, its almost impossible to find this info out from the net! Can't believe theres an option with DHCP to add a static route, but defaults the netmask to 255.255.255.255 - seems pointless, unless there is a way to change that?
#15
Scooby Regular
Well you only mentioned 2 subnets in your initial question and now there's 3. No wonder we're all confused you Muppet
Put the static routes on the servers as it's much easier to manage than each client.
The clients look at its default gateway (whichever server is on that subnet) and then that has a static route to the remote subnet.
Stefan
P.S. A diagram would've helped
Put the static routes on the servers as it's much easier to manage than each client.
The clients look at its default gateway (whichever server is on that subnet) and then that has a static route to the remote subnet.
Stefan
P.S. A diagram would've helped
#18
Scooby Regular
Thread Starter
Join Date: Aug 2001
Location: Hampshire
Posts: 10,954
Likes: 0
Received 0 Likes
on
0 Posts
Originally Posted by ozzy
Well you only mentioned 2 subnets in your initial question and now there's 3. No wonder we're all confused you Muppet
Put the static routes on the servers as it's much easier to manage than each client.
The clients look at its default gateway (whichever server is on that subnet) and then that has a static route to the remote subnet.
Stefan
P.S. A diagram would've helped
Put the static routes on the servers as it's much easier to manage than each client.
The clients look at its default gateway (whichever server is on that subnet) and then that has a static route to the remote subnet.
Stefan
P.S. A diagram would've helped
The default gateway is derived from the production lan as I said above.
The default gateways on all the production lan aim to not servers but cisco switches/routers.
So are you saying I need to configure static routes to the (switch/router) default gateway?
If so I think we're getting somewhere! LOL!
[/cretinous muppet mode disengaged]
Oh - and I can't upload a Visio diagram!!!
Last edited by ScoobyJawa; 23 September 2005 at 11:23 PM.
#19
use one card
Use one one network card, you are causing yourselve extra work for no reason, the 2nd card in the machine I would normally connect directly to a router / external connection or vpn etc
Originally Posted by ScoobyJawa
Righto!
I've got a machine which is sitting on a management LAN acting as a DHCP server for 2 subnets which are in a Superscope.
One adapter has an address on 1 subnet, the other adapter has an address on the other subnet, both are plugged into switch serving the management LAN.
I need the clients on each subnet (all plugged into same switch) to be able to talk to each other.
I've enable IP forwarding on the DHCP server box, and as options in both scopes with the superscope. I've set option 3 in DHCP (router) as the DHCP server address, and all the information gets populated to the boxes, but they still can't talk to each subnet.
What am I doing wrong? Should I just be using 1 NIC?
Ta
Neil
I've got a machine which is sitting on a management LAN acting as a DHCP server for 2 subnets which are in a Superscope.
One adapter has an address on 1 subnet, the other adapter has an address on the other subnet, both are plugged into switch serving the management LAN.
I need the clients on each subnet (all plugged into same switch) to be able to talk to each other.
I've enable IP forwarding on the DHCP server box, and as options in both scopes with the superscope. I've set option 3 in DHCP (router) as the DHCP server address, and all the information gets populated to the boxes, but they still can't talk to each subnet.
What am I doing wrong? Should I just be using 1 NIC?
Ta
Neil
Thread
Thread Starter
Forum
Replies
Last Post
acemodder
ScoobyNet General
50
01 October 2015 07:01 PM