Setting Up Networking


Editor's note: This page content was collected from the URL: https://software.majix.org/irix/network-setup.shtml If you are the copyright owner of this work and wish for us to take it down, please send a properly formatted DMCA to dmca [AT] irix [Dot] cc. Thank you.

General Information

One might think that getting an SGI machine into the network is an easy task. Actually when using IRIX 6.5, it really is easy using the GUI, but when you are still using 5.2, things are a bit more difficult, as the GUI only supports you in assigning a hostname and IP-adress. But there is no frontend for setting the domain-name, the dns-server or the gateway.
Fortunately things aren't that bad, you can get your SGI box into the internet by modifiying some files. Before you start, you will need the following information:


Having gathered this, you can use the GUI for setting your hostname, local IP, and netmask. But you have no chance to enter the other information.


Setting the Hostname

To start, put your hostname into /etc/sys_id, like this:

printf 'indy' > /etc/sys_id

Now you have to add your machine name and IP-address at the end of the /etc/hosts-file. Do not delete the localhost line.
Your /etc/hosts should look something like this:

# IP address-hostname database (see hosts(4) for more information).
# Default IP address for a new IRIS. It should be changed immediately 
# to the address appropriate for your network.
# (The '192.0.2' network number is the officially blessed 'test' network.)
# This entry must be present or the system will not work.
127.0.0.1       localhost

# Assigned multicast group addresses listed in RFC-1060 ("Assigned Numbers").
# These entries can be deleted if you don't want them.
# (They are also available via the Internet DNS name servers.)
224.0.0.1       all-systems.mcast.net
224.0.0.2       all-routers.mcast.net
224.0.0.4       dvmrp.mcast.net
224.0.0.5       ospf-all.mcast.net
224.0.0.6       ospf-dsig.mcast.net
224.0.1.1       ntp.mcast.net
224.0.1.2       sgi-dog.mcast.net
224.0.1.3       rwhod.mcast.net
224.0.2.1       rwho.mcast.net
224.0.2.2       sun-rpc.mcast.net

# Local address
192.168.1.22    indy.majix.homeip.net

Setting up your DNS

Now edit the file /etc/resolv.conf. If it does not exist, create the file. Then write the following information into the file /etc/resolv.conf:

domain majix.homeip.net
nameserver 192.168.1.2
nameserver 192.168.10.1

In order to support some older software, you should create a link to the newly created resolv.conf by typing at a command-prompt:
> rm /usr/etc/resolv.conf
> ln -s /etc/resolv.conf /usr/etc/resolv.conf

Routing

This is definately the most complicated task, especially for older IRIX releases. Because different IRIX versions require different approaches, this item is split up into three subitems.
IRIX 5.3 Edit the file /etc/rc2.d/S30network. Go to line 355 and put in the following line after the else:
$ROUTE add default 192.168.1.1 1
Of course you have to insert your gateway instead of 192.168.1.1. The region around line 355 should look like this:

348   if test "$if1name" != ""; then
349       $IFCONFIG $if1name inet $if1addr 2>/dev/null
350       $IFCONFIG $if1name down          2>/dev/null
351   fi
352   $IFCONFIG lo0 $localhost
353   $ROUTE -q delete net $if1addr $if1addr >/dev/null 2>&1
354   $ROUTE -q add 224.0.0.0 $localhost 0   >/dev/null 2>&1
355      else
356      $ROUTE add default 192.168.1.1 1
357
358   # Initialize other boards if this host is a gateway (no harm if
359   # they are missing). Systems with more than 2 interfaces must
360   # update /etc/config/netif.options (see comments in the file).
361

IRIX 6.2 OLD
Edit the file /etc/rc2.d/S30network. Go to line 388 and put in the following line after the else:
route add -net default 192.168.1.1 -hopcount 1
Of course you have to insert your gateway instead of 192.168.1.1. The region around line 388 should look like this:
379   $IFCONFIG lo0 $localhost
380   if1net=`$IFCONFIG $if1name \
381      | sed -n 's/^[    ]*inet  *\([^ ]*\).*/\1/p' 2>/dev/null`
382   if test -n "$if1net"; then
383       $ROUTE delete $if1net -net >/dev/null
384   fi
385   $ROUTE add 224.0.0.0 $localhost -interface >/dev/null
386          else
387
388          route add -net default 192.168.1.1 -hopcount 1
389
390   # Initialize other boards if this host is a gateway or multi-homed
391   # (no harm if they are missing). Systems with more than 2 interfaces
392   # must update /etc/config/netif.options (see comments in the file).
393

IRIX 6.2 and up
This is probabably the easiest system. If you have IRIX 6.2, first check if the file /etc/config/static-route.options. If it does not exist, you probably have an old IRIX 6.2, and you should refer to the section above. All newer IRIXes (6.3 and above) should have this file.
At the end of the file /etc/config/static-route.options simply add the line
$ROUTE $QUIET add -net default 192.168.1.1

Finishing Touches

Finally, a few configuration changes to round this off.
Disable routed: > chkconfig routed off
Reboot or restart networking: > /etc/killall -HUP inetd

Editors notes: Cleanup was mostly typos, removing redundancy, adding some relevant info in the last section, and changing some section names as the original author did not use proper English.