|
Question : DHCP and default gateway
|
|
I am marking this question as easy because I suspect that this must happen to almost everyone who has ever tried to set up DHCP on an NT network. I installed DHCP server on my NT 4.0 (SP 1) Server and my workstations can get an IP address just fine. However, they lose their default gateway setting! So with DHCP, I can't get off of the segment I'm on until I remove DHCP and set the ip address manually. Then the default gateway setting comes back and I am fine.
How do I get to keep a default gateway with DHCP?
|
Answer : DHCP and default gateway
|
|
IP adress, subnet mask and gateway are submitted by the dhcp server. The default-gateway you enter in the TCP/IP options of the dhcp server is used. The DHCP server must have fixed entrys. Therefore the default gateway computer must have a fixed or reserved IP-adress. This works if client and server reside in one subnet. If client is in another subnet it can not reach the dhcp server. In every subnet without a dhcp server you need a dhcp or bootp relay agent (this is a service which has to be installed). This is a server or workstation computer which passes the data on to the dhcp server. normaly you would install it on the router or gateway. This is not necessary if your router is RFC1542 compatible. I belive the relay agent supplies the default gateway. You can not have more than one gateway, so WS1 in Subnet1 goes to gate1 and WS2 in Subnet1 goes to gate2 is not possible if they both use the same dhcp server.
|
|
|