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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-22-2012, 11:49 PM
|
#1
|
Senior Member
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
|
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??
|
|
|
01-23-2012, 12:17 AM
|
#2
|
Senior Member
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030
|
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
|
|
|
01-23-2012, 12:26 AM
|
#3
|
Senior Member
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Original Poster
|
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
|
|
|
01-23-2012, 03:32 AM
|
#4
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,794
|
You are missing a proper /etc/nsswitch.conf hosts configuration.
It should be:
|
|
1 members found this post helpful.
|
01-23-2012, 04:05 AM
|
#5
|
Senior Member
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Original Poster
|
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
|
|
|
01-23-2012, 04:13 AM
|
#6
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,794
|
Double check. It should work.
|
|
|
01-23-2012, 04:48 AM
|
#7
|
Senior Member
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Original Poster
|
Quote:
Originally Posted by jlliagre
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?
|
|
|
01-23-2012, 07:32 AM
|
#8
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,794
|
Quote:
Originally Posted by deep27ak
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.
It is probably a backup file created by the editor you used.
Last edited by jlliagre; 01-23-2012 at 07:43 AM.
|
|
|
01-23-2012, 07:35 AM
|
#9
|
Senior Member
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Original Poster
|
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?
|
|
|
01-23-2012, 07:53 AM
|
#10
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,794
|
The closest equivalent would probably be
Code:
svcadm restart network/physical
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 10:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|