Configuring BOOTP/TFTP
Download
Report
Transcript Configuring BOOTP/TFTP
Configuring
BOOTP/TFTP
Module 15
H3065S F.00
© 2005 Hewlett-Packard Development Company, L.P.
The information contained herein is subject to change without notice
BOOTP/TFTP Concept
BOOTP / TFTP make it possible to configure network settings
for network printers and other devices from a
central BOOTP/TFTP server
My MAC is 0x080009000001. What’s my IP?
BOOTP broadcast/response
Use IP = 128.1.1.1
GET hpnpl/myprinter.cfg
BOOTP/TFTP
Client
H3065S F.00
TFTP request/response
hpnpl/myprinter.cfg
© 2005 Hewlett-Packard Development Company, L.P.
BOOTP/TFTP
Server
2
Enabling bootp and tftp Services
1. Enable BOOTP and TFTP services:
# /usr/sbin/setup_bootp
# /usr/sbin/setup_tftp -h
2. Verify that the services are defined in /etc/services:
# cat /etc/services
bootps
67/udp
tftp
69/udp
3. Verify that the services are defined and enabled in /etc/inetd.conf:
# cat /etc/inetd.conf
bootps dgram udp wait
tftp
dgram udp wait
root
root
/usr/lbin/bootpd
/usr/lbin/tftp
bootpd
tftp
4. Verify that the tftp account is defined in /etc/passwd:
# cat /etc/passwd
tftp:*:510:1:Trivial FTP User:/home/tftpdir:/usr/bin/false
5. Verify that /home/tftpdir exists:
# ll -d /home/tftpdir/
dr-xr-xr-x 2 tftp other 96 Aug 27 17:17 /home/tftpdir/
H3065S F.00
© 2005 Hewlett-Packard Development Company, L.P.
3
Configuring /etc/bootptab
The bootpd server process uses the /etc/bootptab file
to determine which IP address should be associated
with#each
address. This file can be manually edited.
vi MAC
/etc/bootptab
myprinter:\
hn:\
ht=ether:\
ha=080009a752c3:\
ip=128.1.1.4:\
sm=255.255.0.0:\
gw=128.1.0.1:\
dn=ca.hp.com:\
ds=128.1.1.1:\
T144=“myprinter.cfg”:\
vm=rfc1048
H3065S F.00
© 2005 Hewlett-Packard Development Company, L.P.
4
Configuring /etc/bootptab via hppi (1 of 2)
You can add entries to /etc/bootptab using any editor,
but for network printers it’s easier to use HP’s hppi utility.
1.
Enable BOOTP and TFTP
# setup_bootp
# setup_tftp –h
2.
Install the HP Network Printer Library product
# swlist HPNPL
3.
Add the printer’s hostname to DNS or /etc/hosts
# vi /etc/hosts
4.
Run the HP Printer Installer
# hppi -> JetDirect Configuration
-> Create printer configuration in BOOTP/TFTP database
H3065S F.00
© 2005 Hewlett-Packard Development Company, L.P.
5
Configuring /etc/bootptab via hppi (2 of 2)
# hppi -> JetDirect Configuration
-> Create printer configuration in BOOTP/TFTP database
Enter the printer's LAN hardware address: 080009000003
Enter the network printer name (q - quit): myprinter
Enter IP address: 128.1.1.4
Add printer and 128.1.1.4 to /etc/hosts? (default=y): y
Other optional parameters:
------------------------1) Set printer location (uses tftp)
2) Set printer contact (uses tftp)
3) Set subnetmask
4) Set gateway
5) Set syslog (uses tftp)
6) Change idle timeout (uses tftp)
7) Create access list (up to 10 names) (uses tftp)
8) Other SNMP parameters (uses tftp)
9) Set HP JetDirect lpd banner page
Select an item for change, or '0' to configure (quit): 0
H3065S F.00
© 2005 Hewlett-Packard Development Company, L.P.
6
Lab
activity
H3065S F.00
© 2005 Hewlett-Packard Development Company, L.P.
7
H3065S F.00
© 2005 Hewlett-Packard Development Company, L.P.
8