Specifications

Table Of Contents
VMware, Inc. 185
Chapter 7 Networking
Configuration 3 — Connect to Two Host-Only Interfaces
1 Create!the!virtual!machine!or!use!an!existing!virtual!machine.
2 Launch!VMware!Server!and!open!the!virtual!machine.!
3Edit!the!configuration!using!the!virtual!machine!settings!editor!(VM!>!Settings).
Select!the!first!network!adapter!in!the!list!of!devices,!select!Custom,!and!choose!
VMnet1!(Hostonly)!(on!a!Windows!
host)!or!/dev/vmnet1!(on!a!Linux!host)!from!
the!dropdown!list!on!the!right.!Select!the!second!network!adapter!in!the!list!of!
devices,!select!Custom,!then!choose!VMnet!2!(Hostonly)!(on!a!Windows!host)!or!
/dev/vmnet2!(on!a!Linux!host)!from!the!dropdown!list!on!the!
right.
If!you!need!to!add!one!or!more!network!adapters,!click!Add,!and!use!the!Add!
Hardware!Wizard!to!add!an!adapter.
At!this!point!you!can!power!on!the!virtual!machine!and!install!your!guest!operating!
system.!In!configurations!1!and!2!you!see!one!AMD!PCNet!Family!Adapter.!
In!
configuration!3!you!see!two!AMD!PCNet!Family!Adapters!within!the!guest.!Configure!
the!Ethernet!adapters!as!you!would!physical!adapters!on!a!physical!computer,!giving!
each!adapter!an!IP!address!on!the!appropriate!VMnet!subnet.!
On!Windows!hosts,!you!can!open!a!command!prompt!and!run!ipconfig /all!to!see
!
what!IP!addresses!each!hostonly!network!is!using.!
On!Linux!hosts,!you!can!open!a!terminal!and!run!ifconfig!to!see!what!IP!addresses!
each!hostonly!network!is!using.!
Routing Between Two Host-Only Networks
If!you!are!setting!up!a!complex!test!network!using!virtual!machines,!you!might!want!to!
have!two!independent!hostonly!networks!with!a!router!between!them.
There!are!two!basic!approaches.!In!one,!the!router!software!runs!on!the!host!computer.!
In!the!other,!the!router!software!runs!in!its!
own!virtual!machine.!In!both!cases,!you!need!
two!hostonly!interfaces.
The!examples!described!here!outline!the!simplest!case,!with!one!virtual!machine!on!
each!of!the!hostonly!networks.!For!more!complex!configurations,!you!can!add!more!
virtual!machines!and!hostonly!networks!as!appropriate.
Setting Up the First Host-Only Interface
On!Windows!hosts,!the!first!hostonly!network!is!set!up!when!you!install!VMware!
Server.!