Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Solaris 10 home networking issue

807557Feb 20 2006 — edited Feb 20 2006
I had a terrible time getting my home network to work. Therefore, I'd like to share with you my solution - even if I will be the only one looking for it the next time this happens:

My setup:

[1] Comcast Cable
Solaris 10 system connects to Router
Router is set for DHCP and has an local network IP of 192.168.2.1

[2] I used sys-unconfig to get the basic settings:
Networked=YES
DHCP for rtls0=YES
Enable IPv6=NO
Kerberos=NO
Name service=DNS
Domain name=comcast (WHAT DO I ENTER HERE?)
Server's IP address=192.168.2.1
"Unable to find an address, enter new name server"=NO
(I won't type out the other settings, i.e. Locale, time)
(System reboots and loads dtlogin)

At this point, I noticed that the hostname was "unknown" - to remedy this, I created a file /etc/nodename with only the hostname I wanted to give my system, i.e. ilovesolaris. That way, when Solaris 10 loads, it will use that name for the hostname when it isn't given a different hostname by the DHCP server (by the way, this won't work for Solaris 9 - for 9, you need to add an intermediate step by adding some script to /etc/init.d - you can find mention of it here: http://www.rite-group.com/consulting/solaris_nat.html).

So now, everything seems to work. Even though I didn't know what on earth I should enter into the "Domain" question. Either it doesn't matter, or comcast was correct.

Here are my configuration files (I didn't have to change any):

A. Hosts
[unkerich:/export/home/me]% more /etc/hosts
127.0.0.1 localhost loghost
192.168.2.101 unkerich # Added by DHCP


B. Hostname.rtls0
[unkerich:/export/home/matthias]% more /etc/hostname.rtls0
[unkerich:/export/home/matthias]%
(empty)


C. Resolv.conf
[unkerich:/export/home/matthias]% more /etc/resolv.conf
nameserver 192.168.2.1


D. Nsswitch.conf
[unkerich:/export/home/matthias]% more /etc/nsswitch.conf
#
# /etc/nsswitch.dns:
#
# An example file that could be copied over to /etc/nsswitch.conf; it uses
# DNS for hosts lookups, otherwise it does not use any other naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
# DNS service expects that an instance of svc:/network/dns/client be
# enabled and online.
passwd: files
group: files
# You must also set up the /etc/resolv.conf file for DNS name
# server lookup. See resolv.conf(4).
hosts: files dns
# Note that IPv4 addresses are searched for in all of the ipnodes databases
# before searching the hosts databases.
ipnodes: files dns
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
printers: user files
auth_attr: files
prof_attr: files
project: files


E. Dhcp.rtls0
[unkerich:/etc]% more dhcp.rtls0
[unkerich:/etc]%
(empty)


Hope this helps someone. Here are a few good websites:
http://www.rite-group.com/consulting/solaris_nat.html
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch03_:_Linux_Networking
http://www.linuxquestions.org/questions/showthread.php?t=410363


- dailysun
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 20 2006
Added on Feb 20 2006
2 comments
199 views