VMware Cloud Community
Maelito77
Contributor
Contributor
Jump to solution

How to rename a vNIC

Hi

I need to rename the vNIC on all my hosts to bring them in line.

What is the best way of doing this and will this cause a problem to the machines powered on?

Thanks

ii

Maelito
Reply
0 Kudos
1 Solution

Accepted Solutions
TomHowarth
Leadership
Leadership
Jump to solution

So we are talking about vSwitches and Portgroups therein and not the VMnics as mapped to the phyiscal NICs?

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

Tom Howarth VCP / vExpert

VMware Communities User Moderator

Blog: www.planetvm.net

Contributing author for the upcoming book "[VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment|http://my.safaribooksonline.com/9780136083214]”. Currently available on roughcuts

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410

View solution in original post

Reply
0 Kudos
13 Replies
Gerrit_Lehr
Commander
Commander
Jump to solution

What exactly do you want to rename? As far as I know there are no names for vNICs, only for vSwitches.

Kind Regards,

Gerrit Lehr

If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".

Kind regards, Gerrit Lehr If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
TomHowarth
Leadership
Leadership
Jump to solution

firstly VMnics can not be renamed, secondly what exactly do you want to bring them inline with?

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

Tom Howarth VCP / vExpert

VMware Communities User Moderator

Blog: www.planetvm.net

Contributing author for the upcoming book "[VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment|http://my.safaribooksonline.com/9780136083214]”. Currently available on roughcuts

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
Reply
0 Kudos
Maelito77
Contributor
Contributor
Jump to solution

Maybe I did not explain myself clearly...

I need to rename the Ports > Network Lable so all ESX hosts have the same Port name so vMotion dont companin about it.

ii

Maelito
Reply
0 Kudos
TomHowarth
Leadership
Leadership
Jump to solution

So we are talking about vSwitches and Portgroups therein and not the VMnics as mapped to the phyiscal NICs?

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

Tom Howarth VCP / vExpert

VMware Communities User Moderator

Blog: www.planetvm.net

Contributing author for the upcoming book "[VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment|http://my.safaribooksonline.com/9780136083214]”. Currently available on roughcuts

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
Reply
0 Kudos
Maelito77
Contributor
Contributor
Jump to solution

Tom

Exactly! It's the port groups on vSwitches and not the vmnic.

ii

Maelito
Reply
0 Kudos
runclear
Expert
Expert
Jump to solution

  1. open your VI Client

  2. Select the ESX Node

  3. Click "Configuration"

  4. Newtorking

  5. Edit the vSwitch that has your PortGroups

  6. Select the Port Group and edit the name,

Save your changes and you should be good to go.

-


-------------------- What the f* is the cloud?!
TomHowarth
Leadership
Leadership
Jump to solution

so are your vSwitches connected to the network in exactly the same way ie VMNIC0 on VLAN 10 on every host. that is your first starting point.

by far the quickest and easiest way is to delete the vSwitch and recreate it to the standards you require. this can be done in vCenter or on the commandline.

it is a requirement that all PortGroups and vSwitch labels be consistent in each vMotion cluster.

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

Tom Howarth VCP / vExpert

VMware Communities User Moderator

Blog: www.planetvm.net

Contributing author for the upcoming book "[VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment|http://my.safaribooksonline.com/9780136083214]”. Currently available on roughcuts

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
Reply
0 Kudos
Maelito77
Contributor
Contributor
Jump to solution

runclear I think you got it.

I will try that.

Will I have to shut down my VM's?

ii

Maelito
Reply
0 Kudos
runclear
Expert
Expert
Jump to solution

no, but you will have to reset the "network" in the vm settings, until you do, they will be "orphaned per say" -

The "Network Label" will be gone, so you will have to set it to the new "renamed portgroup"

-


-------------------- What the f* is the cloud?!
Reply
0 Kudos
Maelito77
Contributor
Contributor
Jump to solution

I see what you mean... That is in Edit settings > Network and choose the new Network.

But would the vm's loose connection to the LAN?

ii

Maelito
Reply
0 Kudos
runclear
Expert
Expert
Jump to solution

I dont "think so" but you might if you have any kind of Vlan tagging going on... I just tested this in my lab and i didnt loose any network pings.. but this was with no vlans setup or anything..

-


-------------------- What the f* is the cloud?!
Reply
0 Kudos
Maelito77
Contributor
Contributor
Jump to solution

Sorry unclear but I gave the point to tom by mistake, how to reopen this and give you the credit?

ii

Maelito
Reply
0 Kudos
runclear
Expert
Expert
Jump to solution

Dont worry about it... I'm sure you can toss me a bone next time...

-


-------------------- What the f* is the cloud?!
Reply
0 Kudos