Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure Solaris 10 to access the Internet

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to configure Solaris 10 to access the Internet, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!

First of all, let's introduce a few files about network configuration.

Hostname.***

Hosts

Nsswitch.conf

Resolv.conf

Defaultrouter

Netmasks

After installing the system:

Step one:

Dladm show-dev to see what network interfaces there are. I have pcn0 on my computer that is not active.

Ifconfig-a you see that there will be only loopback IP addresses

Enable Nic: ifconfig pcn0 plumb start

Step 2:

Create a file: vi / etc/hostname.pcn0 writes a name (representing the network card) nic1 in the file

Step 3: configure the IP address

Vi / etc/hosts add line: 192.168.0.108 nic1 liuyi (description: nic1 is the identity of the network card, LIUYI is the host name)

Ifconfig-a sees that there is already an address but cannot access it.

Step 4:

Configure subnet mask vi / etc/inet/netmasks add flight: 192.168.0.108 255.255.255.0

Step 4: configure the default gateway

Vi / etc/defaultrouter write gateway address: 192.168.0.1

Step 5: configure DNS

Edit / etc/nsswitch.conf add a column of dns after host file

Create a new file: vi resolv.conf write DNS name: nameserver 192.168.0.1

Restart

OK is configured and ready to surf the Internet.

If you use ifconfig pcn0 192.168.0.108 netmask 255.255.255.0 this will not save the configuration

If you don't want to be so complicated, graphically:

Restart after executing the sys-unconfig command will allow you to configure.

The above is all the contents of the article "how to configure Solaris 10 to surf the Internet". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report