Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with DHCP/WINS

Status
Not open for further replies.

hamzajosh

Programmer
Sep 18, 2002
182
US
I have installed a new HP 1300 printer with jetdirect print server. When i installed it, it worked fine. Now suddenly the printer stopped printing. I have set the print server for DHCP serviced by a WinNT4.0 DHCP server. If i go to the print settings, configure port and put in the IP address of the printer, it prints fine but this is temporary as it is set for DHCP, this IP will keep changing. I cannot ping this printer also with port name but can ping the IP address assigned to it by DHCP. Clearly the problem is with DHCP not assigning this name to WINS or DNS whatever it is using. How can I leave this printer on DHCP and still print normally. Any help would be appreciated, thanks.
 
What you can do is give the DHCP server the mac address of the printer (if you can get it) assign an ip that is automagicly given to that printer everytime

try this site


do a search for reserving IP addresses

Jason

Just wondering why do you not want to assign a static IP for this printer??
 
Jason, What you have suggested is another way of assigning a static IP indirectly. I have assigned a static IP address to the printer currently and it works fine. I want to know how it was working before and what i am doing wrong now or what is wrong in the whole scenario that I am missing out on. Why does an IP assigned by DHCP cannot be pinged by it's hostname although i see that name in the leases issued in DHCP server. I assumed the DHCP server would inform WINS server of the IP assigned by it. What i want to learn basically is how to get DHCP and WINS working in conjunction with each other? How can i ping a device by name that has IP address issued by DHCP?
 
Since you are using Winnt, WINS is not a dynamic service neither is DNS. You will need to add an entry for this printer in DNS and WINS. The bad and very ugly side to adding the printer to DNS is that if the IP changes you will have to update your DNS records.
 
In my opinion you are much better off using a static IP Address. What is your reasoning for needing this printer to use an IP Address from a DHCP Server? If you want it to work properly you need to:

(1) Exclude a set range of IP Addresses in your DHCP Scope
set aside for printers.
(2) Configure the printer to use one of the IP Addresses
from the excluded range.

* This way there is one IP Address assigned for the printer and you will not need to worry about the IP Address changing.
 
Thanks guys for your help, very much appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top