Bootstrap protocol, BOOTP, is the recommended way to establish communications from the host to the printer in an internet protocol environment. BOOTP obtains booting data from the bootptab file. With the proper information stored in the bootptab file, the printer can find its own name and IP address and boot from the network without any intervention, even for a first time boot.
- Verify that the bootpd and bootptab files are in the correct directories:
UNIX: /etc or /usr/etc directory
OS/2: TCPIPETC (for bootptab) and TCPIPBIN (for bootpd)
LAN Server: MPTNETC (for bootptab) and MPTNBIN (for bootpd)
Type:
- ls bootp*
- Edit the hosts file to add the printer internet addresses and names:
- 128.07.60.30 P340-mktg
128.07.60.31 P340-sales
For OS/2, use the TCP/IP Configuration Notebook under the Services tab to add the printer internet addresses and names.
- Some UNIX hosts may require an explicit update to the arp table to add the new entries. This command is host-specific; check your host documentation for details.
- arp -s ether P340-mktg 08:00:11:01:00:45
arp -s ether P340-sales 08:00:11:01:00:46
The ether switch indicates that you are providing an Ethernet address.
- Set up the bootptab file.
- Start or restart the inetd or bootpd daemon. For OS/2 Warp, LAN Server 4.0, and UNIX, use the bootpd daemon.
Here is a sample bootptab file; check your host system documentation to see which fields your implementation of BOOTP supports.
# Global entries for all hosts
global: :sm=255.255.255.0:
:bf=dummyfile:
# Master entries for each subnet template
subnet60: :tc=global:gw=128.07.60.100:
subnet61: :tc=global:gw=128.07.61.150:
# Individual printer entries
P340-mktg: :tc=subnet60:ht=ethernet:
:ha=080011010045:
:ip=128.07.60.30:
P340-sales: :tc=subnet60:ht=ethernet:
:ha=080011010046:
:ip=128.07.60.31:
The printer recognizes the BOOTP fields listed in the following table:
Running BOOTPD under OS/2 Warp
The bootpd daemon cannot be started automatically by inetd or by placing it in the OS/2 Startup Folder. The line START BOOTPD must be inserted in the TCPEXIT.CMD file manually. If the TCPEXIT.CMD file does not exist, you must create it.
Running BOOTP under UNIX
There are two ways to run BOOTP:
BOOTP always running
- If the bootpd command line does not exist in your /etc/rc.local file, you need to add it. To verify that the bootpd startup command is in the file, type:
- grep bootpd /etc/rc.local
If the bootpd startup command is in the file, the following line is displayed. The -s option specifies continuous execution.
- /etc/bootpd -s ; echo -n ' bootpd'
- Verify that bootpd resides where it is specified in /etc/rc.local. For the preceding examples, bootpd would be located in /etc. If there is a mismatch between the actual location and the specified location, either move the bootpd binary or change the /etc/rc.local file.
- The port numbers for BOOTP listening and replying must be set in the /etc/services file. If they are not set, edit the file and add them. To verify that the ports are set in the file, type:
- grep bootp /etc/services
If the ports are set in the file, the following lines are displayed:
- bootps 67/udp
bootpc 68/udp
- To start the bootpd daemon without rebooting the system, type:
- /etc/bootpd -s &
BOOTP running only on request
- If the bootpd command line does not exist in your /etc/inetd.conf file, you need to add it. To verify that the bootpd startup command is in the file, type:
- grep bootpd /etc/inetd.conf
If the bootpd startup command is in the file, the following line is displayed:
- bootps dgram udp wait root /etc/bootpd bootpd
- Verify that bootpd resides where it is specified in /etc/inetd.conf. For the preceding examples, bootpd would be located in /etc. If there is a mismatch between the actual location and the specified location, either move the bootpd binary or change the /etc/inetd.conf file.
- The port numbers for BOOTP listening and replying must be set in the /etc/services file. If they are not set, edit the file and add them. To verify that the ports are set in the file, type:
- grep bootp /etc/services
If the ports are set in the file, the following lines are displayed:
- bootps 67/udp
bootpc 68/udp
- Restart the inetd daemon without rebooting the system to put the changes you have made into effect. Use one of the following methods.
For BSD systems
- Find out the process ID number for the inetd daemon; type:
- ps -aux | grep inetd
This command produces the following output:
- root 193 0.0 0.0 48 0 ? IW Oct 24 0:12 inetd
root 12366 0.0 0.3 32 196 pb S 11:55 0:00 grep inetd
- Restart the inetd daemon, which is process ID number 193 in this
example. Type:
- kill -HUP 193
For System V
- Find out the process ID number for the inetd daemon; type:
- ps -ef | grep inetd
This command produces the following output:
- root 6206 3112 0 Nov 06 - 0:00 /etc/inetd
root 13177 12135 2 06:36:22 pts/3 0:00 grep inetd
- Restart the inetd daemon, which is process ID number 6206 in this
example. Type:
kill -HUP 6206