LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 01-22-2012, 11:49 PM   #1
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
internet is not wokring


Hello all

I am really new to solaris. This is the first time I installed solaris 10 and I am having internet connectivity issue.

I am able to ping all the IP in network including the gateway and DNS but I am no connected to internet.

Code:
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.0.92 netmask ffffff00 broadcast 192.168.0.255
        ether 0:50:56:8b:0:e
Code:
# cat /etc/resolv.conf
nameserver 4.2.2.2
nameserver 8.8.8.8
Code:
# cat /etc/defaultrouter
192.168.0.1
bash-3.00#
Code:
# cat /etc/nodename
solaris-hotwire
bash-3.00#
Code:
# cat /etc/inet/netmasks
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
#       network-number  netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
#               128.32.0.0 255.255.255.0
#
192.168.0.0     255.255.255.0
Code:
bash-3.00# ping 192.168.0.1
192.168.0.1 is alive
bash-3.00# ping 4.2.2.2
4.2.2.2 is alive
bash-3.00# nslookup google.com
Server:         4.2.2.2
Address:        4.2.2.2#53

Non-authoritative answer:
Name:   google.com
Address: 74.125.235.17
Name:   google.com
Address: 74.125.235.18
Name:   google.com
Address: 74.125.235.19
Name:   google.com
Address: 74.125.235.20
Name:   google.com
Address: 74.125.235.16
Code:
bash-3.00# ping google.com
ping: unknown host google.com


what am I missing??
 
Old 01-23-2012, 12:17 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Try:
Code:
$ping www.google.com
make sure your gateway and DNS is correct. If that DNS isnt working try different ones.
http://www.opendns.com/

Regards
 
Old 01-23-2012, 12:26 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Thanks for your reply

But the DNS I am using is GOOGLE dns and it is working for all the other linux distributions on all workstations
 
Old 01-23-2012, 03:32 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You are missing a proper /etc/nsswitch.conf hosts configuration.

It should be:

Code:
hosts: files dns
 
1 members found this post helpful.
Old 01-23-2012, 04:05 AM   #5
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
I made the following changes but still no good news

Code:
#vi /etc/nsswitch.conf
passwd:     files
group:      files
hosts:      files dns
ipnodes:    files
networks:   files
protocols:  files
rpc:        files
ethers:     files
netmasks:   files
bootparams: files
publickey:  files
 
Old 01-23-2012, 04:13 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Double check. It should work.
 
Old 01-23-2012, 04:48 AM   #7
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by jlliagre View Post
Double check. It should work.
I restarted the machine and now its working

but last time I restarted my network but still the internet was not working

Code:
#svcadm restart network
please correct me if I am wrong, this is the command to restart the network?

And there is one more confusion
I have two resolv.conf inside my etc

Code:
#/etc/resolv.conf
and
#/etc/resolv.conf~
I have no idea about the other one as it is a blank file
should I delete that file?
and it is created?
 
Old 01-23-2012, 07:32 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by deep27ak View Post
I restarted the machine and now its working
ok
Quote:
but last time I restarted my network but still the internet was not working

Code:
#svcadm restart network
please correct me if I am wrong, this is the command to restart the network?
Likely not enough given the fact it wasn't sufficient. I actually never ran that command and believe network is just a milestone, not a real restartable service.
The only service that was needing to be restarted was probably "name-service-cache".
Quote:
And there is one more confusion
I have two resolv.conf inside my etc

Code:
#/etc/resolv.conf
and
#/etc/resolv.conf~
I have no idea about the other one as it is a blank file
should I delete that file?
You can delete it, especially if it is empty.
Quote:
and it is created?
It is probably a backup file created by the editor you used.

Last edited by jlliagre; 01-23-2012 at 07:43 AM.
 
Old 01-23-2012, 07:35 AM   #9
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195

Original Poster
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
then what is the command in solaris to restart the network after I make changes?

like in linux we have
Code:
#service network restart
there must be some similar command for the same purpose?
 
Old 01-23-2012, 07:53 AM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
The closest equivalent would probably be
Code:
svcadm restart network/physical
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Openvpn with Ethernet is not wokring properly. Timtastic Linux - Server 1 01-31-2010 03:46 AM
Ubuntu 9.04 will update...all fixes not wokring dorlack Linux - Newbie 1 10-19-2009 11:32 AM
hp dv1427us usb mouse/devices not wokring chetty Linux - Laptop and Netbook 4 12-24-2005 12:54 AM
qmailrocks smtp auth not wokring posixjunkie Linux - Networking 6 05-08-2004 10:29 AM
Nothing's wokring in Gentoo 1.4rc4! Help! kierl Linux - General 2 07-28-2003 03:42 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 08:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration