The text of a manual · part 3 of 13
HP Jetdirect Print Servers (300X/510X) Administrator's Guide: TCP/IP Configuration, pages 17 to 24
Pages 17 to 24 of 102, from HP Jetdirect Print Servers (300X/510X) Administrator's Guide
The original document is the PDF (1.9 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the HP J3263A JetDirect 300X
Page 17
3 TCP/IP Configuration Introduction To operate properly on a TCP/IP network, the HP Jetdirect print server must be configured with valid TCP/IP network configuration parameters, such as an IP address. Depending on your printer and system, this can be done in the following ways: Note
●
By downloading the data from a network-based UNIX server using BOOTP (Bootstrap Protocol) and TFTP (Trivial File Transfer Protocol) each time the print server is turned on.
Note
●
When shipped from the factory, the HP Jetdirect print server has no IP address. If the HP Jetdirect print server is not configured with a valid IP address within two minutes after power up, a factory default value of 192.0.0.192 will be automatically assigned. This address must be reconfigured with a valid address for use on your TCP/IP network. For more information on TCP/IP networks, see appendix A.
The BOOTP daemon, bootpd, must be running on a BOOTP server that is accessible by the print server.
By using Dynamic Host Configuration Protocol (DHCP). This protocol is supported in HP-UX, Solaris, Linux, Windows and Mac OS systems. (Refer to your network operating system manuals to verify that your operating system supports DHCP.)
ENWW
17
Page 18
Note
Linux and UNIX systems: For more information, see the bootpd man page. On HP-UX systems, a sample DHCP configuration file (dhcptab) may be loaded in the /etc directory. If your HP-UX system does not provide Dynamic Domain Name Services (DDNS) for its DHCP implementations, HP recommends that you set all print server lease durations to infinite. This ensures that print server IP addresses remain static until such time as Dynamic Domain Name Services are available.
●
By a network-based server using RARP (Reverse Address Resolution Protocol) answering the print server's RARP request and supplying the print server with the IP address. The RARP method only allows you to configure the IP address.
●
By using the arp and ping commands from your system.
●
By setting configuration parameters using Telnet. In order to set configuration parameters, set up a Telnet connection from your system to the HP Jetdirect print server using the default IP address. The default IP address takes effect two minutes after the printer is turned on (if none of the other configuration methods have been used). (Older products may take longer for the IP address to take effect.) The default IP address is 192.0.0.192. If Telnet is used, the print server saves the configuration even if the printer or print server is turned off.
●
By browsing to the embedded Web server on the HP Jetdirect print server and setting the configuration parameters.
18 TCP/IP Configuration
ENWW
Page 19
Using BOOTP/TFTP This section describes how to configure the print server using BOOTP (Bootstrap Protocol) and TFTP (Trivial File Transfer Protocol) services on UNIX servers. BOOTP and TFTP are used to download network configuration data from a server to the HP Jetdirect print server over the network. Note
On supported Windows server systems, use the Microsoft DHCP utilities to set up HP Jetdirect configuration via BOOTP. For more information, see “Using DHCP”.
Note
If the Jetdirect print server and BOOTP/DHCP server are located on different subnets, IP configuration may fail unless the routing device supports “BOOTP Relay” (allows the transfer of BOOTP requests between subnets).
Why Use BOOTP/TFTP Using BOOTP/TFTP to download configuration data has the following benefits: ●
Enhanced configuration control of the HP Jetdirect print server. Configuration by other methods, such as a printer control panel, are limited to select parameters.
●
Ease of configuration management. Network configuration parameters for the entire network can be in one location.
●
Ease of HP Jetdirect print server configuration. Complete network configuration can be automatically downloaded each time the print server is powered on.
The factory-default state of the HP Jetdirect print server is to operate through BOOTP/TFTP.
ENWW
TCP/IP Configuration 19
Page 20
Systems That Use Network Information Service (NIS) If your system uses NIS, you may need to rebuild the NIS map with the BOOTP service before performing the BOOTP configuration steps. Refer to your system documentation.
Configuring the BOOTP Server For the HP Jetdirect print server to obtain its configuration data over the network, the BOOTP/TFTP servers must be set up with the appropriate configuration files. BOOTP is used by the print server to obtain entries in the /etc/bootptab file on a BOOTP server, while TFTP is used to obtain additional configuration information from a configuration file on a TFTP server. When the HP Jetdirect print server is powered on, it broadcasts a BOOTP request that contains its MAC (hardware) address. A BOOTP server daemon searches the /etc/bootptab file for a matching MAC address, and if successful, sends the corresponding configuration data to the Jetdirect print server as a BOOTP reply. The configuration data in the /etc/bootptab file must be properly entered. For a description of entries, see “Bootptab File Entries”. The BOOTP reply may contain the name of a configuration file containing enhanced configuration parameters. If the HP Jetdirect print server finds such a file, it will use TFTP to download the file and configure itself with these parameters. For a description of entries, see “TFTP Configuration File Entries”. Configuration parameters retrieved via TFTP are optional. Note
HP recommends that the BOOTP server be located on the same subnet as the printers it serves. BOOTP broadcast packets may not be forwarded by routers unless the routers are properly configured.
20 TCP/IP Configuration
ENWW
Page 21
CAUTION
Community names (passwords) for your printer are not secure. If you specify a community name for your printer, select a name that is different from passwords used for other systems on your network.
Bootptab File Entries An example of a /etc/bootptab file entry for an HP Jetdirect print server is provided below: picasso:\ :hn=picasso:ht=ether:vm=rfc1048:\ :ha=0060b0123456:\ :ip=192.168.10.248:\ :sm=255.255.255.0:\ :gw=192.168.10.1:\ :lg=192.168.10.2:\ :T144=“hpnp/picasso.cfg”:
Note that the configuration data contains “tags” to identify the various HP Jetdirect parameters and their settings. The tags are identified in Table 3.1. Table 3.1
Tags in the “bootptab” file (1 of 2)
nodename
The name of the peripheral. This name identifies an entry point to a list of parameters for a specific peripheral. nodename must be the first field in an entry. (In the example above, nodename is “picasso”.)
hn
The host name tag. This tag causes the BOOTP daemon to download the host name to the HP Jetdirect print server. The host name will be printed on the Jetdirect configuration page, or returned on an SNMP sysName request by a network application.
ht
The hardware type tag. For the HP Jetdirect print server, set this to ether (for Ethernet) or token (for Token Ring). This tag must precede the ha tag.
vm
The BOOTP report format tag (required). Set this parameter to rfc1048.
ENWW
TCP/IP Configuration 21
Page 22
Table 3.1
Tags in the “bootptab” file (2 of 2)
ha
The hardware address tag. The hardware (MAC) address is the link-level, or station address of the HP Jetdirect print server. It can be found on the HP Jetdirect configuration page as the LAN HW ADDRESS. On HP Jetdirect external print servers, it is printed on a label attached to the print server.
ip
The IP address tag (required). This address will be the HP Jetdirect print server’s IP address.
gw
The gateway IP address tag. This address identifies the IP address of the default gateway (router) that the HP Jetdirect server will use for communications with other subnets.
sm
The subnet mask tag. The subnet mask will be used by the HP Jetdirect print server to identify the portions of an IP address that specify the network/subnetwork number and the host address.
lg
The syslog server’s IP address tag. It specifies the server that the HP Jetdirectprint server sends syslog messages to.
T144
A vendor-specific tag that specifies the relative path name of the TFTP configuration file. Maximum length of the path name is 33 characters. The path name must be in double quotes (for example, “pathname”). On HP-UX systems, /usr/tftpdir is prepended to the path. For file format information, refer to “TFTP Configuration File Entries“.
A colon (:) indicates the end of a field, and a backslash (\) indicates that the entry is continued on the next line. Spaces are not allowed between the characters on a line. Names, such as host names, must begin with a letter and can contain only letters, numbers, periods, or hyphens.The underline character (_) is not allowed. Refer to your system documentation or online help for more information. TFTP Configuration File Entries To provide additional configuration parameters for your HP Jetdirect print server, such as SNMP (Simple Network Management Protocol) or non-default settings, an additional
22 TCP/IP Configuration
ENWW
Page 23
configuration file can be downloaded using TFTP. This TFTP configuration file’s relative path name is specified in the BOOTP reply using the /etc/bootptab file’s T144 vendor-specific tag entry. An example of a TFTP configuration file is provided below (the symbol ‘#’ denotes a remark and is not included in the file). # # Example of an HP Jetdirect TFTP Configuration File # # Allow only Subnet 192.168.10 access to peripheral. # Up to four ‘allow’ entries can be written via TFTP. # Up to 10 ‘allow’ entries can be written via SNMP. # ‘allow’ may include single IP addresses. # allow: 192.168.10
255.255.255.0
# # # Disable Telnet # telnet: 0 # # Enable the embedded web server # ews-config: 1 # # Detect SNMP unauthorized usage # authentication-trap: on # # Send Traps to 192.168.10.1 # trap-dest: 192.168.10.1 # # Specify the Set Community Name # set-community-name: 1homer2 # # End of file
ENWW
TCP/IP Configuration 23
Page 24
Table 3.2 describes parameters that may be included in the TFTP configuration file. Table 3.2
TFTP Configuration File Parameters (1 of 3)
ews-config:
Enables or disables the embedded web server on the HP Jetdirect print server. To enable, set to 1. To disable, set to 0.
idle-timeout:
The number of seconds that an idle print data connection is allowed to remain open. Since the card supports only a single TCP connection, the idle timeout balances the opportunity of a host to recover or complete a print job against the ability of other hosts to access the printer. The acceptable values range from 0 to 3600 (1 hour). If “0” is typed, the timeout mechanism is disabled. The default is 90 seconds.
allow: netnum [mask]
Provides an entry into the host access list stored on the HP Jetdirect print server. Each entry specifies a host or network of hosts that are allowed to connect to the printer. The format is “allow: netnum [mask]” where netnum is a network number or host IP address, and mask is an address mask of bits applied to the network number and host address to verify access. Up to 10 access list entries are allowed. If there are no entries, all hosts are permitted access. For example: allow: 192.0.0.0 255.0.0.0 allows hosts on network 192. allow: 192.168.10.1 allows a single host. In this case, the default mask 255.255.255.255 is assumed and is not required.
tcp-mss:
Specifies the maximum segment size (MSS) that the HP Jetdirect print server will advertise for use when communicating with local subnets (MSS=1460 bytes or more) or remote subnets (MSS=536 bytes): 0 (default) All networks are assumed to be local (MSS=1460 bytes or more). 1 Use MSS=1460 bytes (or more) for subnets, and MSS=536 bytes for remote networks. 2 All networks are assumed to be remote (MSS=536 bytes), except the local subnet.
location:
Identifies the physical location of the printer (SNMP sysLocation object). Only printable ASCII characters are allowed. The maximum length is 64 characters. The default location is undefined. (Example: 1st floor, south wall)
24 TCP/IP Configuration
ENWW