114
Chapter 4
Printer IP address assignment, option A: Using
ping
assignment
Any printer administrator with superuser privileges can use the ping
assignment method to assign the printer’s IP address and store it in the
printer’s nonvolatile memory (so it remembers the address even when the
printer is turned off).
Note: This method works only when the printer has no IP address. If you’ve
already set the printer’s IP address, you cannot change it by using this
method.
1 Turn on the printer and save the startup page that prints out.
2 Log in as
root
to any UNIX workstation on the same subnet as the printer.
3Add the following line to the
/etc/hosts
table on your workstation:
printer_IP_address printer_IP_name
You obtain the printer IP address from your network administrator. You
choose the printer IP name yourself (if it was not assigned by the network
administrator). It must follow the naming convention of your system, which
generally means it must contain fewer than 32 characters.
Example
80.20.0.0 LaserWriterFloor2
4Type the following command to force an entry into your system’s
arp
table:
arp -s printer_IP_name printer_Ethernet_address
The printer IP name is the same name you used in step 3. You obtain the
Ethernet address from the startup page that prints automatically when you
turn on the printer. The address appears next to the top icon on the page.
Example
If your startup page showed that your Ethernet address was
08:00:07:2b:48:fb, you would type
arp -s LaserWriterFloor2 08:00:07:2b:48:fb