分类: 系统运维
2012-05-03 09:27:03
Internet sharing
After you
have installed vmware in your system, you can see this:
NETWORK DEVICE
VMnet8: when you used NAT , VMware system(system installed in your VMware) used this device.
VMnet1: when you used HOST-ONLY, VMware system(system installed in your VMware) used this device.
Local Area Connection: This is your location network device. This device is required by VMware network device.
SERVICE RELATED TO VMware
DHCP Service: DHCP server, VMware system can get it’s IP address from this server, when VM system use dhcp not static way.
NAT Service: NAT server, VMware system can serve the outer network which local machine connected to.
Step 1:
Local machine setting:
Get VMnet8 information:
Step 2:
VMware setting:
· Menu->edit->virtual Network setting
Note:
1 subnet IP : VMnet8 and this IP was belonged to the same network.
· NAT setting information
Note: Gateway IP
Step 3:
Outer checking and setting:
1 set network device connect way:
Please select the NAT way. My is bridged, please don’t follow me.
VMware system setting:
1. IP
First way:
If you have desktop, please use the network setting like windows to set your network.
Second way:
If you don’t have desktop, please configurate your network config file.
/etc/sysconfig/network-scripts/ifcfg-eth0
If you don’t know how to configurate your network, please set BOOTPROTO=dhcp, the system will help you!
DEVICE: device name
IPADDR: IP address
NETMASK: netmask
ONBOOT: this can be yes or no, if this value is yes, when you boot your system , network will start with your system, the value no is opposite.
GATEWAY: this must be set correct, thus your network will work wrong, This must be set we note before.
Third way:
When you are in terminal mode, enter setup, use text mode to set your network.
2. DNS
/etc/resolv.conf
This file is used for dns.
3. Status check
Ifconfig
Information:
Inet addr: your ip address
Mask: your netmask
RUNNING: this specify that you ether is up.
RX receive packet
TX send packets
Route:
Your route map:
If you setting is right , that ‘default 192.168.172.2 255.255.255.0 …’ appears.
How to check what’s wrong with you!
1 ping yourself(ping local ip address not 127.0.0.1)
If you can get right response, good luck you have set your ip address in right way.
2 ping your gateway
3 ping a Internet IP address
4 ping a domain name IE: