Solved

Setup routing to ISP in Solaris 2.4

Posted on 1997-06-29
3
283 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month8 days, 17 hours left to enroll

615 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