Just installed OpenSolaris 2009.06.
I see there is another thread from munchausen who is also unable to
connect. I'm not sure it's the same issue so I'll keep this
separate.
I've been away from Solaris for many years and my system admin
skills, never particularly acute, have not improved with the passing
of time separated from my favorite OS.
But I do remember that properly setup /etc's hosts, nsswitch.conf
and resolv.conf were all that was required to connect.
Unfortunately, OpenSolaris installs with DHCP by default.
So I googled "OpenSolaris Static IP" and was guided to do the
following.
svcadm enable physical:default
svcadm disable physical:nwam
Then I setup the hosts, nsswitch.conf and resolv.conf files to
agree with the Windows setup on my other computer.
I was able to ping my Windows XP machine.
Attempts to ping google.com, which work on my XP machine came back
with "unknown host google.com".
I attempted to ping google.com's IP address, returned in the ping
output on XP. No luck.
So I decided to re-boot to 32 bit OpenSolaris. Now I've got
nothing. An attempt to ping my XP from my OpenSolaris returns "ICMP
Host Unreachable from gateway tfa.local (127.0.0.1) for icmp from
tfa.local (127.0.0.1) to dragon (192.168.1.20)
I try to look at my settings using the GUI System-Adminstration-
Network, but they are grayed out until I do an automatic(DHCP) setup.
Then I can run a manual setup.
Suggestions?
Thanks
Larry
Have you set up a default router?
drkirkby@kestrel:[/etc] $ cat /etc/defaultroute
192.168.1.1
--
I respectfully request that this message is not archived by companies as
unscrupulous as 'Experts Exchange' . In case you are unaware,
'Experts Exchange' take questions posted on the web and try to find
idiots stupid enough to pay for the answers, which were posted freely
by others. They are leeches.
Being able to ping machines on your local network but not others means
you probably haven't set a default router. Try putting the IP address
of the router into /etc/defaultrouter.
> So I decided to re-boot to 32 bit OpenSolaris. Now I've got
> nothing. An attempt to ping my XP from my OpenSolaris returns "ICMP
> Host Unreachable from gateway tfa.local (127.0.0.1) for icmp from
> tfa.local (127.0.0.1) to dragon (192.168.1.20)
NWAM probably had plumbed your main interface. Once you rebooted, it was
gone.
You'll need to put your local IP address into /etc/hostname.<interface>,
where <interface> is e1000g0, nxge0, or whatever is appropriate for your
NIC. ifconfig -a plumb followed by ifconfig -a can give you a hint.
Was DHCP and NWAM not working for you?
--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/
> svcadm enable physical:default
>
> svcadm disable physical:nwam
>
> Then I setup the hosts, nsswitch.conf and resolv.conf files to
> agree with the Windows setup on my other computer.
>
> I was able to ping my Windows XP machine.
>
> Attempts to ping google.com, which work on my XP machine came back
> with "unknown host google.com".
You probably forgot to set up the default router. If your DNS server is
outside of your LAN it would be unreachable and DNS would not work.
route -p add default 192.168.x.x
If you get "unknown host" it isn't a routing problem. It is a DNS
problem.
Thanks Dave and Brandon:
You guys are right.
I knew there were 3 files in /etc that needed to be set up for an
Internet connection.
But it isn't hosts, though that is an important file, it's
defaultrouter.
several sites also advise running the following when converting
from DHCP to static IP:
svcadm enable physical:default
svcadm disable physical:nwam
Brandon, I'm using static IPs on my lan, so I've chosen to disable
DHCP and NWAM.
I'm posting this reply from OpenSolaris through Google.
I appreciate your advice.
Thanks
Larry
Thanks Dave and Brandon:
I thought I sent this reply, but it hasn't shown up after about a
half an hour.
You were right, I new there were three files in /etc that needed to
be setup to connect to the Internet, but it was defaultrouter instead
of hosts.
I'm posting this from OpenSolaris through Google so it works.
Brandon, I'm using static IP addressing on my LAN, to answer your
question about DHCP and NWAM.
For anybody who needs to setup static IP on OpenSolaris, from:
http://blogs.sun.com/natarajan/entry/setting_up_static_ip_and
Run the following before the System - Administration - Network -
Network Administration GUI:
svcadm enable physical:default
svcadm disable physical:nwam
I appreciate your advice.
Thanks
Larry
If the DNS server in outside the local subnet it needs routing to work.
You were right, I needed to setup /etc/defaultrouter.
Something is odd. I can browse from OpenSolaris, but I've
attempted two replies to this thread from there, and after a half an
hour, and again after about 15 minutes, neither has shown up. I'm
posting through Google's groups, so perhaps its a google problem.
When I hit "Send" things looked normal.
I'm using Windows XP to post this response, so we'll see.
Anyway, I appreciate your advice.
Thanks
Larry