VMware Fusion 固定 IP

编辑 DHCP 配置文件

1
sudo vim /Library/Preferences/VMware\ Fusion/vmnet8/dhcpd.conf

做如下修改

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
####### VMNET DHCP Configuration. End of "DO NOT MODIFY SECTION" #######
host Ubuntu-20.04-Master {
hardware ethernet 00:0c:29:bd:f2:22;
fixed-address 172.16.214.2;
}
host Ubuntu-20.04-Node01 {
hardware ethernet 00:0c:29:67:a7:0b;
fixed-address 172.16.214.3;
}
host Ubuntu-20.04-Node02 {
hardware ethernet 00:0c:29:27:8c:0a;
fixed-address 172.16.214.4;
}
host Ubuntu-20.04-Node03 {
hardware ethernet 00:0c:29:ee:fe:e0;
fixed-address 172.16.214.5;
}

刷新网络配置

1
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --configure

验证是否生效

1
sudo dhclient -v -r ens33
作者

遇寻

发布于

2021-10-11

更新于

2022-04-21

许可协议

评论