Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Setup routing to ISP in Solaris 2.4

Posted on 1997-06-29
3
Medium Priority
?
287 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
  • 2
3 Comments
 

Accepted Solution

by:
vkg063097 earned 240 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
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.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

879 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