{"id":738,"date":"2012-05-05T00:47:12","date_gmt":"2012-05-05T00:47:12","guid":{"rendered":"https:\/\/pipe2text.com\/?page_id=738"},"modified":"2012-05-05T01:05:22","modified_gmt":"2012-05-05T01:05:22","slug":"assigning-nic-cards-to-the-default-iscsi-software-adapter-in-esx","status":"publish","type":"page","link":"https:\/\/pipe2text.com\/?page_id=738","title":{"rendered":"Assigning NIC cards to the default iSCSI Software adapter in ESX"},"content":{"rendered":"<p>I wanted to start utilizing an iSCSI storage system that we had for our ESX servers but didn&#8217;t want to have the iSCSI traffic using any of the existing NIC&#8217;s in these ESX servers. So the first step was to\u00a0put the NIC&#8217;s we previously added to the servers into a new VSwitch. Connection type for ISCSI will use vkernel.<\/p>\n<p><a href=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2012\/05\/esx21.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-743\" title=\"esx2\" src=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2012\/05\/esx21.png\" alt=\"\" width=\"409\" height=\"85\" srcset=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2012\/05\/esx21.png 409w, https:\/\/pipe2text.com\/wp-content\/uploads\/2012\/05\/esx21-300x62.png 300w\" sizes=\"auto, (max-width: 409px) 100vw, 409px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Once the VSwitch\u00a0is created take note of \u00a0use the name assigned. In this case <strong>vmk3<\/strong><\/p>\n<p>The default software iSCSI adapter listed under configuration -&gt; storage adapters on the ESX host show up on my system as vmhba37.<\/p>\n<p><a href=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2012\/05\/esx1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-739\" title=\"esx1\" src=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2012\/05\/esx1.png\" alt=\"\" width=\"618\" height=\"174\" srcset=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2012\/05\/esx1.png 618w, https:\/\/pipe2text.com\/wp-content\/uploads\/2012\/05\/esx1-300x84.png 300w\" sizes=\"auto, (max-width: 618px) 100vw, 618px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>To view\u00a0which NIC&#8217;s, if any, have been assigned to the iSCSI software adapter\u00a0(vmhba37)you can run the following command:<\/p>\n<p><strong>[acct@esxserver ~]# esxcli swiscsi nic list -d vmhba37 Errors: No nics found for this adapter.<\/strong><\/p>\n<p>In this instance there are no NIC&#8217;s assigned to vmhba37.\u00a0Since none are specified, by default the system will pick an existing one at random and use it.<\/p>\n<p>To assign specific NIC(s) to the iSCSI software adapter you can run the following command(s).<\/p>\n<p><strong> <strong><\/strong>[acct@esxserver ~]#esxcli swiscsi nic add -n vmk3 -d vmhba37<\/strong><\/p>\n<p><strong>[acct@esxserver ~]#esxcli swiscsi nic list -d vmhba37 <\/strong><strong>vmk3 \u00a0\u00a0\u00a0 pNic name: vmnic5 \u00a0\u00a0\u00a0 ipv4 address: 10.10.10.42\u00a0\u00a0\u00a0\u00a0 ipv4 net mask: 255.255.255.0 \u00a0\u00a0\u00a0 ipv6 addresses: \u00a0\u00a0\u00a0 mac address: g4:de:56:a4:3c:42\u00a0\u00a0\u00a0\u00a0 mtu: 1500 \u00a0\u00a0\u00a0 toe: false \u00a0\u00a0\u00a0 tso: true \u00a0\u00a0\u00a0 tcp checksum: false \u00a0\u00a0\u00a0 vlan: true \u00a0\u00a0\u00a0 vlanId: 0 \u00a0\u00a0\u00a0 ports reserved: 63488~65536 \u00a0\u00a0\u00a0 link connected: true \u00a0\u00a0\u00a0 ethernet speed: 1000 \u00a0\u00a0\u00a0 packets received: 5270264 \u00a0\u00a0\u00a0 packets sent: 26 \u00a0\u00a0\u00a0 NIC driver: igb \u00a0\u00a0\u00a0 driver version: 3.1.17 \u00a0\u00a0\u00a0 firmware version: 3.19-0<\/strong><\/p>\n<p>You can see by running the &#8220;list&#8221; command that after you&#8217;ve assigned the NIC to the iSCSI software adapter it now shows additional info, specifically network info for\u00a0the assigned NIC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to start utilizing an iSCSI storage system that we had for our ESX servers but didn&#8217;t want to have the iSCSI traffic using any of the existing NIC&#8217;s in these ESX servers. So the first step was to\u00a0put &hellip; <a href=\"https:\/\/pipe2text.com\/?page_id=738\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"class_list":["post-738","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/738","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/pipe2text.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=738"}],"version-history":[{"count":7,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/738\/revisions"}],"predecessor-version":[{"id":742,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/738\/revisions\/742"}],"wp:attachment":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}