VMware vSphere

 View Only
  • 1.  How to change vmkernel mac-address without reboot?

    Posted Aug 11, 2018 07:21 PM

    Hello,

    ESXi 6.7

    How to change (to pNIC mac) vmkernel mac-address without reboot?



  • 2.  RE: How to change vmkernel mac-address without reboot?

    Posted Aug 11, 2018 07:46 PM

    I think recreating the vmkernel port will help here -

    VMK0 MAC Change | Favoritevmguy

    Please consider marking this answer as "correct" or "helpful" if you think your questions have been answered.

    Cheers,

    Supreet



  • 3.  RE: How to change vmkernel mac-address without reboot?

    Posted Aug 11, 2018 07:52 PM

    I do not see mac-address in your link



  • 4.  RE: How to change vmkernel mac-address without reboot?

    Posted Aug 11, 2018 07:59 PM

    Please check the screenshots in the link. You will notice the change in the MAC address. Do you want to assign a custom MAC?

    Cheers,

    Supreet



  • 5.  RE: How to change vmkernel mac-address without reboot?

    Posted Aug 11, 2018 08:12 PM

    Please read my first post - i need change to pNIC mac



  • 6.  RE: How to change vmkernel mac-address without reboot?

    Posted Aug 11, 2018 08:27 PM

    Looks like you just modified your query post :smileywink: There was no mention of pNIC in that before. Now to answer your query, most of the advanced configuration changes will require a reboot. You can either run the command <esxcfg-advcfg -s 1 /Net/FollowHardwareMac> or edit the esx.conf file to manually change the MAC address. However, both will require a reboot.

    VMware Knowledge Base

    Please consider marking this answer as "correct" or "helpful" if you think your questions have been answered.

    Cheers,

    Supreet



  • 7.  RE: How to change vmkernel mac-address without reboot?

    Posted Aug 29, 2018 07:48 PM

    I typed in the command esxcfg-advcfg -s 1 /Net/FollowHardwareMac and rebooted the host, but the mac-address has not changed.

    How to change mac-address?



  • 8.  RE: How to change vmkernel mac-address without reboot?

    Posted Aug 29, 2018 10:07 PM

    Running the above command will set the vmk MAC to the active uplink which, might be vmnic0. If you want to assign a custom MAC, you have to edit the esx.conf file to change the below parameter for the respective vmkernel port -

    /net/vmkernelnic/child

    Cheers,

    Supreet



  • 9.  RE: How to change vmkernel mac-address without reboot?

    Posted Aug 30, 2018 09:11 AM

    Running the above command not work.

    Yes, i want set vmk mac-address to physical nic mac-address



  • 10.  RE: How to change vmkernel mac-address without reboot?

    Posted Aug 30, 2018 11:19 AM

    If the above command did not work, you have to manually set the vmkernel MAC address to the pNIC MAC by editing the parameter </net/vmkernelnic/child> from the esx.conf file. Do it only for the required vmkernel NICs.

    Cheers,

    Supreet