Solved

Setup routing to ISP in Solaris 2.4

Posted on 1997-06-29
3
281 Views
Last Modified: 2013-12-23
Question: I just install a brand new SunSparc 5 running
with Solaris 2.4 into my LAN which is connected
to an ISP through a router. I would like to know how
to configure the SunSparc Station routing table so
that my Solaris can reach any hosts on the Net.
Following is my machine/ISP info.:

1. My ISP's DNS Server IP address. (eg. 210.23.1.1)
2. My router IP address. (eg. 210.23.85.254)
3. My domain name. (eg. abc.com)
4. My hostname. (eg. solaris24)

Please kindly provide a guidline (I know that it's a
easy task for configuring this in Windows 95).
Many thanks !!!
0
Comment
Question by:chengwid
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Accepted Solution

by:
vkg063097 earned 80 total points
ID: 1582181
 To access the internet you have to modify to files, one for name server and other for routing.
For name server edit /etc/resolv.conf and add following two lines.
            domain       abc.com
            nameserver 210.23.1.1
For routing edit /etc/defaultrouter and add IP address of your router
            210.23.85.254
Now reboot the machine.
Check routing table by *netstat -rn* command. It should should
show default line pointing to your router 210.23.85.254.
You can add route manully by
      route add default 210.23.85.254 1You
For name server just try a nslookup like
      nslookup www.sun.com
You should get the IP address of SUN site with server as 210.23.1.1

Have fun.


vinay


0
 

Author Comment

by:chengwid
ID: 1582182
Hi Vkg,

Your answer works fine for me as long as I use nslookup command.
However, if I want to use "ping" command instead, how
can I do that ? Would you please advise for that ?
Many thanks !!!
0
 

Expert Comment

by:vkg063097
ID: 1582183
Hello,
      If nslookup is working then by default all the utility
which want name to ip conversion should work.
OK, let me bor more clear,
what happen when you say
            ping -s www.sun.com       ???
Does it resolv ip number of SUN site and say ICMP host unreachable fromgateway ......, If this is the case then you
may be behind a firewall.
   One more thing you may have to check and modify the /etc/nsswitch.conf file. Check the line starting with hosts
and add dns there
   hosts:   files dns
Just play around with the order of dns and files..
Let me know the result...

vinay
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

Suggested Solutions

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to moveā€¦
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

734 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