09.12.2012 Views

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

UNIX systems. To setup LPD, first <strong>the</strong> async port(s) must be<br />

configured <strong>to</strong> accept data flows without <strong>the</strong> chance of an EXEC session<br />

starting. This is done using <strong>the</strong> command. The port should<br />

transport all input and output types. The <br />

commands sets <strong>the</strong> line <strong>to</strong> act as a permanent data pipe so <strong>the</strong> printer<br />

data will be received by <strong>the</strong> printer without mistakenly being<br />

interpreted as line control data. Serial line printers usually like<br />

hardware flow control, whereas laser printers prefer software flow<br />

control. Check with your printer's documentation for <strong>the</strong> preferred<br />

setting.<br />

To set up LPR service on lines 40 and 41:<br />

Concord-GW(config)#line 40 41<br />

Concord-GW(config-line)#no exec<br />

Concord-GW(config-line)#no vacant-message<br />

Concord-GW(config-line)#transport input all<br />

Concord-GW(config-line)#telnet transparent<br />

Concord-GW(config-line)#s<strong>to</strong>pbits 1<br />

Concord-GW(config-line)#flowcontrol hardware<br />

Concord-GW(config-line)#exit<br />

After <strong>the</strong> line(s) are configured, <strong>the</strong> command is used <strong>to</strong> define <strong>the</strong> LPD printer name. The<br />

option fixes problems with single character line<br />

termina<strong>to</strong>rs, which are not handled correctly by all UNIX systems:<br />

Concord-GW(config)#printer cpop line 40 newline-convert<br />

Concord-GW(config)#printer ccrunch line 41 newline-convert<br />

After <strong>the</strong> router is configured, <strong>the</strong> UNIX or NT system that wants <strong>to</strong><br />

use <strong>the</strong> printer will have <strong>to</strong> be configured. Here are some sample UNIX<br />

/etc/Printcap settings from cashbox.widgetco.com:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!