Setting
up Networking
|
General Information | ||||
IntroductionOne 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: (Examples are given in brackets)
Having gathered these informations, you can use the GUI for setting your hostname, IP-adress and the IP-mask. But you have no chance to enter the other information. 1. Setting the hostname.This can be done either using the GUI or by modifiying the file /etc/sys_id. Simply write the hostname (without domain!) into this file.2. Changing the hosts-file.Now you have to add your machine name and IP-address at the end of the /etc/hosts-file. Do not delete the line127.0.0.1 localhost Your /etc/hosts file then might look like
3. Setting the domain-name and DNS-server.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:
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 4. Setting the default route.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:
IRIX 6.2 old Versions: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:
IRIX 6.2 - 6.5: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 130.60.XX.1 5. Start/Stop deamons.There is one last important step, you probably want to disable the routing daemon. Enabling or disabling deamons is indeed very easy in IRIX. Simply type> chkconfig routed offto disable the routing daemon. You can see a list of all services and their state by simply typing chkconfig, and you can enable or disable all other services similarily. |
||||
Links | ||||