home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sgi / admin / 324 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.9 KB  |  61 lines

  1. Newsgroups: comp.sys.sgi.admin
  2. Path: sparky!uunet!think.com!yale.edu!news.yale.edu!neutron!dcs
  3. From: dcs@neutron.chem.yale.edu (Dave Schweisguth)
  4. Subject: Re: adding static routes
  5. Message-ID: <1993Jan28.151028.9335@news.yale.edu>
  6. Sender: news@news.yale.edu (USENET News System)
  7. Nntp-Posting-Host: neutron.chem.yale.edu
  8. Organization: Yale University
  9. X-Newsreader: TIN [version 1.1 PL8]
  10. References: <michael.728225723@xray.ki.ku.dk>
  11. Date: Thu, 28 Jan 1993 15:10:28 GMT
  12. Lines: 47
  13.  
  14. Michael Gajhede (michael@ki.ki.dk) wrote:
  15. : I would like to add a static route at startup time, doing the same
  16. : as the command  : route add default ...
  17. : Could anyone  please tell me exactly where to put this command ?
  18.  
  19. Here's what we do:
  20.  
  21. [dcs neutron:~/ws] cat /etc/init.d/network.local
  22. #! /bin/sh
  23. #Tag 0x00000f00
  24.  
  25. # This script controls local network setup. The following symlinks must be
  26. made
  27. # on each machine on which this is run:
  28. #
  29. #   ln -s /etc/init.d/network.local /etc/rc0.d/K39network
  30. #   ln -s /etc/init.d/network.local /etc/rc2.d/S31network
  31. #
  32. # (One copy lives in /etc/init.d on each machine.) It is actually run as
  33. # '/etc/rc0.d/K39network stop' and '/etc/rc2.d/S31network start' during
  34. # transitions to run levels 0 and 2 respectively. See the comments in
  35. # /etc/init.d/network.
  36.  
  37. case "$1" in
  38. 'start')
  39.  
  40.     # There is only one router on our subnet and we need not run 'routed'.
  41. See
  42.     # section 2.3.6 of the Network Administration Guide. We just tell the
  43.     # network software to route all packets through the chem.yale.edu
  44. gateway:
  45.  
  46.     /usr/etc/route add default 130.132.25.1 1
  47.     ;;
  48. 'stop')
  49.     ;;
  50. *)
  51.     echo "Usage: $0 {start|stop}"
  52.     ;;
  53. esac
  54.  
  55. Hope it helps. Cheers,
  56.  
  57. --
  58. | Dave Schweisguth   Yale MB&B & Chemistry   Net: dcs@neutron.chem.yale.edu |
  59. | Lab phone: 203-432-5208     Fax: 203-432-6144    Home phone: 203-624-3866 |
  60. | For complying with the NJ Right To Know Act:  Contents partially unknown. |
  61.