Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have physical server with 2 Broadcom NIC's.

First NIC connected to local network, via this connection we can:

  1. Connect to ESXi hypervisor (hypervisor has local ip, e.g. 192.168.1.5)
  2. Connect to VM on this hypervisor (VM has network adapter, with local ip, e.g. 192.168.1.6)

Second NIC connected to "global" network. Via second link(and public IP), we can have access to VM from Internet.

How I may setup VM to use second NIC's connection?

share|improve this question

migrated from stackoverflow.com Oct 8 '12 at 12:19

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers

up vote 3 down vote accepted

You have an ESXi with two physical nics ?

If so, create one vswitch to bind to the first physical nic, and a second vswitch to bind to the other physical nic.

You can create a new vswitch from the Add Networking link, where you can add a new 'Virtual Machine'- At this point you should get the option of either creating a new vswitch, or binding to an existing one.

All you need then is to create port groups in each vswitch, and connect the VM's virtual interfaces to each of them. Just make sure that your VM's eth0 is really connected to vswitch0, and eth1 to vswitch1. Sometimes the internal order gets flipped.

share|improve this answer
    
Yes, I have physical server with 2 nic's, and ESXi 5 installed. In vSphere Client's "Configuration" tab, "Network" menu, I can create "VMKernel" or "VMNetwork". Where I can create VSwitch? –  lewis Oct 7 '12 at 21:18
    
Adi, thnx for reply. I'll be able to apply you solution after 5 hours. –  lewis Oct 7 '12 at 21:45
    
Adi, another question. Where I must set public IP? In Windows(VM), or in vmnic's settings? –  lewis Oct 7 '12 at 21:47
    
The IP address should be set inside the VM's operating system. –  Adi Dembak Oct 7 '12 at 21:50
    
big thanx, all works correctly. –  lewis Oct 8 '12 at 7:59
add comment

My network configuuration

@Adi, is this configuration correct? vmnic0 is local network interface, vmnic1 is global network interface.

share|improve this answer
    
Yes, that should work. (assuming you're not using vlans) –  Adi Dembak Oct 8 '12 at 6:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.