6.3.1 DHCP. MicroNet Technology SP766W

Add to My manuals
137 Pages

advertisement

6.3.1     DHCP. MicroNet Technology SP766W | Manualzz

6.3 Setup Print Server’s IP Address

The print server must have a unique IP address in order to be recognized by the network.

You can set up the IP address on the various Unix systems using any one of the following methods:

1. DHCP (Dynamic Host Configuration Protocol)

2. BOOTP (Bootstrap Protocol)

The print server will use the last three methods to obtain its IP address automatically if its IP address is configured as Auto (0.0.0.0).

6.3.1 DHCP

There are many Unix systems that support DHCP protocol, and the procedures to configure the DHCP server database are different. This manual does not describe the DHCP server configuration on the Unix systems. It is highly recommended that the DHCP server should be located on the same network as the print server.

6.3.2 BOOTP

If you have the BOOTP daemon, bootpd, running on your UNIX system that is accessible by the print server, you can use the BOOTP protocol to set up the IP address of the print server. We recommend that the BOOTP server should be located on the same subnet as the print server. If you use Network Information Services (NIS) in your system, you may need to rebuild the NIS map with the BOOTP services before doing the following

BOOTP configuration. To rebuild the NIS map, please refer to your system documentation.

To configure the IP address data for the BOOTP server, you will need to log in the host of BOOTP server as the superuser (root). Perform the following steps to add address entries,

1. Optionally, assign a name corresponding to the print server’s IP address. You can add this address to the /etc/hosts file, by adding a line such as:

203.66.191.12 pserver

44

2. Add an entry to the host’s /etc/bootptab file, similar to the following: hostname:\

:ht=1:\

:ha=print_server_ethernet_address:\

:ip=print_server_ip_address:

Lines should be indented with tabs.

Where hostname is the device name of a print server, the ht=1 tag specifies the hardware type is Ethernet, the ha= tag specifies the Ethernet address of a print server, which is the Node ID located on the print server.

The ha tag must be preceded by the ht tag. The ip= tag should correspond to the IP address you want to assign to the print server.

For example, a print server with the following configuration:

Node ID: 0000B4010101 (this implies Ethernet address is 0000B4010101),

IP address: 203.66.191.12

The entry for this print server in the /etc/bootptab file should be:

PS010101:\

:ht=1:\

:ha=0000B4010101:\

:ip=203.66.191.12:

6.4 Verify Print Server’s IP Address

To verify that your print server is responding to the newly assigned IP address using a PING command: ping ip-address

45

6.5 Configure Remote LPD Printing on the

Host

The procedure you use to configure your Unix host(s) to allow printing to your network remote print server varies between different varieties of Unix.

The procedure below can be used for Unix variants that are related to

BSD Unix, such as SunOS or Linux. For other versions of Unix, consult your system documentation, keeping in mind that:

1. The print server should be treated as a BSD networked print server host.

2. The host name should be the name (or IP address) that you have assigned to the print server.

3. The printer name (or queue name) on the remote host should be lpt1, lpt2 or lpt3, the name of the printer port on the print server.

You will need to perform the tasks below, logged in as the superuser

(root). To configure your Unix host for printing,

1. Optionally, assign a name corresponding to the print server’s IP address. You can add this address to the /etc/hosts file, by adding a line such as: pserver 203.66.191.186

2. Create a spool directory for the printer in the same directory where spool directories are normally kept on the machine, such as /var/spool or /var/spool/lpd: mkdir /var/spool/lpd/pserverd chown daemon /var/spool/lpd/pserverd chgrp daemon /var/spool/lpd/pserverd chmod 775 /var/spool/lpd/pserverd

3. Add an entry to the host’s /etc/printcap file, similar to the following: printer-name:\

46

:lp=:\

:rm=203.66.191.186:\

:rp=lpt1:\

:lf=/var/spool/lpd/pserverd.log:\

:sd=/var/spool/lpd/pserverd:\

:mx#0:

Lines should be indented with tabs. More than one printer name can be used, with variants separated by vertical bars (name1|name2).

The rm= entry should correspond to the IP address you have assigned to the print server. You can also use a host name if you have assigned one in the /etc/hosts file.

The sd= entry should correspond to the spool directory you created in the previous step.

The rp= entry should correspond to the port name of the remote printer.

The values should be one of lpt1, lpt2 or lpt3 depends on the printer port.

The print server should now be available for printing from your Unix host.

47

advertisement

Related manuals