VMware

This Question is Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
14 Replies Last post: Apr 20, 2009 11:40 PM by ivp2k9  

Real IP's for VM's posted: Apr 10, 2009 6:31 AM

Click to view coolparty's profile Novice 7 posts since
Apr 10, 2009
Please help me. I have server under Linux Debian etch. On server I have 1 real ip 88.190.88.88 and additional network (static NAT?) 88.190.90.64/29. I need give real IP for each virtual machine. But cant resove this... maximum result is - I see from VM only host with real IP.

Re: Real IP's for VM's

1. Apr 10, 2009 7:46 AM in response to: coolparty
Click to view ivp2k9's profile Enthusiast 54 posts since
Apr 6, 2009
Can you post a network diagram for your setup...? What is the actual WAN IP on the box and how exactly is the network delivered to your box....(this is a bit unclear from your post).

Generally, you either use bridged networking from VMs (for example, your WAN card is x.y.z.t/24, and yout VMs can use .t1, .t2, .t3 etc from that same /24 network) or do some NAT forwarding or bimapping. Need to see your network scheme before being able to tell.

Re: Real IP's for VM's

3. Apr 10, 2009 9:34 AM in response to: coolparty
Click to view ivp2k9's profile Enthusiast 54 posts since
Apr 6, 2009
You can make one with any graphics editor -- from your post (/me is CCAI, just in case) -- i cannot figure out your network setup.

From what you are saying I see your box connection to the internet as shown on the attached picture. I cannot quite understand the nature of what you are reffffferrrring to as "static NAT" (what maps into what and how things are connected e.g., static nat with some private network on eth0:0 or smth).
Attachments:

Re: Real IP's for VM's

4. Apr 10, 2009 10:40 AM in response to: ivp2k9
Click to view drummelhart's profile Enthusiast 72 posts since
Feb 26, 2009

if you want configure all your VM's with real IP addresses, you will need to bridge each VM's NIC Card, and then give it the correct IP Address, gateway, Subnet, DNS, and WINS, if you need that option.

See if that will work

Re: Real IP's for VM's

6. Apr 14, 2009 12:23 PM in response to: coolparty
Click to view ivp2k9's profile Enthusiast 54 posts since
Apr 6, 2009
Can you post
ifconfig -a

and

netstat -nr

here? I still do not quite follow -- you have an interface (eth0?) with a real IP -- and then you say you have extra addresses (which does not really work in linux -- you should probably have eth0:0 or some other interface) with "impossible" (were it same interface) GW information...

If you do have those addresses on eth0:0, you need some hack of some kind for "bridged" VMs, since there is no gateway (as of your information) on the extra (/29) network. If it is some other interface -- you will need 1 IP on that network as gateway, and the rest of addresses are "assignable" to the VMs.

anyway, ifconfig -a and netstat -nr output would be deeply appreciated.

Re: Real IP's for VM's

8. Apr 14, 2009 1:57 PM in response to: coolparty
Click to view ivp2k9's profile Enthusiast 54 posts since
Apr 6, 2009
Ok, from here I suggest you do this:

1. Enable (if not enabled already) kernel packet forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward

2. Enable bridged networking in VMware for your VMs

3. Assign your VMs (manual static IP address) smth like:
88.198.90.67/255.255.255.248 GW 88.198.90.66
68
69
70
From traceroute, it looks as though .65 should also be usable.

that is about it for now....

Re: Real IP's for VM's

10. Apr 15, 2009 1:59 AM in response to: coolparty
Click to view ivp2k9's profile Enthusiast 54 posts since
Apr 6, 2009
The question really took so long to figure out because you used an technically incorrect term "static NAT" in your initial problem description (from your ifconfig, netstat and network pic it looks as though provider just routes the extra IPs through your "primary" IP and no address translation (NAT) actually takes place) -- and I was trying to figure out the nature of the translation you mentioned.

p.s. A correctly asked question (related to any technical or natural science ) is at least 50% of the answer, you know.
p.p.s. Consider awarding points to answers you find "helpful" or "correct".

Re: Real IP's for VM's

12. Apr 20, 2009 10:38 PM in response to: coolparty
Click to view ivp2k9's profile Enthusiast 54 posts since
Apr 6, 2009
Can you ping the gateway (.66) from any of the "RH-based" guests?

Re: Real IP's for VM's

14. Apr 20, 2009 11:40 PM in response to: coolparty
Click to view ivp2k9's profile Enthusiast 54 posts since
Apr 6, 2009
Hm, does look like your "card" is not really working. Check the host and guest firewalls and try "replacing" the card with a different one in the VMX file (e.g., e1000 vs AMD "LANCE", the default one). Also, do you have VMWare tools installed on the guest (it is not generally speaking _REQUIRED_)?

p.s. Consider awarding points to messages you find "helpful" or "correct".

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities