使用者工具

網站工具


os:vmware:vmware_指定mac_address設定

Vmware 指定MAC address設定

VMware 預設的 mac address 是亂數產生的,對於要控管 mac address 時並不方便.
GUI 裡並不能設定各 NIC 的 mac addres ,但是可以透過修改設定檔的方式來設定.
(這邊使用的是 Win32 的 VMWare Workstaion 5.0 ,其他版本應該是大同小異)

首先將要修改的 VM ( Virtual Machine ) 關機
開啟該VM的 .vmx 設定檔,找到以下幾行:

ethernet[x].addressType = "generated"
ethernet[x].generatedAddress = "00:0c:29:xx:xx:xx"

改成

ethernet[x].addressType = "static"
ethernet[x].address = "00:50:56:xx:xx:xx" (注意!!前面的 vendor code: 00:50:56 絕對不要改)

再把下面這行刪掉

ethernet[x].generatedAddressOffset = "0"

接下來就可以重新啟動 VM , 這時這台VM的 mac addres 已經是之前手動指定的了.

os/vmware/vmware_指定mac_address設定.txt · 上一次變更: 2019/11/16 08:12 由 127.0.0.1