Can't able to connect the Server

I am working with solaris 9 and i want to work with netscape browser but when i am opening netscape.it is showing the following message-

An error occurred reading the startup configuration file.Please contact ur administrator. /.netscape/preferences.js,line 66:unterminated string literal.t,127.0.0.1

and when I ping any address,it is showing the following message--

# ping 142.102.100.60
ICMP Host Unreachable from gateway mgsun (10.130.92.27)
for icmp from mgsun (10.130.92.27) to 126.4.200.33
ICMP Host Unreachable from gateway mgsun (10.130.92.27)
for icmp from mgsun (10.130.92.27) to 126.4.200.33
ICMP Host Unreachable from gateway mgsun (10.130.92.27)
for icmp from mgsun (10.130.92.27) to 126.4.200.33
ICMP Host Unreachable from gateway mgsun (10.130.92.27)
for icmp from mgsun (10.130.92.27) to 126.4.200.33

so please tell me,how can I connect with the server :confused:??
Please response quickly.....

Thanks in advance..

ifconfig -a
cat /etc/resolve.conf
netstat -rn
cat /etc/nsswitch.conf

I am putting the output

# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.130.92.27 netmask ffffffc0 broadcast 10.130.92.63
ether 0:3:ba:27:99:f3

# cat /etc/resolve.conf
cat: cannot open /etc/resolve.conf

# netstat -nr

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
10.130.92.0 10.130.92.27 U 1 12 eri0
224.0.0.0 10.130.92.27 U 1 0 eri0
default 10.130.92.27 UG 1 0
127.0.0.1 127.0.0.1 UH 28 256078 lo0

# cat /etc/nssswitch.conf
cat: cannot open /etc/nssswitch.conf

Look to server side ...

hmm .. lets look what traceroute gives ..

The missing files are misspelled. You want /etc/resolv.conf and /etc/nsswitch.conf with two (not three) s:es.

Why is your own IP listed as the default gateway? You need to have an outbound route configured.

look to /etc/defaultrouter file ..
have you df gw or u added it manually?

Depending on how your network is setup you may also need to check if you have the following file

/etc/defaultrouter

It should contain the ip address of your default gateway

One thing I want to tell you that DNS was not selected for name resolution when Solaris was installed.

Sorry for that,now I am sending the correct info--

# cat /etc/nsswitch.conf
#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd: files
group: files
hosts: files
ipnodes: files
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
sendmailvars: files
printers: user files

auth_attr: files
prof_attr: files
project: files

# cat /etc/resolv.conf
cat: cannot open /etc/resolv.conf

# cat /etc/defaultrouter
cat: cannot open /etc/defaultrouter

No Idea,Why is your own IP listed as the default gateway.
Hpw can i config the other IP as default gateway :confused:??

of course .. create /etc/defaultrouter file and add your gateway on your network
this is for permanently .. manually add with route command ..

route delete default 10.130.92.27
route add default your_gw

I deleted the default router(10.130.92.27) and try to add the new router but it is saying--

# route add default 142.102.100.60
add net default: gateway 142.102.100.60: Network is unreachable

I am also sending the o/p of netstat which shows 10.130.92.27 had been deleted as default router

# netstat -nr

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
10.130.92.0 10.130.92.27 U 1 14 eri0
224.0.0.0 10.130.92.27 U 1 0 eri0
127.0.0.1 127.0.0.1 UH 28 264544 lo0

my main problem is that i am unable to reach the n/w.So please tell me How can I do that??

Oh dear .. dont u see that u have no gateway from your subnet to another ..firstly u must assign default gateway ..from which you can reach to another (of course if there is any way) .. ask to your admin what is default gateway of your net ..

Presumably there is a gateway on the 10.130.92.x network which knows how to connect to 142.102.100.60 so you should use that as your gateway. I suppose you could put in an explicit route to 142.102.100.60 but we don't know how you are wired, so we cannot hope to guess how exactly. (Presumably on eri0 so you could try to add a route to that address on that interface and see if it helps, but I suspect it won't.)

My issue had been resolved....

Thanks a lot all of you for replying ;).....

What was the solution then?

i was using the wrong gateway..
so I delete that...
route delete default x.x.x.x
route add default xx.xx.xx.xx.

Sorry for posting and asking again ....

I am facing the problem again but not able to understan why It is happening ?
everything seems fine.

when I am running the p4 then I am getting the following error-

Connect to server failed; check $P4PORT.
TCP connect to perforce failed.
perforce: host unknown.
Connect to server failed; check $P4PORT.
TCP connect to perforce failed.
perforce: host unknown.

Along with that I am also putting the requird things-
$ cat etc/defaultrouter
10.130.92.1
$ echo $P4PORT
126.4.200.33:1666
$ ping 126.4.200.33
126.4.200.33 is alive.
$ netstat -nr

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
10.130.92.0 10.130.92.27 U 1 7 eri0
224.0.0.0 10.130.92.27 U 1 0 eri0
default 10.130.92.1 UG 1 10
127.0.0.1 127.0.0.1 UH 31 16265 lo0

$ cat etc/defaultrouter
10.130.92.1

As per the given info,please tell me waht gone wrong???

It cannot find the IP address for any host named "perforce". Add it to your /etc/hosts, check that its DNS is properly configured, and/or use an explicit IP address.

I Resolved the problem :slight_smile:

:b::b::b::b::b::b:

Thanks a lot guys :stuck_out_tongue: