{"id":3672,"date":"2025-02-16T14:28:19","date_gmt":"2025-02-16T12:28:19","guid":{"rendered":"https:\/\/vpxd.dc5.cz\/?p=3672"},"modified":"2025-02-16T14:28:19","modified_gmt":"2025-02-16T12:28:19","slug":"how-to-quickly-disable-a-vmnic-on-esxi-no-switch-changes-or-cable-pulling-needed","status":"publish","type":"post","link":"https:\/\/vpxd.dc5.cz\/index.php\/2025\/02\/16\/how-to-quickly-disable-a-vmnic-on-esxi-no-switch-changes-or-cable-pulling-needed\/","title":{"rendered":"How to Quickly Disable a vmnic on ESXi \u2013 No Switch Changes or Cable Pulling Needed!"},"content":{"rendered":"\n<p>In VMware ESXi, managing physical network interfaces (vmnics) is essential for troubleshooting, maintenance, or reconfiguration. There are times when you need to disable or re-enable a network interface without relying on the network team to shut down a switch port or physically unplugging the cable in the server room. Fortunately, this can be done quickly using the <strong>esxcli<\/strong> command-line tool.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Checking Available Network Interfaces<\/strong><\/h2>\n\n\n\n<p>First login via SSH or directly on server console.<\/p>\n\n\n\n<p>Before shutting down a vmnic, it\u2019s good practice to list all available interfaces and check their status:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>esxcli network nic list<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1330\" height=\"113\" src=\"https:\/\/vpxd.dc5.cz\/wp-content\/uploads\/2025\/02\/image.png\" alt=\"esxcli network nic list\" class=\"wp-image-3676\" srcset=\"https:\/\/vpxd.dc5.cz\/wp-content\/uploads\/2025\/02\/image.png 1330w, https:\/\/vpxd.dc5.cz\/wp-content\/uploads\/2025\/02\/image-800x68.png 800w, https:\/\/vpxd.dc5.cz\/wp-content\/uploads\/2025\/02\/image-768x65.png 768w, https:\/\/vpxd.dc5.cz\/wp-content\/uploads\/2025\/02\/image-1200x102.png 1200w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>This command will display a list of vmnics along with their link state, driver, and speed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Shutting Down a vmnic Interface<\/strong><\/h2>\n\n\n\n<p>To disable a specific vmnic, use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>esxcli network nic down -n vmnicX<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1325\" height=\"88\" src=\"https:\/\/vpxd.dc5.cz\/wp-content\/uploads\/2025\/02\/image-1.png\" alt=\"esxcli network nic down -n vmnic\" class=\"wp-image-3678\" srcset=\"https:\/\/vpxd.dc5.cz\/wp-content\/uploads\/2025\/02\/image-1.png 1325w, https:\/\/vpxd.dc5.cz\/wp-content\/uploads\/2025\/02\/image-1-800x53.png 800w, https:\/\/vpxd.dc5.cz\/wp-content\/uploads\/2025\/02\/image-1-768x51.png 768w, https:\/\/vpxd.dc5.cz\/wp-content\/uploads\/2025\/02\/image-1-1200x80.png 1200w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>Replace vmnicX with the actual interface name (e.g., vmnic5).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"453\" height=\"240\" src=\"https:\/\/vpxd.dc5.cz\/wp-content\/uploads\/2025\/02\/image-2.png\" alt=\"\" class=\"wp-image-3679\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Bringing a vmnic Interface Back Up<\/strong><\/h2>\n\n\n\n<p>If you need to enable the interface again, run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>esxcli network nic up -n vmnicX<\/code><\/pre>\n\n\n\n<p>This will bring the network interface back online.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1325\" height=\"104\" src=\"https:\/\/vpxd.dc5.cz\/wp-content\/uploads\/2025\/02\/image-3.png\" alt=\"esxcli network nic up -n vmnic\" class=\"wp-image-3680\" srcset=\"https:\/\/vpxd.dc5.cz\/wp-content\/uploads\/2025\/02\/image-3.png 1325w, https:\/\/vpxd.dc5.cz\/wp-content\/uploads\/2025\/02\/image-3-800x63.png 800w, https:\/\/vpxd.dc5.cz\/wp-content\/uploads\/2025\/02\/image-3-768x60.png 768w, https:\/\/vpxd.dc5.cz\/wp-content\/uploads\/2025\/02\/image-3-1200x94.png 1200w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Use Cases<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Test network failover scenarios.<\/li>\n\n\n\n<li>Identify and isolate network issues by disabling a suspected faulty NIC.<\/li>\n\n\n\n<li>Temporarily disable a NIC to measure the impact on network performance and verify load balancing efficiency.<\/li>\n\n\n\n<li>Test how virtual machines respond when a specific network path goes down.<\/li>\n\n\n\n<li>Shut down a vmnic that is connected to an untrusted VLAN or an incorrectly configured network.<\/li>\n\n\n\n<li>Test different network configurations without permanently altering physical connections.<\/li>\n<\/ul>\n\n\n\n<p>By using esxcli, you can manage network interfaces efficiently.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>Let me know if you need any tweaks! \ud83d\ude80<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In VMware ESXi, managing physical network interfaces (vmnics) is essential for troubleshooting, maintenance, or reconfiguration. There are times when you need to disable or re-enable a network interface without relying on the network team to shut down a switch port or physically unplugging the cable in the server room. Fortunately, this can be done quickly &hellip; <a href=\"https:\/\/vpxd.dc5.cz\/index.php\/2025\/02\/16\/how-to-quickly-disable-a-vmnic-on-esxi-no-switch-changes-or-cable-pulling-needed\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Quickly Disable a vmnic on ESXi \u2013 No Switch Changes or Cable Pulling Needed!&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":3679,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,39,8],"tags":[12,13,20],"class_list":["post-3672","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-esxi","category-vmware","tag-esxcli","tag-esxi","tag-vmware"],"_links":{"self":[{"href":"https:\/\/vpxd.dc5.cz\/index.php\/wp-json\/wp\/v2\/posts\/3672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpxd.dc5.cz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vpxd.dc5.cz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vpxd.dc5.cz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vpxd.dc5.cz\/index.php\/wp-json\/wp\/v2\/comments?post=3672"}],"version-history":[{"count":5,"href":"https:\/\/vpxd.dc5.cz\/index.php\/wp-json\/wp\/v2\/posts\/3672\/revisions"}],"predecessor-version":[{"id":3681,"href":"https:\/\/vpxd.dc5.cz\/index.php\/wp-json\/wp\/v2\/posts\/3672\/revisions\/3681"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpxd.dc5.cz\/index.php\/wp-json\/wp\/v2\/media\/3679"}],"wp:attachment":[{"href":"https:\/\/vpxd.dc5.cz\/index.php\/wp-json\/wp\/v2\/media?parent=3672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vpxd.dc5.cz\/index.php\/wp-json\/wp\/v2\/categories?post=3672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vpxd.dc5.cz\/index.php\/wp-json\/wp\/v2\/tags?post=3672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}