To sum up, you can refer to me as new learners ..
I am using the Solaris 10 installed in vmware5.5 .. You want to access the Internet under Solaris ..
I,
First, change VMware to the bridging mode (which is easier to configure). I used Windows XP to open the properties of the physical Nic In the XP system.
The "VMware Bridge Protocol" protocol is checked, and then there is a "vmnet
NO content by default. Enter "0" by yourself (because the vmwarevm uses the vmnet0 virtual Nic to use the bridge mode by default ). Then exit.
II,
Configure the IP address of the Solaris nic. in this environment, Solaris uses the VMware Virtual Nic pcn0 for Internet access. Because the VM adopts the bridging mode, this
The IP address is the IP address of a LAN in the actual environment. You can configure the IP address when installing Solaris or later. I configured it later (you can run the command ifconfig, sys-
Unconfig and so on ).
3. Add the corresponding Solaris File .. 1. Add the/etc/resolv. conf file.
Nameserver XXX. XXX (local DNS ). 2. Add the/etc/defaultrouter file.
Enter 192.168.1.1 (local gateway ). 3. Modify the/etc/nsswitch. conf file to put the hosts:
Change files to hosts: DNS files. (This step must be done ).