Solved

Network configuration in ESXi 4.1

Posted on 2012-12-20
28
636 Views
Last Modified: 2012-12-21
I had the below question and have made the configs but the server attached to that NIC is not comunicating to the network. attached is what my config looks like, im sure Im missing something






Network adapter configuration in ESXi 4.1

Asked by: atorex


 I have an ESX server with 4 NICs I would like to use one of the NICs on a virtual machine  on that ESX.
I have 2 ISP connections one is for hosting and other is for local network, I want 1 of the servers to have access to the Hosting ISP link, this is my reason for this configuration.
So my question is how do I add a physical NIC to a VM?


:2012-12-19 at 08:25:32ID: 27972871Topic:
VMware
Participating Experts:3Points:500Comments:3

Request Attention



Answers





 
Assisted Solution


by: busbarPosted on 2012-12-19 at 08:28:51ID: 38705523






 create a vswitch that is conected to that NIC as upling, connect that VM to that vswitch via a port group, easy.!


167

EXCELLENT

Add to Knowledgebase


 
Assisted Solution


by: gcoltharpPosted on 2012-12-19 at 08:42:03ID: 38705565






 I don't have ESX 4 servers left but if I recall correctly, the procedure has not changed.
In vSphere, go to configuration, networking. You should get a visual display of how your networking is configured.

Click add networking, select virtual machine. On the next page, use Create a vSphere standard switch and check the network interface that you want to use. Give it a name and a VLAN if you need one. Click through to finish.

Click on your virtual machine and Edit Settings. Click on the network adapter. On the lower right, there will be a network connection setting with a drop down. Pull it down and select the vSwitch you created above. This can be done while the vm is booted. The effect is immediate.

HTH.
network.png
network2.png
0
Comment
Question by:atorex
  • 12
  • 11
  • 4
  • +1
28 Comments
 
LVL 21

Expert Comment

by:mcsween
Comment Utility
Make sure you assign a valid IP to that NIC in the virtual machine for that network.  If it is connected directly to the internet then it will be a public IP provided by your ISP unless you put a firewall in front of it.
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
can you upload screenshots of your:-

1. vSwitch
2. VM configuration
0
 

Author Comment

by:atorex
Comment Utility
0
 
LVL 40

Expert Comment

by:coolsport00
Comment Utility
2 things - first, you just provided a screenshot of your vSwitch properties....if you could instead, provide a screenshot of what is seen on the Configuration tab > Networking section (i.e show us what vSwitches you have configured).

Since I assisted you on your prev question, your 2nd screenshot of your VM isn't configured correctly. You have the 1 vNIC and that's fine. Connect that to the VM Netwk port group of your internal LAN. You should've created a 2nd vSwitch and assigned the pNIC of the Host that is connected to the ISP/Hosting site you want to connect to. To create the vSwitch, on the Networking area, click Add Networking and select VM Network. Choose the pNIC to the Host site and give this VM Network pg a name. Then, go back into your VM settings, select Add button, add an Ethernet Adapter, then choose the network you want to assign this new vNIC to, which will be the new VM Netwk pg you just created on your 2nd vSwitch.

Regards.
~coolsport00
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
what is Grove_VN?

could you also screenshot the vSwitch?

is Grove_VN connected to this vSwitch?

is this vSwitch connected to a physical NIC connected to your ISP?

how have you configured your VM - DHCP?
0
 

Author Comment

by:atorex
Comment Utility
here is what I think you wanted
vswitch2.png
0
 

Author Comment

by:atorex
Comment Utility
what is Grove_VN?
could you also screenshot the vSwitch?
is Grove_VN connected to this vSwitch?
is this vSwitch connected to a physical NIC connected to your ISP?
how have you configured your VM - DHCP?

this is the new switch I created and is attached to nic3, ESX will not allow me to set a atatic IP for each NIC this may be my issue, the VM is set to DHCP but no data is geting to it, it sends DHCP request nothing comes back.
0
 

Author Comment

by:atorex
Comment Utility
Since I assisted you on your prev question, your 2nd screenshot of your VM isn't configured correctly. You have the 1 vNIC and that's fine. Connect that to the VM Netwk port group of your internal LAN. You should've created a 2nd vSwitch and assigned the pNIC of the Host that is connected to the ISP/Hosting site you want to connect to. To create the vSwitch, on the Networking area, click Add Networking and select VM Network. Choose the pNIC to the Host site and give this VM Network pg a name. Then, go back into your VM settings, select Add button, add an Ethernet Adapter, then choose the network you want to assign this new vNIC to, which will be the new VM Netwk pg you just created on your 2nd vSwitch.

Regards.
~coolsport00

grove_VN is the new vSwitch i created and the VM is attached to it
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
you do not set an IP Address on the switch, it's an "unmanaged switch" which passes the traffic to the VM. So don't get hung up on this, does not matter, and cannot be done!

Okay, does your ISP send DHCP info?

how is your Public IP Address delivered? to a router?

what router do you have?
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
your VM is not connected to the correct vSwitch and NIC! (ISP)
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
nic3 should be connected to a seperate vSwitch.
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
grove_VN is a Virtual Machine Portgroup. (not a vswitch)

should be like this

VM ---> grove_VN (Virtual Machine Portgroup.) ----> vSwitch2 (vSwitch) ----> vmnic3 ----> ISP
0
 
LVL 40

Expert Comment

by:coolsport00
Comment Utility
Ok, so what I recommend is this, for clarity & simplicity sake - click on the Properties of that vSwitch0 and remove that GROVE_VM Network PG. On the Add Networking link, click on that then choose VM Network, select new vSwitch and choose the vmnic, which seems like it's vmnic1, that you want assigned to the new VM Netwk PG (and that I assume is connected to the ISP Host site). Ok, so once that's done, your networking is configured. So now, go into the VM's Edit Settings and follow my prev comment on how to add another Ethernet Adapter.

~coolsport00
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
could you expand on how you connect to your ISP, and public IP addresses that have been allocated?
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:atorex
Comment Utility
the Network is, a Cisco 3560 for the internal office network, I have another ASA connected to the internet for hosting purpouses, a hardware server is already on this network with a static IP. we use 172 Ip range for internal and I have 192 IP for the internal address of the hosted servers.

I have done the steps of deleting and recreating the VSwitch and I think its done correctly this time, I think I did it from the properties of the vSwitch0 last time (my bad not the direction I received)

let me do some testing and will see, here is the new setup.
newVswitch.png
0
 
LVL 40

Expert Comment

by:coolsport00
Comment Utility
That looks much better. Again, if you want that VM to also connect to internal network, just add another Ethernet Adapter in its settings area and select an 'internal' VM Netwk port group.

~coolsport00
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
looks good if that is the VM which needs to connection.

e.g. iks this the VM which needs access - Live_drs_app
0
 

Author Comment

by:atorex
Comment Utility
Now, ESX will only allow me to set IP for one NIC is there a way for me to assign a static IP to that NIC?

Thanks for the help and patience, migrating a new Domain at the same time so Im loosing it.
0
 
LVL 40

Expert Comment

by:coolsport00
Comment Utility
You assign an IP on the virtual NIC (vNIC) within the VM's guest OS. You don't assign the IP within ESXi's Network vSwitch properties or anything.
0
 

Author Comment

by:atorex
Comment Utility
No I was talking about the hardware NIC, I have one IP of 172.0.0.15 for the internal network, doesnt the NIC on the 192.168.50.0 network need an IP?
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
think of the vSwitch (in ESXi) as an unmanaged switch, it does not need an IP Address, just like a physical switch (unmanaged) does not need an IP address to connect computers!

So I would assume, that the VM is still not getting an IP Address, which if this is the case, we need to understand your network, and external facing arrangement.

it might be that you are required to give your VM an internal IP Address and use a NAT translation to the external public facing IP Address.

could you expand on what this VM does, and why it needs a public facing IP Address?

OR, has your ISP given you a Public IP Address on this LAN?

and is it the Guest or Host which needs to be on the LAN?
0
 

Author Comment

by:atorex
Comment Utility
The ISP facing VMs are connected to a Cisco ASA with NAT, the internal IP on that network is the 192.168.50 subnet, our internal network uses 172 address and after the changes I can no longer access the ESX server from within 172 network. once I unplug that NIC on the 192 network I can now get in to the ESX from 172 network.
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
okay, so all the ISP facing VMs need to have an IP Address of 192.168.0.50, with NAT translations from Public IP Address to their respective 192.168.0.50 IP Address.

Internally Host is 172.

so it should be conmnected

VM (192.168.0.50) ---> NewVSwitch (Virtual Machine Portgroup.) ----> vSwitch1 (vSwitch) ----> vmnic3 ----> 192.168.0.50

ESX and Other VMs (172.x.x.x) --->  VM Network (Virtual Machine Portgroup.) ----> vSwitch0 (vSwitch) ----> vmnic0,1,2 ---->Local LAN
0
 

Author Comment

by:atorex
Comment Utility
That's correct my issue now is that I can't assign a .50ip to vmnic3, and without it the vm on that Vswitch can't get an IP
0
 
LVL 117

Expert Comment

by:Andrew Hancock (VMware vExpert / EE MVE)
Comment Utility
you do not assign an IP Address to vmnic3. (ever). vSwitch do not work that way. It's an unmanaged switch, it does not require an IP Address to bridge network traffic.

vmnic3 is connected to a switch, network traffic passes down vmnic3, to the vSwitch, down the network portgroup to the VM.

so what IP Address have you give the VM NIC in the OS?

have you assigned an IP Address to the Virtual Machine NIC in the OS?

where it vmnic3 connected?

where are vmnic0,1,2 connected?

to the same physical switch?
0
 

Author Comment

by:atorex
Comment Utility
The hardware nic that is vmnic3 gets no ip?
The physical nics, 3 are on the 172 network (vmnic0 to vmnic2) and the fourth is attached to the ASA with the ISP NAT (vmnic3)
0
 
LVL 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
Comment Utility
The hardware nic that is vmnic3 gets no ip?

this is correct, and normal. You will never be able to assign an IP Address to vmnic3, you do not need to for this to function, so your VMs can send traffic to the internet.

The physical nics, 3 are on the 172 network (vmnic0 to vmnic2)

Correct, I would expect that.

So assign IP Addresses to your VMs connected to the Virtual Machine Portgroup, which is connected to the vSwitch, connected to VMNIC3, which is connected to your ASA with the ISP NAT.

Do you want to connect to the ESXi server on 192 as well as 172?
0
 

Author Closing Comment

by:atorex
Comment Utility
OK, Now I understand and its working thanks to your detailed knowlegeble help (I was about to move the systems back to Hyper-V) but I can communicate to the 192 LAN on all VM's in the new vSwitch and access the Internet, most importantly I have a much better understanding of how it showld work for future refrence. All is working as desired.
Again thanks for all the help
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now