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:
To start, put your hostname into /etc/sys_id, like this:
printf 'indy' > /etc/sys_id
# 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
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
> rm /usr/etc/resolv.conf > ln -s /etc/resolv.conf /usr/etc/resolv.conf
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
route add -net default 192.168.1.1 -hopcount 1
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
$ROUTE $QUIET add -net default 192.168.1.1
Finally, a few configuration changes to round this off.
Disable routed: > chkconfig routed off
Reboot or restart networking: > /etc/killall -HUP inetd