home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi.admin
- Path: sparky!uunet!think.com!yale.edu!news.yale.edu!neutron!dcs
- From: dcs@neutron.chem.yale.edu (Dave Schweisguth)
- Subject: Re: adding static routes
- Message-ID: <1993Jan28.151028.9335@news.yale.edu>
- Sender: news@news.yale.edu (USENET News System)
- Nntp-Posting-Host: neutron.chem.yale.edu
- Organization: Yale University
- X-Newsreader: TIN [version 1.1 PL8]
- References: <michael.728225723@xray.ki.ku.dk>
- Date: Thu, 28 Jan 1993 15:10:28 GMT
- Lines: 47
-
- Michael Gajhede (michael@ki.ki.dk) wrote:
- : I would like to add a static route at startup time, doing the same
- : as the command : route add default ...
- : Could anyone please tell me exactly where to put this command ?
-
- Here's what we do:
-
- [dcs neutron:~/ws] cat /etc/init.d/network.local
- #! /bin/sh
- #Tag 0x00000f00
-
- # This script controls local network setup. The following symlinks must be
- made
- # on each machine on which this is run:
- #
- # ln -s /etc/init.d/network.local /etc/rc0.d/K39network
- # ln -s /etc/init.d/network.local /etc/rc2.d/S31network
- #
- # (One copy lives in /etc/init.d on each machine.) It is actually run as
- # '/etc/rc0.d/K39network stop' and '/etc/rc2.d/S31network start' during
- # transitions to run levels 0 and 2 respectively. See the comments in
- # /etc/init.d/network.
-
- case "$1" in
- 'start')
-
- # There is only one router on our subnet and we need not run 'routed'.
- See
- # section 2.3.6 of the Network Administration Guide. We just tell the
- # network software to route all packets through the chem.yale.edu
- gateway:
-
- /usr/etc/route add default 130.132.25.1 1
- ;;
- 'stop')
- ;;
- *)
- echo "Usage: $0 {start|stop}"
- ;;
- esac
-
- Hope it helps. Cheers,
-
- --
- | Dave Schweisguth Yale MB&B & Chemistry Net: dcs@neutron.chem.yale.edu |
- | Lab phone: 203-432-5208 Fax: 203-432-6144 Home phone: 203-624-3866 |
- | For complying with the NJ Right To Know Act: Contents partially unknown. |
-