home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / hp / 10341 < prev    next >
Encoding:
Internet Message Format  |  1992-09-12  |  5.4 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!scd.hp.com!hplextra!hpcc05!hpyhde4!hpycla!hpergfg2!hprdash!hprnd!k
  2. From: k@hprnd.rose.hp.com (Steve Kao)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: Can a 700 print to an ethernet printer?
  5. Message-ID: <930025@hprnd.rose.hp.com>
  6. Date: 11 Sep 92 20:10:26 GMT
  7. References: <1992Sep09.211302.19564@edsi.plexus.COM>
  8. Organization: HP Roseville Networks Division
  9. Lines: 121
  10.  
  11.  
  12.             JETDIRECT FOR UNIX AND ROUTERS ON HP-UX NETWORKS
  13.  
  14. Some people want to have the JetDirect for unix card in a LaserJet
  15. printer/plotter on one network segment, and a Master Spooler on a
  16. different network segment.  Between the two segments is a router.  Below
  17. is a picture of such a set-up.
  18.  
  19.      +------+
  20.      |Node A| IP=15.32.151.6
  21.      |HP9000| Subnet Mask=255.255.248.0
  22.      +---+--+
  23.          |
  24. ---------+--------------------------+-----------------------------------
  25.                                     |
  26.                                  +--+--+
  27.                                  |lan 0| IP=15.32.150.3
  28.                                  |     | Subnet Mask=255.255.248.0
  29.                                  |-----|
  30.                    IP=192.6.2.10 |lan 1|
  31.        Subnet Mask=255.255.255.0 |     |
  32.                                  +--+--+
  33.                                     |
  34. ------------------------------------+---------+-------------------------
  35.                                               |
  36.                                          +----+---+
  37.                                          |LaserJet| IP=192.6.2.11
  38.                                          +--------+ Subnet Mask=255.255.255.0
  39.  
  40. In order for Node A to be a Master Spooler, the following things need to
  41. be configured.  On the LaserJet (it could be a DesignJet plotter, but
  42. I'm using a LaserJet in this example), the subnet mask must be
  43. configured to be the same as all other devices on lan 1.  The gateway
  44. parameter must contain the IP address of the router's lan 1 IP address.
  45. The /etc/bootptab file forthe LaserJet must look something like the
  46. following.
  47.  
  48. hplaser1:\
  49.     :ht=ether:\
  50.     :ha=080009cba987:\
  51.     :gw=192.6.2.10:\
  52.     :sm=255.255.255.0:\
  53.     :hn:\
  54.     :vm=rfc1048:
  55.  
  56. If you are on a subnetted network, you must configure both the "gw" and
  57. the "sm" parameters.  Without the "sm" parameter, the LaserJet will use
  58. the default subnet mask of 0.0.0.0 and not recognize the "gw" parameter
  59. as having any meaning.  The "gw" parameter is needed to tell the
  60. LaserJet that packets may be sent to the printer from a different
  61. network segment.  (Use your card's LAN hardware address for the "ha"
  62. parameter.)
  63.  
  64. If your network is not subnetted, you need not configure the "sm"
  65. parameter.  The "gw" parameter must still be configured.
  66.  
  67. On Node A (the Master Spooler), an entry must be made to /etc/netlinkrc
  68. to point to the router's lan 0 IP address (15.130.150.3 in this case).
  69. This is a large file.  Look for a section in the file similar to the
  70. following.
  71.  
  72. #
  73. # Initialize network routing.
  74. #
  75. # (STEP 2) (OPTIONAL, FOR NETWORKS WITH GATEWAYS ONLY)
  76. #
  77. # The route(1m) command manipulates the network routing tables.
  78. # The "case $NODENAME" construct below allows each node in a diskless
  79. # cluster to execute node specific route calls if necessary.  Add entries
  80. # to the case construct for specific nodes in the diskless cluster if needed.
  81. #
  82. # For example,
  83. #
  84. #   case $NODENAME in
  85. #     $ROOTSERVER) /etc/route add 192.0.2 gatenode 1
  86. #                  ;;
  87. #               *) /etc/route add default 15.2.104.69 1
  88. #                  ;;
  89. #   esac
  90. #
  91. # adds network destination "192.0.2" to the rootserver's routing tables,
  92. # indicating a correspondence between that destination and the gateway
  93. # "gatenode", and specifying the number of hops to the gateway as 1.  For 
  94. # all other nodes (* is the wildcard), the default gateway is set to 
  95. # 15.2.104.69. 
  96. #
  97. # The route command should be invoked once per gateway. 
  98. #
  99. # SEE ALSO: route(1m), routing(7)
  100.  
  101. case $NODENAME in
  102.             *) /etc/route add default 15.32.150.3
  103.                ;;
  104. esac
  105.  
  106. Notice that 15.32.150.3 is the IP address of lan0 in the router.
  107.  
  108.  
  109.                          BOOTP THROUGH THE ROUTER
  110.  
  111. When the card is powered up, it knows nothing about itself, not even its
  112. IP address.  After initializing itself, it checks to see where it gets
  113. its configuration information.  If its configuration information comes
  114. from bootp (as opposed to from the front panel), then the card
  115. broadcasts a bootp request.  If the bootp server is on the same subnet
  116. and has been configured to respond to bootp requests from the card's LAN
  117. hardware address, then the bootp server sends the bootp configuration to
  118. the card in a bootp reply.  If the bootp server is on a different
  119. subnet, then the router(s) between the two subnets must be able to
  120. forward the broadcast bootp request between the subnets.  By default,
  121. most routers do not forward broadcast packets.  The ability to forward
  122. bootp broadcast requests is called "bootp relay."
  123.  
  124. If the router in the above example does not support bootp relay, then
  125. the bootp server for the LaserJet must be on the LaserJet's local
  126. network segment.  In order for the Master Spooler (or any other system
  127. on the 15.32.144 subnet) to be the bootp server, the router must
  128. support bootp relay.  Not all routers support bootp relay.  Some
  129. routers must be configured to support bootp relay.  Some routers (such
  130. as the HP27270A router CR) support bootp relay only after certain
  131. firmware revisions (rev. 5.74 for the router CR).
  132.