Now, let's add another printer to node1, this time connected to /dev/par2.
You should define multiple printers carefully because the default capabilities aren't suitable for all printers. For example, use the sd field to specify a unique spool directory for each printer.
The /etc/printcap file on node1 now looks like this:
lpt1:\ :lp=/dev/par1:sd=/usr/spool/output/lpt1: lpt2:\ :lp=/dev/par2:sd=/usr/spool/output/lpt2:
This specifies the following these printers:
Make sure there's an entry for node2 in the /etc/hosts.lpd file on node1.
To refer to these two printers remotely from node2, create a /etc/printcap file on node2 that looks like this:
lpt1:\ :rm=node1:rp=lpt1:sd=/usr/spool/output/lpt1:lp=: lpt2:\ :rm=node1:rp=lpt2:sd=/usr/spool/output/lpt2:lp=:
This specifies the two printers we just located on node1 with the names to be used on node2. Make sure there's an entry for node1 in /etc/hosts.