Solved

Internet Connection for SGI Indy

Posted on 1998-02-05
10
365 Views
Last Modified: 2013-12-16
I am configuring an SGI Indy to connect to the Internet. I have a static IP address, and the addresses of two name servers.

I have modified /etc/hosts to include the correct internet address and /etc/resolv.conf to look at the nameservers.

I have also made an entry in /etc/gateways speciying the ISP's network address and the number of hops to the nameserver.

If I try to ping somewhere in the outside world, I can resolve the address, but I get a 'network unreachable' error.

What have I forgotten to do?

0
Comment
Question by:cpranderia
  • 5
  • 5
10 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 50 total points
ID: 1812892
You're missing the route to the outside world, see netstat -rn .
Add following:

    route add net default <IP of your gateway>

Not shure how /etc/gateways works (IMHO it should add the default route), have never seen this file on my IRIX 4.x 5.x .
Did you reboot after makeing you changes?
0
 

Author Comment

by:cpranderia
ID: 1812893
Yes I did reboot after making the changes.

My understanding of 'route' is that it only manipulates the routing tables manually. It won't make a permanent change so that each time I reboot, the route to the outside world is there (I think).

As I understand it, /etc/gateways specifies the route to the outside world. (By the way, I should say I am running Irix 6.2 - sorry about not mentioning that.)

Any more ideas?
0
 

Author Comment

by:cpranderia
ID: 1812894
ahoffman

I have used 'route' to add in a route to  the outside world and now I can see the outside world, resolve names, ping things etc!

Thanks! However, I still haven't figured out how you make this route permanent. When I reboot, the route is lost and I have to add it again. Do I need to make an entry in /etc/networks? Do I need to edit /etc/init.d/network?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 51

Expert Comment

by:ahoffmann
ID: 1812895
My IRIX 6.4 also has no /etc/gateways :-(
I have to configure the defaultroute on all my IRIXs manually, means that I made a startup sript in /etc/init.d which will be called at boot time.

If you won't do that, just add the defaultroute in /etc/init.d/network

Probably there is a switch anywhere to do it automatically, but I have not found it yet.

BTW, do you have some docs, man-pages, etc. for /etc/gateways?
0
 

Author Comment

by:cpranderia
ID: 1812896
No, there is no man page for /etc/gateways, but look at the man page for routed. On 6.2, it is about 2/3rds of the way down the page.

By the way, /etc/init.d/networks looks frightening to me - is it as simple as adding a line with the route command?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1812897
Don't worry about this huge sript. Just add your line at the end of the 'start') case (just before the  ;;  line).
It's as simple as the route command, same syntax, its just a good idea to prepend route by its full path.

routed (always ever I remove this anoying deamon when setting up a new computer, this is why I don't have /etc/gateways:) wants the gateway be marked passive, not external, for your purpose.

I recommend using gated instead of routed if you need this functionality. If you have a small network you don't need either, adding a static default route should be ok, especially if this is your only gateway to the world.
Ups, this implies that all other hosts also have a default route to *your* gateway (SGI).

0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1812898
Thanks for grading.
So I asume that this was at least the final hint ;-))
0
 

Author Comment

by:cpranderia
ID: 1812899
Thanks for your help and my pleasure! Slowly my ploy to teach myself Irix admin is being realised, but I may run out of points first!
0
 

Author Comment

by:cpranderia
ID: 1812900
I have edited /etc/init.d/network and yes, it does add the route now at boot time. Thanks for the help. (Later this week I will have to go through the same exercise with Sun, HP, IBM and SCO Unix machines..... that should be fun!
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1812901
Hey, nice to see more "multi-platform admins" :)
Not that SunOS, Solaris have a command  defaultroute, HP will be the same as SGI.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Where to get php 5.6 for AIX 7.1? 5 110
Correct syntax to upload file in a script using sftp 2 90
UNIX SCP 5 82
unix in java example 9 70
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question