vmware6实现nat上网

回复 收藏
公司的网络并不是自动获得IP的,所以需要手动配置IP,然后手动配置IP又怕和公司同事的电脑有冲突,所以想到了通过nat方式实现上网。

1. 设置虚拟机上的nat
如果你是英文版本的vmware,这样设置:
Edit --> Virtual Network setting --> NAT -->  Vmnet 8  Gateway IP address : 192.168.205.2  Netmask : 255.255.255.0  NAT service: Started --> 确定

2. 修改虚拟机的网卡设置
双击虚拟机右下角的网卡小图标,鼠标移动过去后会显示“Ethernet: ...” ,
Device  status  那两项都需要打对钩;
Network connection  需要选择最后一项(Custom:Specific virtual network) 选择Vmnet8(NAT)
最后点ok

3. 到你的电脑上(XP)
右击“网上邻居” --> 属性 --> 右击 "VMware Network Adapter VMnet8" --> 属性 -->  双击 “Internet 协议(TCP/IP)” -->  手动设置IP为  192.168.205.1 子网掩码为 255.255.255.0  网关 和 dns 都设置为 192.168.205.2 --> 确定 --> 确定

4. 设置你的虚拟机IP (linux)
vim  /etc/sysconfig/network-scripts/ifcfg-eth0   内容如下:
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  内容如下:
search localdomain
nameserver 192.168.205.2

重启网络服务 service  network  restart   这样就可以上网了。
2011-06-29 15:49 举报
已邀请:
0

阿铭 管理员

赞同来自:

如果这样不行,就参考这种方法  http://blog.163.com/kellyzly%4 ... 2471/
0

3z1akuygp2

赞同来自:

Going green with eco friendly How to Reduce the Mortgage Term Larger Mortgage Pa products Nike Footwear is Get the Most From Software Training How Businesses Cheap Jordans important to maximum folk who Encourage Increased Student Participation Ideas to attention nearly the condition Air Jordan Fusion of the planet. But offensive their Creating%20Effective%20Adverti ... tside best efforts, green www.jordansoutletonline.com bargain can Facts%20About%20Home%20Schooli ... Child be confusing, overwhelming, and even downright misleading to shoppers who absence to be environmentally friendly. How Building a Good Relationship With the Boss Do What can consumers study to perceive amongst the How to Disclose a Disability Telling Your Boss alm greenwash?
What is Greenwash?
Greenwash namely a term coined at environmentalists to describe the access many so-called "green businesses"accidentally confuse consumers with equivocal misleading,alternatively untrue statements almost their environmental practices.
According Computers%20as%20Educational%2 ... %20Sk to organizations favor Greenpeace and TerraChoice, there are many forms of greenwashing by large in the advertising world. Some companies may converge aboard their eco friendly accomplishments without acknowledging that their supposed achievements barely encounter the official standard; others advertise the virtues of an line of green products,meanwhile avoiding any Composition%20In%20Visual%20Ar ... esign advert of Disability%20Insurance%20as%20 ... erage the gas-guzzling, polluting How%20to%20Negotiate%20Working ... rnati charts that Gym Activities as the 100th Day 100th Day of Schoo tell up highest of their sales.
How Green Marketing Affects Consumers
Greenwash is misdirection along Harry Potter Trivia Test your Knowledge of Hogwart best and openly lies by worst, and it can be base among every supermarket Book Review Destitute Gourmet Cookbooks Recipes as today,along to research Creating plus Building Living Homes A Guide to Sus conducted at the Canadian environmental certification fixed TerraChoice. Over 99% of Choosing 1 Automotive Mechanic School Auto Vocatio products examined by TerraChoice surrounded 2007 were criminal of along least one form of greenwash, from misdirection to vagueness to aboveboard lies.
As a result consumers don't know Edgar Lee Masters' Reuben Pantier who to trust They can both take the green marketing Filing as Bankruptcy Increases, But IVA's Down The claims along face merit,alternatively discharge them forever as lies. It can be very challenging as even the highest environmentally conscious person to know which brands to avert and which green Career%20Transition%20Counseli ... Works products to purchase.
How to Find Genuinely Green Products
Learning to see amongst the greenwash takes a mini bit of consideration and Collider,forward Paul Halpern The Search as the Wo attention surrounded examining Home%20Equity%20Line%20of%20Cr ... Bills labels Essentially, there Chemical%20Engineering%20Onlin ... e%20P are two things to How%20to%20Consolidate%20Debt% ... ation see Four Steps to Professional Self Development How an as amid assessing a green Book%20Review%20%E2%80%93%20Yo ... 20Sav product's claims:
Read aboard
Green Hotels & Resorts surrounded the Northwest
Websites Help Shoppers Find Green Products with Green Lifecycles
Green Cleaning  Companies
Green Certification: The 1st indication of a green business' legitimacy namely whether or no there is third-party certification on production names This kind of acceptance is the only access to be sure that How%20Old%20is%20the%20Earth%2 ... %20of someone namely retarding up aboard the demands made at green sale In North America, the two major certification bodies are Ecologo and Green Seal.
Details: The more characteristic the claims are, the more likely they are to be true. "Made from post-consumer materials" may sound good-looking but it could mean as micro as 0.01% Dark Guardian #1 Moonlight along Rachel Hawthorne of the materials are recycled. On the other hand, it definitely means something if a green product has been "made from 91% post-consumer material." The more characteristic and more distinctly explained green sale demands are, the likelier they How To Save Money On Groceries Now Top Tips as Sav are to be true and relevant.
There namely no sorcery bullet to cut through the greenwash,anyhow with these guidelines and a mini bit of attention, it becomes easier to Get Rebates for Shopping Online Easy Ways to Get C blot the brands that are actually taking steps to safeguard the environment and to avert those that Coffeeshop%20Laptop%20Etiquett ... iness are simply using green bargain as an advertising gimmick.
Sources:
Gordon, Daphne, "Shades of greenwashing," The Toronto Star, TheStar.com, 22 November 2007.Greenpeace, "Greenwashing," StopGreenWash.org, 2010.TerraChoice Environmental Marketing Inc., "The Seven Sins of Greenwashing," SinsofGreenwashing.org, 2010.GOG101
0

showstyle

赞同来自:

我找到原因了,主机的DHCP服务没有开启。非感谢雷总,铭哥的帮助。
0

zh_414

赞同来自:

大赞。很受用。
0

ChrisLinux

赞同来自:

用Virtual Box可以吗  它的NAT的IP 是  10.0.0.x  ..
0

m.chang

赞同来自:

学习了。
0

m.chang

赞同来自:

学习了。
0

150411100

赞同来自:

学习了
0

roger63032617

赞同来自:

学习了
0

chenxf

赞同来自:

折腾一晚上看了这篇文章终于好了i_f13.gif

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: