How Linux sets up the NIC in VMware

Source: Internet
Author: User

The following settings are passed under the Host:winpro SP2 GUEST:RH9 environment. First in the setting, the virtual machine's NIC is set to Host-only.

(1) Check the properties of your network card connected to the network, select the "Advanced" tab, set it to allow sharing, and set the allowed network interface to VMNET1.

(2) again to look at the properties of your VMnet1, look at the TCP/IP protocol settings, you found that has been automatically set to 192.168.0.1/255.255.255.0.

(3) The setup of Windows is completed and transferred to the virtual machine running Linux. Set your eth0 IP address to static (if static is not selected at installation)

by Red Hat icon-> System Setup-> Network (or other methods you know)

ip:192.168.0.2 (or other address on this network segment)

netmask:255.255.255.0

Default gateway:192.168.0.1

DNS: Enter your own DNS

Save the settings. If you have not set the host name:

Cd/etc/sysconfig

VI Network

Edit hostname

Cd/etc

VI hosts

Join:

192.168.0.2 Yourhostname

Restart Service

Su

/sbin/service Network Restart

(4) test

Gateway: Ping 192.168.0.1

Dns:ping DNSServer

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.