[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Network configuration in ESXi 4.1

Posted on 2012-12-20
28
Medium Priority
?
649 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 12
  • 11
  • 4
  • +1
28 Comments
 
LVL 22

Expert Comment

by:mcsween
ID: 38710126
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 123
ID: 38710372
can you upload screenshots of your:-

1. vSwitch
2. VM configuration
0
 

Author Comment

by:atorex
ID: 38710415
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 40

Expert Comment

by:coolsport00
ID: 38710434
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 123
ID: 38710499
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
ID: 38710507
here is what I think you wanted
vswitch2.png
0
 

Author Comment

by:atorex
ID: 38710526
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
ID: 38710548
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 123
ID: 38710553
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 123
ID: 38710558
your VM is not connected to the correct vSwitch and NIC! (ISP)
0
 
LVL 123
ID: 38710565
nic3 should be connected to a seperate vSwitch.
0
 
LVL 123
ID: 38710577
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
ID: 38710582
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 123
ID: 38710602
could you expand on how you connect to your ISP, and public IP addresses that have been allocated?
0
 

Author Comment

by:atorex
ID: 38710782
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
ID: 38710821
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 123
ID: 38710863
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
ID: 38710872
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
ID: 38710938
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
ID: 38710945
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 123
ID: 38710949
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
ID: 38710977
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 123
ID: 38711028
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
ID: 38711676
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 123
ID: 38711694
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
ID: 38711715
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 123

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 38712230
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
ID: 38712682
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

656 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