VMware vSphere

 View Only

  • 1.  mac address change issue

    Posted Jul 20, 2013 12:51 PM

    Hello All,

    I am trying to change the mac address of a linux vm with a mac address that is outside the "00:50:56:XX:YY:ZZ" rage by following these steps:

    -remove from the vmx config:

                           ethernet0.generatedAddress    

                           ethernet0.addressType    

                           ethernet0.generatedAddressOffset

    -add to the vmx config: 

        ethernet0.addressType = "static"

        ethernet0.address = "new_mac_address"


    I successfully changed the mac address, but now I can't access the vm from outside the network.

    I was wandering if this is the correct way to change the mac address, if not, please advice.


    I also tried running the following commands on the vm, but ended up with the same result.

      ifconfig eth0 down

      ifconfig eth0 hw ether new_mac_address

      ifconfig eth0 up

      ifconfig eth0 |grep HWaddr



    Looking forward to seeing your toughs on this issue. Thanks,



  • 2.  RE: mac address change issue

    Posted Jul 20, 2013 04:15 PM

    Hi...

    kindly, chck the following guide.. page 154-155-156

    http://pubs.vmware.com/vsphere-51/topic/com.vmware.ICbase/PDF/vsphere-esxi-vcenter-server-511-networking-guide.pdf

    It talks about that the static MAC address must be in certain range and the .vmx file will be edited in different way..
    I hope it helps u.. :smileyhappy:



  • 3.  RE: mac address change issue

    Posted Jul 20, 2013 10:17 PM

    is the security policy "MAC Address change" of your virtual switch portgroup set to accept?



  • 4.  RE: mac address change issue

    Posted Jul 20, 2013 10:23 PM

    Yes it is.



  • 5.  RE: mac address change issue

    Posted Jul 21, 2013 12:13 AM

    After extensive troubleshooting I fixed the issue by commenting out the SUBSYSTEM line from /etc/udev/rules.d/70-persistent-net.rules corresponding to eth0.

    Thank you for your assistance.