How to Set Up Solaris Internet access

Source: Internet
Author: User
I find there are getting guys don't know how to setup files to connected to the Internet and ask the same question again and again. so, I post my configuration file here for those who need reference for Internet set up. hopefully this can help some one a little.

OK, basicly there are 4 file you have to config at Solaris to go to Internet:

1./etc/hosts or/etc/inet/hosts
2./etc/resolv. conf
3./etc/nsswitch. conf
4./etc/defaultrouter

What I have to say is that the files/etc/resolv. conf and/etc/defaultrouter are not existed by default system installation. you have to create that 2 file when you need setup Internet.

The following are my configuration file: (192.168.0.3 is my Solaris 9 system and 192.168.0.1 is the machine of Windows 2000/XP which has 2 network interfice, one connected to Internet by 24.101.186.193 and one connected to solaris9 by interfice 192.168.0.1. you have to choose to share Internet for the interface that connected to Internet at windows as you have)

CAT/etc/hosts

127.0.0.1 localhost
192.168.0.3 lion loghost
192.168.0.1 Router

---------------------------------------------

VI/etc/resolv. conf

Nameserver 192.168.0.1

-----------------------------------------------
VI/etc/nsswitch. conf

Hosts: Files DNS

-----------------------------------------------

VI/etc/defaultrouter

Router 192.168.0.1

------------------------------------------------

Good luck.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.