Solaris10 Internet access settings

Source: Internet
Author: User
Tags nameserver
After Solaris is installed, the Internet access is disabled by default. You need to modify the following four files:

1./etc/hosts or/etc/inet/hosts
2./etc/resolv. conf does not exist by default. You need to manually add
3. Modify/etc/nsswitch. conf and click OK.
4./etc/defaultrouter does not exist by default. manually add

The details are as follows:

1. edit the/etc/hosts file. A Linux user understands what this step means, except that the/etc/hosts file is a soft link to the/etc/inet/hosts file, as follows:

# Cd/etc

# Ls-l hosts

Lrwxrwxrwx 1 Root 12 Jan 6 host12 hosts->./inet/hosts

# Cd/etc/inet

# Ls-l hosts

-R -- 1 root sys 107 Jan 6 hosts

2. Create the resolv. conf file and add it to the DNS server address:

# Vi/etc/resolv. conf

Nameserver 202.101.172.48
Nameserver 202.101.172.46

3. Modify/etc/nsswitch. conf and only modify the following lines:

Hosts: Files DNS

4. Create the/etc/defaultrouter file and add it to the gateway address:

# Vi/etc/defaultrouter

192.168.1.1

OK. The end is now.

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.