Mac Make VMWare Client Bind Fixed IP with its MAC Address
This strategy is tested on Mac Mojave, VMWare Pro 10.1.3.
First, edit the VMWare DHCP Daemon Config File.
sudo nano /Library/Preferences/VMware\ Fusion/vmnet8/dhcpd.conf
You may find the line as following.
####### VMNET DHCP Configuration. End of “DO NOT MODIFY SECTION” #######
Then, you need to seek the name of Client Machine in VMWare Main Window Client List. This name would be used to lead a config block. A sample is given below.
host centos7 {
hardware ethernet 00:0C:29:DF:15:4A;
fixed-address 192.168.16.137;
}
It means, for the client machine named “centos7”, its MAC is “00:0C:29:DF:15:4A”, so the DHCP result would always be “192.168.16.137”.
Now let the VMWare Net Service use new settings.
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --configure
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --start
Now, restart VMWare Fusion. Or, as someone says, run “sudo dhclient -v -r eth0” in client machine (eth0 might be ens33 sometimes).
コメントを残す