I'm as new as you are, and asked same question yesterday, and this
what I wrote afterwards to somebody having the same problem:
1.
I Just had the same problem, and I asked my question just before you
(network Config--> Gijs Wuyts)
The reason why is that Sol setup does not allow for a gateway(router)
to be configured, it assumes the dns servers are on the same network.
The solution is quit simple: (I have to thank many people for this
Continue the setup with the parameters you entered, and Confirm at
least twice (the 2nd time he'll give the error message " An error has
occured, go back and correct " or something like that.
I just closed the dialog box and the setup continues. After everything
was installed, he reboots,a nd boots up with only local network
connectivity. pinging on my own subnet works.
Then I created a file /etc/defaultrouter with only the IP of the
Gatewayaddress for that network. Next time you reboot it will work.
Manually you can just give the command "route add default
xxx.xxx.xxx.xxx" x's being your gateway address. this gets you on the
way immediately.
now you have Ip connectivity, but not yet DNS resolving.
I'm right now working on that, but I'm making a text file,
/etc/resolv.conf which contains the following: (copied from man pages)
Creating the resolv.conf File
A simple example resolv.conf file for a client (non-server) machine in
the
doc.com domain is shown in Code Example 121:
CODE EXAMPLE 121 Sample resolv.conf File
; Sample resolv.conf file for the machine polaris
domain doc.com
; try local name server
nameserver 127.0.0.1
; if local name server down, try these servers
nameserver 123.45.6.1
nameserver 111.22.3.5
; sort the addresses returned by gethostbyname(3c)
sortlist
130.155.160.0/255.255.240.0
130.155.0.0
The first line of the /etc/resolv.conf file lists the domain name in
the form:
domain domainname
Where domainname is the name registered with the Internet governing
bodies (as of
this writing, the InterNIC).
Note - No spaces or tabs are permitted at the end of the domain name.
Make sure
that you enter a hard carriage return immediately after the last
character of the
domain name.
The second line identifies the loopback name server in the form:
nameserver 127.0.0.1
Succeeding lines list the IP addresses of up to three DNS master,
secondary, or
cache-only name servers that the resolver should consult to resolve
queries. (Do not
list more than three primary or secondary servers.) Name server
entries have the
form:
nameserver IP_address
Where IP_address is the IP address of a primary or secondary DNS name
server. The
resolver queries these name servers in the order they are listed until
it obtains the
information it needs.
The fifth line of the /etc/resolv.conf file lists the address sortlist
in the form:
sortlist
addresslist
Where addresslist specifies the sort order of the addresses returned
by
gethostbyname(3c). In our example, gethostbyname returns the netmask
pair
130.155.160.0/255.255.240.0 ahead of the IP address 130.155.0.0.
I'm figuring out the last command, but will let you know
Gijs
(tnks to Robert Egloff)
2.
Ok, I've found it (with thanks to my collegue Marc Jadoul).
the last line in resolv.conf I've commented, since I'm not aware what
it does exactly, and how I sould apply it.
There is a file /etc/nsswitch.conf, whihc contains actually the
definition of how names should be reolved.
Because the installation did not succeed, all names are resolved
through files. It works now by simply adding "dns" after "files" for
the hosts line.
Works fine for me !
Gijs
> First, I admit my sins: I am a primarily NT Admin, trying to break
>into the *NIX world.
>Now, to the problems. I just inherited admin-ning of a SparcServer 20
>and a SparcServer5, both running Solaris 2.6. Both installs are
>straight out of the box, done by another NT Admin. IP works, my
>colleague didn't set the /etc/inet/hosts file, so local name pinging
>doesn't work, but that's fixable.
>Question: what is the Solaris equivalent of a "default gateway", and
>where/ what file do I edit to set it. I can ping IP's inside my local
>network, but that's about it.
>After I get that fixed, I have a copy of a Super Kernel Patch that
>needs to be installed prior to installing Oracle 8: I burned it onto CD
>from my home Win98PC last night, but it's telling me that something is
>corrupt when I try to un-tar it. Any Suggestions ???
>Last newbie question, and possibly an underlying problem: on boot, I
>get large quantities of messages telling me that /var is out of
>filespace. Suggestions, comments, or am I missing something REALLY
>basic ???
>--
>Keith A. Glass - Manassas, VA
>Member, Dogbert's New Ruling Class
>Sent via Deja.com http://www.deja.com/
>Before you buy.