37
UNIX SETUP
Assigning the IP Address using arp and ping
1.
Turn off the printer.
2.
Log in as superuser on a host on the same subnet as the
printer NIC.
3.
Find the Ethernet address of the NIC. The address is
printed on the Network Settings page.
4.
Edit the hosts file (usually
/etc/hosts
) or use NIS
or DNS to add the IP address and printer NIC name.
See the network administrator for the IP address. For
example, a printer NIC with the name superscript and
an IP address of
192.9.200.200
has the following
entry:
192.9.200.200 superscript
5.
Add an entry to the ARP cache for the printer NIC’s IP
address and Ethernet address. For example:
arp -s 192.9.200.200 00:40:c8:80:04:ff
6.
Check the printer to see that the host is on the same
subnet/network as the printer. Turn on the printer.
7.
Use a ping command to start the IP address
assignment. For example:
ping 192.9.200.200
or
ping superscript
The printer NIC will not respond to this ping
command but it will read its IP address from the
packets.
8.
Turn the printer off and back on again and then use
the ping command again to verify that the printer NIC
obtained its IP address. If the printer NIC has the
address, the result is a confirmation message:
192.9.200.200 is alive
9.
Remove the entry from the ARP cache using the
following command. Specify the printer NIC either by
its IP address or by its name. For example:
arp -d superscript
Second, Set Up Your Printing Mode
To set up printer-based lpd for SCO UNIX remote
printers and Solaris 2.x, continue below.
To set up TCP/IP and host-based lpd for Solaris 2.x and
SCO UNIX systems, proceed to page 39.
Printer-Based lpd Setup
lpd is an implementation of the standard UNIX line
printer daemon which lets you print across a TCP/IP
network, without the need to install software on your
workstation, and with all filtering and banners done by
the NIC. Remote printing uses the same commands (lpr,
lpq, lpc) as local printing.
The process begins when the
lpr
call finds a printer on a
remote system by looking at the remote (
rm
) entry in the
/etc/printcap
file for that printer. lpr handles a print
job for a remote printer by opening a connection with the
lpd process on the remote system and sending the data file
(followed by the control file containing control
information for this job) to the remote system. The printer-