IP Address Folly...
I ran into an interesting problem today. We had a 5.6 workstation and its network printer move from one subnet to another. My job was to change their IPs and get them to print. The IP change was done by updating the following files:
/etc/hosts
/etc/hostname.bge0
/etc/resolv.conf
/etc/netmasks
/etc/nodename
/etc/defaultrouter
(don't forget /etc/inet/ipnodes if you're working in Solaris 10!)
This was no prob. I changed the printer's IP, default gateway and netmask. I found an entry for the printer in the hosts file, so I updated that.
It wouldn't print.
I found that the print was still trying to go to the printer's old IP. Here was the answer:
/etc/lp/printers/queue_name/configuration
It appears that when the printer was set up, they used an IP instead of a hostname & hosts file entry. This is what the configuration file looks like:
Banner: on:AlwaysContent types: simpleDevice: /dev/nullInterface: /usr/lib/lp/model/netstandardPrinter type: unknownModules:Options: dest=10.150.10.63:text,protocol=bsd,timeout=90
I'm not sure why there was an entry for the printer in the hosts file if it was set up this way. *shrug*
Personally, I don't like to hard code IPs outside of the usual places...
/etc/hosts
/etc/hostname.bge0
/etc/resolv.conf
/etc/netmasks
/etc/nodename
/etc/defaultrouter
(don't forget /etc/inet/ipnodes if you're working in Solaris 10!)
This was no prob. I changed the printer's IP, default gateway and netmask. I found an entry for the printer in the hosts file, so I updated that.
It wouldn't print.
I found that the print was still trying to go to the printer's old IP. Here was the answer:
/etc/lp/printers/queue_name/configuration
It appears that when the printer was set up, they used an IP instead of a hostname & hosts file entry. This is what the configuration file looks like:
Banner: on:AlwaysContent types: simpleDevice: /dev/nullInterface: /usr/lib/lp/model/netstandardPrinter type: unknownModules:Options: dest=10.150.10.63:text,protocol=bsd,timeout=90
I'm not sure why there was an entry for the printer in the hosts file if it was set up this way. *shrug*
Personally, I don't like to hard code IPs outside of the usual places...

