IRIX unlike modern Linux distros, Windows and macOS necessitates some level of manual configuration.
Some of the tasks here can be accomplished via the GUI, but it is valuable to understand the networking stack in IRIX.
IRIX's network stack consists of several components:
- inetd - This not only controls the major network services, like telnet and rlogind, it also controls the network and updates to the network necessitate restarts of inetd.
- /etc/hosts - The hosts file, which sets the IP address of the server.
- /etc/nsswitch.conf - This tells IRIX where to obtain various components.
- /etc/resolv.conf - This contains the resolvers IRIX uses, plus the search domain.
- /etc/sys_id - Sets the hostname.
- /etc/config/static-route.options - Sets the default routes in absence of DHCP.
- /etc/config/ipaliases.options - For additional IP addresses.
- routed - Used for DHCP routing.
- autoconfig_ipaddress - DHCP service
With some luck IRIX DHCP will work out of the box, but it's good practice to set static network IPs for management purposes.
What follows is a guide intended to provide a basic set up into setting up network on IRIX 6.5 or later. For older versions, please check Apocrypha
Set the Hostname:
# printf "octane" > /etc/sys_id
The above command will set the hostname to octane. Set it as desired by replacing the string inside the quotes. This does NOT include the domain name.
To self-assign an IP, open up the /etc/hosts file and remove the IRIS line. Then, add the following line:
192.168.1.10 octane.home.local octane
This line should be the desired IP, followed by the fully qualified hostname, and the hostname at the end.
Now, disable these:
# chkconfig autoconfig_ipaddress off# chkconfig routed off
This step is optional, but if more IP addresses are required, they can be added.
First, verify the default interface:
inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255
lo0 is the localhost loopback, so the default will generally be the other interface, unless there's many cards, in which case, it's a matter of trial and error if not known.
In any case, once determined, move on to setting aliases. Edit
/etc/config/ipaliases.options, adding aliases using the following syntax:
tg0 192.168.1.30 netmask 0xffffff00 broadcast 192.168.1.255
Now turn on the service:
# chkconfig ipaliases on
Next, edit /etc/resolv.conf with DNS servers and search domains:
nameserver 188.8.131.52 # This is OpenDNS
nameserver 184.108.40.206 # This is Cloudflare, also recommended
To ensure that this file is correctly permissioned, run:
# chmod 644 /etc/resolv.conf
This step ensures that rogue NIS/yp services don't interfere. If planning to use NIS/yp, skip this step.
Change the hosts line to read: "hosts: files dns"
Finally, add a static route to the default gateway in
/etc/config/static-route.options. It is necessary to know this for this guide to work.
$ROUTE $QUIET add net default 192.168.1.1
Reboot and the network should start working.
IRIX includes support for IPv6 and it can be enabled as follows:
First, tune the kernel:
systune ip6_enable 1
Due to some bugs, it's necessary to check strings in the ipv6 files:
# strings /var/ns/lib/libns_dns.so | grep ip6
If the above is returned, it's fine
If this is returned, or anything other than .arpa, it's going to require updating. Instructions will follow.