Specifications

Table Of Contents
VMware, Inc. 189
Chapter 7 Networking
the!IP!address!for!the!hostonly!adapter!connected!to!VMnet1.!In!the!second!virtual!
machine’s!networking!configuration,!the!default!router!address!should!be!the!IP!
address!for!the!hostonly!adapter!connected!to!VMnet2.!
If!you!are!running!the!router!software!on!the!third!virtual!machine,!set!the!default!
router
!addresses!in!the!first!two!virtual!machines!based!on!those!used!by!the!third!
virtual!machine.!In!the!first!virtual!machine’s!networking!configuration,!the!
default!router!address!should!be!the!IP!address!for!the!third!virtual!machine’s!
Ethernet!adapter!connected!to!VMnet1.!In!the!second!virtual!machine’s!
networking!configuration,!the!
default!router!address!should!be!the!IP!address!for!
the!third!virtual!machine’s!Ethernet!adapter!connected!to!VMnet2.!
At!this!point!you!should!be!able!to!ping!the!router!machine!from!virtual!machines!one!
and!two.!And!if!the!router!software!is!set!up!correctly,!you!should!be!able!to!
communicate
!between!the!first!and!second!virtual!machines.
Using Virtual Ethernet Adapters in Promiscuous Mode on a
Linux Host
VMware!Server!does!not!allow!the!virtual!Ethernet!adapter!to!go!into!promiscuous!
mode!unless!the!user!running!VMware!Server!has!permission!to!make!that!setting.!This!
follows!the!standard!Linux!practice!that!only!root!can!put!a!network!interface!into!
promiscuous!mode.
When!you!install!and!configure!VMware!Server,!you!
must!run!the!installation!as!root.!
VMware!Server!creates!the!VMnet!devices!with!root!ownership!and!root!group!
ownership,!which!means!that!only!root!has!read!and!write!permissions!to!the!devices.
To!set!the!virtual!machine’s!Ethernet!adapter!to!promiscuous!mode,!you!must!launch!
VMware!Server!as!root!because!you!
must!have!read!and!write!access!to!the!VMnet!
device.!For!example,!if!you!are!using!bridged!networking,!you!must!have!access!to!
/dev/vmnet0.
To!grant!selected!other!users!read!and!write!access!to!the!VMnet!device,!you!can!create!
a!new!group,!add!the!appropriate!users!to!the!group!and
!grant!that!group!read!and!
write!access!to!the!appropriate!device.!You!must!make!these!changes!on!the!host!
operating!system!as!root!(su -).!For!example,!you!can!enter!the!following!commands:
chgrp <newgroup> /dev/vmnet0
chmod g+rw /dev/vmnet0
<newgroup>!is!the!group!that!should!have!the!ability!to!set!vmnet0!to!promiscuous!mode.