|
The company's network is not automatically obtain IP, so the need to manually configure the IP, and then manually configure the computers IP and co-workers are afraid of conflict, so think of ways to achieve access through nat.
1. Set nat virtual machine
If you are the English version of vmware, this setting:
Edit -> Virtual Network setting -> NAT -> Vmnet 8 Gateway IP address: 192.168.205.2 Netmask: 255.255.255.0 NAT service: Started -> OK
2. Modify the virtual machine network card settings
Double-click the bottom right corner of the virtual machine network adapter icon, move the mouse over it will display "Ethernet: ...",
Device status that needs to play on the two hooks;
Network connection you need to select the last item (Custom: Specific virtual network) Select Vmnet8 (NAT)
The last point ok
3. Go to your computer (XP)
Right-click on "My Network Places" -> Properties -> Right click "VMware Network Adapter VMnet8" -> Properties -> Double-click "Internet Protocol (TCP / IP)" -> to manually set the IP subnet 192.168.205.1 mask 255.255.255.0 gateway and dns are set to 192.168.205.2 -> OK -> OK
4. Set your virtual machine IP (linux)
vim / etc / sysconfig / network-scripts / ifcfg-eth0 as follows:
DEVICE = eth0
BOOTPROTO = none
HWADDR = 00: 0C: 29: 33: F7: 3A
ONBOOT = yes
IPADDR = 192.168.205.3
NETMASK = 255.255.255.0
GATEWAY = 192.168.205.2
vim /etc/resolv.conf reads as follows:
search localdomain
nameserver 192.168.205.2
Restart network services service network restart so that you can get online. |
|
|
|