Update IP Address of Linux Printer
Issue/Symptom/Question
How do I change the IP for a linux printer?
Applies To
Linux OS
Linux Printer
Resolution/Fix/Answer
Note: To change the IP of a linux server requires root access on the linux server.
Prep: You will need to know the current IP of the linux printer and the IP that you want to change it to.
Login into the Linux Server as 'Root' using RDM's password
Search for the existing printer using: cd /usr/local/bin
Type ls
type lpstat -t. You will see a list of printer devices along with their associated ip addresses
Now that you know the Printer Name and IP Address type 'ctrl r' to edit the device socket/ip address
Type : to save the config file
Restart the service by typing in 'service cups restart'
Type 'restart cups.service
verify the ip address has been updated via 'lpstat -t'
Login to the linux server as root
Edit the /etc/cups/printers.conf file
search the printers.conf file for the current IP of the linux printer
change the current IP to the new IP of the linux printer
restart the cups service on the linux server with the following command:
service cups restart
You can see what the linux printer IP is by typing the following command:
lpstat -t
further information on the lpstat command can be found at Resetting your PENTA reports printer