The The This post was last edited by xkc at 2020-7-411:51 Now under WIN, a UBUNTU chick is created under VMARE Then cloned multiple chickens with the clone function But these chickens start together, DHCP will assign the same IP, it hurts Is there any way to turn off the DHCP function of the main body chicken first? Then use the command line to add a fixed IP to each avatar In this way, I can use SSH tools to manage in batches, otherwise the IP of the chick will be messed up after restarting Ontology chick IP address (default is 128, it gets bigger and bigger after a few restarts) inet192.168.152.138 netmask255.255.255.0 broadcast192.168.152.255 The network card name is ens33 Hen VMNET8 settings: Subnet IP 192.168.152.0 Gateway 192.168.152.2 IP192.168.152.128-192.168.152.254 The big guy who can solve it gives 20 red envelopes~ Actually now I basically solved it myself vim/etc/netplan/50-cloud-init.yaml The configuration is as follows: network: ethernets: enp33: addresses:[192.168.152.140/24] //IP address gateway4:192.168.152.2 //Gateway nameservers: addresses:[114.114.114.114,192.168.0.1]//DNS dhcp4:no optional:no version:2 Already solved~~~~

-------------------------------------------- ---------
Netizen Reply: The The Continue to pay attention to see if there is any way for the big brother, whether it can be controlled by variables
Netizen reply: The The It’s not enough to change each chick to a static IP network card. The workload is huge. vi/etc/sysconfig/network-scripts/ifcfg-eth0
Netizen reply: The The Quote: ByteCat published on 2020-7-410:31 The fixed IP in the network card settings is not enough, don't use dhcp
Netizen reply: The The Citation: Syc published in 2020-7-410:32 It’s not enough to change each chick to a static IP network card. The workload is huge. vi/etc/sysconfig/network-scripts/ifcfg-eth0...
Netizen Reply: The The I can use PVE to specify the static IP of the virtual machine, for example: 192.168.1.101/24, the gateway fills in your router address. I haven't used VMware for a long time, the specific operation method should be similar, find the place of IP setting.
Netizen reply: The The Simultaneous start is because the vnet network card judges that it is a machine, so the same IP? What will happen to the sequence start
Netizen reply: The The Quote: Smile, published on face on 2020-7-410:55 Simultaneous start is because the vnet network card judges that it is a machine, so the same IP? What will happen to the sequence start
Netizen reply: The The Is it because the mac address is the same, so the same ip is assigned? /* Life was originally dull, but there will be wind when you run. --[Northern Province] Linkhttps://greasyfork.org/zh-CN/scripts/396933-hostloc-zsbd */
Netizen Reply: The The Directly set up a dhcp server to allow chicks to automatically obtain. The macs you cloned are the same. . .

Label: none