×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to Configure Internet on Solaris 10?

How to Configure Internet on Solaris 10?

How to Configure Internet on Solaris 10?

(OP)
Hi Guys,

I recently installed Solaris 10 on Vmware Workstation 7.0.1. I'm trying to get Internet to work in the solaris virtual machine by sharing it from the host machine but have not been successful.The Solaris Virtual Machine NIC is using NAT. Please help.

Thanks
kisad

RE: How to Configure Internet on Solaris 10?

I am not an expert in VMware, so I am hoping that someone with that proficiency will jump in here.  I have used VMware server (to test) and I didn't have any trouble, so I am thinking that it is just a configuration issue in Solaris.  

However, re-configuring the all of the files necessary to change the networking on Solaris is a PITA.  Easiest thing to do is use the sys-unconfig command and configure everything from scratch.  Don't worry - if you have installed any applications or packages, it won't get affected.

Run the following command:

# sys-unconfig

The system will then un-configure everything then reboot.  Just answer the questions as it goes through the setup.  On the DNS portion, manually put in your servers IP addresses.  On the search domains, put in your domain(s) as applicable.  If it tells you that it can't find your host (unknown), just proceed...don't re-enter the DNS server.

Since you are operating behind NAT, DHCP, won't be able to give you a hostname.  Therefore, make sure you add your hostaname to the file /etc/hostname.<adapter>  For example, if your adapter is hme0, the add your hostname to the file /etc/hostname.hme0

You can also do it temporarily from the command line:

# hostname <name of your host here>

Hope that helps.

 

RE: How to Configure Internet on Solaris 10?

(OP)
Hi artfulbodger,

Many Thanks for your help. I'm now able to ping the ip address's of thw website and also browse websites using the ip address.however it doesnt seem to work with FQDN.I have added the below line in the /etc/nsswitch.conf file and rebooted the sytem.Please help.

hosts: files dns
ipnodes: files dns


bash-3.00# ping 209.85.231.104
209.85.231.104 is alive
bash-3.00# ping www.google.com
ping: unknown host www.google.com
bash-3.00#
 

RE: How to Configure Internet on Solaris 10?

/etc/resolv.con

populate the dns name and address

solaris10 [687576]-> cat /etc/resolv.conf
nameserver 66.109.223.4
nameserver 66.109.223.44
search dns.wispertel.net
 

A great teacher, does not provide answers, but methods to teach others "How and where to find the answers"

bsh

36 years Bell, AT&T, Lucent, Avaya
Tier 3 for 26 years and counting
http://bshtele.com

RE: How to Configure Internet on Solaris 10?

The reply by Avaya is correct.  The /etc/resolv.conf file will tell your system where the name servers are.  However, that should have been automatically created when you did the sys-unconfig and re-config'd the system.

You can also try a public DNS server like 4.2.2.2.

Also, you don't need to reboot....just type the following command:

# svcadm restart network

That will restart the network without a reboot.


 

RE: How to Configure Internet on Solaris 10?

(OP)
HI AvayaTier3 & artfulbodger,

I had made the DNS entry of my ISP in the resolve.conf file but still not able to ping FQDN.

bash-3.00# more /etc/resolve.conf
nameserver      125.22.47.125
nameserver      202.56.250.5
search dnsblr.mantraonline.com
search AES-Static-125.47.22.125.airtel.in

RE: How to Configure Internet on Solaris 10?

/etc/resolv.conf does not have an "e" after the "v"

/etc/resolve.conf is not the correct filename

A great teacher, does not provide answers, but methods to teach others "How and where to find the answers"

bsh

36 years Bell, AT&T, Lucent, Avaya
Tier 3 for 26 years and counting
http://bshtele.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close