Please consider a donation to the Higher Intellect project. See
Donate to Higher Intellect
page for more info.
Jump to navigation
Jump to search
Newer edit →
Network Setup 6.5
Revision as of 12:39, 20 April 2021
4,144 bytes added
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.
===Static IP Setup===
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: http://archive.irix.cc/apocrypha/the-lost-chapters/ch2.html
====Set the Hostname====
<code># printf "octane" > /etc/sys_id</code>
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.
====Assign IP Address====
To self-assign an IP, open up the /etc/hosts file and remove the IRIS line. Then, add the following line:
<code>192.168.1.10 octane.home.local octane</code>
This line should be the desired IP, followed by the fully qualified hostname, and the hostname at the end.
====Turning off DHCP and routed====
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:
% /usr/etc/ifconfig -a
inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255
inet 127.0.0.1 netmask 0xff000000
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:
<code>tg0 192.168.1.30 netmask 0xffffff00 broadcast 192.168.1.255</code>
Now turn on the service:
<code># chkconfig ipaliases on</code>
Next, edit <code>/etc/resolv.conf</code> with DNS servers and search domains:
nameserver 184.108.40.206 # This is OpenDNS
nameserver 220.127.116.11 # This is Cloudflare, also recommended
To ensure that this file is correctly permissioned, run:
<code># chmod 644 /etc/resolv.conf</code>
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: <code>hosts: files dns</code>
Finally, add a static route to the default gateway in <code>/etc/config/static-route.options</code>. 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:
<code>systune ip6_enable 1</code>
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
strings /var/ns/lib/libns_dns.so | grep ip6
If this is returned, or anything other than .arpa, it's going to require updating.
Retrieved from "
Higher Intellect Home
OMGWTFBBQ Tech Blog