VMware Communities
honeyspider
Contributor
Contributor

Networking troubles

Firstly I want to thank you for your prompt advice Woodyz.

I am having a few network woes with VMWare Player.

First off, I have extracted and am able to run the Virtual Network Editor.

I can clearly see VMnet0 through to 9, however I am having trouble configuring them properly.

Here is what I want to do.

I'd like a VMware Ubuntu box with two NICs in it.

Eth0 should point to my physical card on the 192.168.1.0 network.

Eth1 should have the address 10.0.2.1/24

Further, I'd like two Server 2003 Virtual machines, each with only one virtual NIC and addressed 10.0.2.3 /24 and 10.0.2.4 /24

The last Virtual box I'd like is an elastix box sitting on 10.0.2.2 /24

***

It appears to me, I want the VMWare Ubuntu box to have a bridged connection on eth0.  Is that the case?

How should I set up the NICs on the other three boxes?

I know I only need one virtual switch but I cannot for the life of me configure it.

I have read the help section on virtual networking but I think I need help with my specific network design.

I am currently reading VMWare Virtual Network Concepts in pdf form, but the examples given are not quite what I am looking for either.

In the meantime, I'll keep slogging at it, but any help (hand holding) would be more than appreciated.

Again thankyou,

X

0 Kudos
2 Replies
WoodyZ
Immortal
Immortal

Sorry, forgot to add in the other thread you had going on this that another thing that VMware Player does not offer through its UI is to customize the Network Adapter settings to use specific VMnets."

In the Virtual Machine's .vmx configuration file there are several parameters for each Ethernet Adapter if the form of:

ethernet(n).

Where "(n)" is a number i.e., ethernet0.

For each Network Adapter that you what to customize you need to change the value of one parameter while adding another for that Network Adapter.

As an example change

ethernet(n).connectionType = "nat"

To

ethernet(n).connectionType = "custom"

Add

ethernet(n).vnet = "VMnet(n)"

This will then allow the Network Adapter to use different VMnets.

0 Kudos
honeyspider
Contributor
Contributor

I am kinda starting to feel like a drain on the forums here, but I am still having trouble Smiley Sad

The Ubuntu firewall is setup, and I am certain my iptables are correct ie.

eth0 is DHCP

eth1 is configured as 10.0.2.1

*filter
:FORWARD DROP [0:0]
:INPUT DROP [0:0]
:OUTPUT ACCEPT [0:0]
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth1 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j accept
COMMIT
*nat
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A POSTROUTING -o eth1 -j MASQUERADE
-A POSTROUGING -o eth0 -s 10.0.2.0/24 -j MASQUERADE
COMMMIT

The two server 2003 boxes are setup and have the addresses 10.0.2.3 and 10.0.2.4

The relevant sections of the VMX files are as follows...

UBUNTU

ethernet1.present = "TRUE"
ethernet1.connectionType = "custom"
ethernet1.vnet = "VNet3"
ethernet1.wakeOnPcktRcv = "FALSE"
ethernet1.addressType = "generated"
ethernet1.generatedAddress = "00:0c:29:f9:55:01"
ethernet1.generatedAddressOffset = "10"

Server 2003

ethernet0.present = "TRUE"
ethernet0.connectionType = "custom"
ethernet0.vnet = "VMnet3"
ethernet0.virtualDev = "e1000"
ethernet0.wakeOnPcktRcv = "FALSE"
ethernet0.addressType = "generated"

and

ethernet0.present = "TRUE"
ethernet0.connectionType = "custom"
ethernet0.vnet = "VMnet3"
ethernet0.virtualDev = "e1000"
ethernet0.wakeOnPcktRcv = "FALSE"
ethernet0.addressType = "generated"

**************************************************************************************************

Should I run the VMNetcfg app and configure anything further there?

So far I have given VMnet3 the Subnet IP 10.0.2.0/24

Host-only (connect VMs internally in a private network) is selected in the radial menu.

This is starting to drive me insane.  Someone on another forum suggested I use VMServer 10.6 but I feel I have come so far here and really want to nip this in the bud.

Again thankyou,

honeyspider

X

0 Kudos