VMware Cloud Community
Ivanildo_GalvÃ_
Enthusiast
Enthusiast

Disable NIC via CLI

Hello friends, what command I use to disable a NIC for an ESXi host via console CLI?

Thanks !

Ivanildo Galvão
0 Kudos
2 Replies
Virtualinfra
Commander
Commander

Putty to esxi host or use DCLI on esxi host

use command esxcfg-vswitch

For example you have vswitch0 with vmnic0 and vmnic1, you want to disable or unlink vmnic1 use the below command.

Syntax

esxcfg-vswitch -U vmnic1 vSwitch0

Award points by clicking the below tab for the helpful and correct answer Smiley Happy

Thanks & Regards Dharshan S VCP 4.0,VTSP 5.0, VCP 5.0
0 Kudos
AndreTheGiant
Immortal
Immortal

You want to disable a NIC or remove it from the vSwitch?

For the second the previous post give the answer.

For the first, it is a little more complicated.

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos