Up: SGI admin Frequently Asked Questions (FAQ)
Next: -38- How can I make the 'slip' command advertise the Ethernet address of the SLIP client?
Previous: -36- How can I measure my network's reliability?
Subject:   -37- How do I add a static route?
Date: 13 Nov 1994 00:00:01 EST

  Some sites handle IP routing by designating a routing machine and
  having all other hosts define a static route to that machine. The way
  to do this on SGIs is in the /etc/init.d/network.local script.

  1) Read the paragraph just before the copyright at the top of
     /etc/init.d/network and make the links it specifies.

  2) Put something like the following in /etc/init.d/network.local,
     replacing ROUTER'S.IP.ADDRESS.HERE with the address of your
     router.

     #! /bin/sh
     IS_ON=/sbin/chkconfig
     case "$1" in
     'start')
         if $IS_ON network; then	# network must be chkconfig'ed on
             /usr/etc/route add default 130.132.25.1 1
         fi
         ;;
     'stop')
         /usr/etc/route delete default 130.132.25.1 ;;
     *)
         echo "Usage: $0 {start|stop}" ;;
     esac

  Check the script with 'sh -v /etc/init.d/network.local'.

  If you NFS-mount disks from the other side of the static route, they
  will not be unmounted properly during shutdown. You can fix this by
  making the links so that /etc/init.d/network.local runs before
  /etc/init.d/network: 'ln -s /etc/init.d/network.local
  /etc/rc0.d/K41network' instead of '/etc/rc0.d/K39network'.

Up: SGI admin Frequently Asked Questions (FAQ)
Next: -38- How can I make the 'slip' command advertise the Ethernet address of the SLIP client?
Previous: -36- How can I measure my network's reliability?