home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / hp / 9267 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  5.1 KB

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