Use Nat shared Host IP address to access the Internet in VMware RedHat Linux 9

Source: Internet
Author: User

It is very easy to share Nat Internet with the customer system in VMware. However, I have tried it many times but sometimes it is OK and sometimes it is impossible. Today, I am inspired by another blog, A configuration is very critical.

If you are using VMware 6.0, see the URL: http://www.blogjava.net/smallfa/archive/2010/11/22/338649.html

 

The key lies in the gateway settings:

Check vmnet8 In the NAT entry in the VM network settings. Generally, the address 192.168.x.2/255.255.255.0 is vmnet8. The NAT Gateway

 

There are usually two non-physical local connections on machines installed with VMware. vmnet8 is the connection used by Nat. If this local connection is disabled, you will not be able to connect to your system (Linux) through the network. to access the Internet in Linux, you only need to configure three locations.

First,Configure the local vmnet8 IP address as a manual IP address, and set the IP device as an uncommon private network segment. In this example, 192.168.152.1 is used, and the gateway is not set.

Second,Configure the gateway configuration under VMware. In this example192.168.152.2

VMware Workstation 7.1.2 build-301548 used by the author

The gateway configuration process is as follows:

Menu: Edit-> Virtual Network editor...

Third,Configure the IP address in Linux as 192.168.152.x, mask as 255.255.255.0, and gateway192.168.152.2[Here is the key]

CAT/etc/sysconfig/network-scripts/ifcfg-eth0

Device = eth0
Bootproto = none
# Bootproto = DHCP
Hwaddr = 00: 0C: 29: 70: C2: 6d
Onboot = Yes
Type = Ethernet
Ipaddr = 192.168.152.129
Gateway =192.168.152.2
Userctl = No
Ipv6init = No
Peerdns = Yes
Netmask = 255.255.255.0

Reload the network configuration name

Service Network restart

 

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.