Indiana University
University Information Technology Services
  
What are archived documents?

Using IRIX on my SGI workstation, how do I establish routing?

To establish routing under IRIX on your SGI workstation, create a file called local and add it to the /etc/init.d directory. It should contain the following lines:

#! /bin/sh # Site-specific startup/shutdown functions case "$1" in 'start') route add default 129.79.xxx.254 1 ;; 'stop') ;; *) echo "usage: $0 {start|stop}" ;; esac

Note: Replace xxx with your subnet. Additionally, some campus subnets have a router with host number 174 rather than 254. If you are on one of these subnets, also replace 254 with 174 .

To make the script executable, at the Unix prompt, enter:

chmod 744 /etc/init.d/local

Enter the following to add a script that makes it the last thing to run when init is at run level 2:

ln -s /etc/init.d/local /etc/rc2.d/S99local

This should establish routing upon bootup. To start it without rebooting, enter:

/etc/init.d/local start

Note: You can use this local script to add instructions for starting or terminating any other daemon you want to take care of as part of bootup or shutdown procedures.

At Indiana University, to get support for personal or departmental Linux or Unix systems, see At IU, how do I get support for Linux or Unix?

Also see:

This is document adoe in domain all.
Last modified on August 22, 2008.
Please tell us, did you find the answer to your question?