Solved

Setup routing to ISP in Solaris 2.4

Posted on 1997-06-29
3
274 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 80 total points
Comment Utility
 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
Comment Utility
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
Comment Utility
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

NetScaler Deployment Guides and Resources

Citrix NetScaler is certified to support many of the most commonly deployed enterprise applications. Deployment guides provide in-depth recommendations on configuring NetScaler to meet specific application requirements.

Join & Write a Comment

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
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…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now