A TCP/IP-enabled printer doesn't need an attached computer to provide print services; the printer itself provides the services.
So, you use the same basic steps described above, with the following minor alterations:
10.2.0.4 tcpip_printer
rlpt2:\ :rm=tcpip_printer:rp=/ps:sd=/usr/spool/output/lpd/rlpt2:
This example shows that the name of the remote machine (in this case, the actual printer) is tcpip_printer and the spool directory is /usr/spool/output/lpd/rlpt2. Note that the remote printer is specified as /ps, which is the name some network printers use for accepting PostScript files. You need to find out the name your printer wants you to use; it may require different names for different types of print file format (e.g., PostScript and text files).
Make sure you've created your spool directory—that's about it. Follow the usual steps described in "Local and remote printers," and you should be able to print to your remote printer using a command line like this:
lpr -Prlpt2 /root/junk.ps
This sends a PostScript file named /root/junk.ps to the remote printer named tcpip_printer located at the IP address, 10.2.0.4.