VMware Communities
keensy
Contributor
Contributor

No DHCP settings in Virtuak Network Editor

Hi,

I don't seem to have any DHCP settings in the Virtual Network Editor it looks to be in all the documentation but I don't seem to have the option at all am I missing something ?

I am using workstation pro 15.5.6 on Debian

Any help would be very much appreciated

Tags (1)
0 Kudos
3 Replies
amohammadimir
Hot Shot
Hot Shot

On a Linux host system, you can use the virtual network editor to specify that a local DHCP service distributes IP addresses to virtual machines on the network. To change DHCP settings further, you must edit the DHCP server configuration file.

For the default host-only network: /etc/vmware/vmnet1/dhcp/dhcp.conf

For the NAT network: /etc/vmware/vmnet8/dhcp/dhcp.conf

Please remember to mark the replies as answers if they helped.
0 Kudos
keensy
Contributor
Contributor

Good Evening,

Thank you so Much I was worried I would have to go back to using windows for my lab!

Regards,

0 Kudos
loungehostmaste
Enthusiast
Enthusiast

you can use the dhcpd binary from your linux OS and just disable it entirely in the VMware configs

replaced all the initscripts with own native systemd-units and targets years ago including make every network "host-only" and doing NAT on the host OS

--------------------------------------------------------

[root@srv-rhsoft:~]$ cat /etc/dhcp/dhcpd-vmware.conf

authoritative;

ddns-update-style none;

ddns-updates off;

default-lease-time 86400;

max-lease-time 259200;

log-facility local7;

subnet 192.168.196.0 netmask 255.255.255.0 {

option domain-name "vmware.local";

option domain-name-servers 192.168.196.2;

option routers 192.168.196.2;

option ntp-servers 192.168.196.2;

option time-servers 192.168.196.2;

option subnet-mask 255.255.255.0;

option broadcast-address 192.168.196.255;

range 192.168.196.150 192.168.196.200;

}

--------------------------------------------------------

[root@srv-rhsoft:~]$ cat /etc/systemd/system/dhcpd-vmware.service

[Unit]

Description=DHCPD VMWare

After=vmware.service

[Service]

Type=notify

ExecStart=/usr/sbin/dhcpd -4 -f -cf /etc/dhcp/dhcpd-vmware.conf -lf /var/lib/dhcpd/dhcpd-vmware.leases -user dhcpd -group dhcpd --no-pid vmnet8

Restart=always

RestartSec=1

LockPersonality=yes

MemoryDenyWriteExecute=yes

NoNewPrivileges=yes

PrivateDevices=yes

PrivateTmp=yes

ProtectControlGroups=yes

ProtectHome=yes

ProtectHostname=yes

ProtectKernelModules=yes

ProtectKernelTunables=yes

RestrictNamespaces=yes

RestrictRealtime=yes

RestrictSUIDSGID=yes

SystemCallArchitectures=native

SystemCallFilter=@system-service @network-io @privileged @setuid

SystemCallFilter=~@clock @mount @obsolete @reboot @resources @swap @module @raw-io

RestrictAddressFamilies=AF_INET AF_NETLINK AF_PACKET AF_UNIX

CapabilityBoundingSet=CAP_CHOWN CAP_DAC_OVERRIDE CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW CAP_SETGID CAP_SETUID

UMask=077

ProtectSystem=strict

ReadWritePaths=-/run

ReadWritePaths=-/tmp

ReadWritePaths=-/var/lib/dhcpd

IPAddressDeny=any

IPAddressAllow=localhost

IPAddressAllow=multicast

IPAddressAllow=10.0.0.0/8

IPAddressAllow=192.168.0.0/16

IPAddressAllow=172.16.0.0/12

InaccessiblePaths=-/boot

InaccessiblePaths=-/efi

InaccessiblePaths=-/root

# Fedora 32

ProtectClock=true

ProtectKernelLogs=true

[Install]

WantedBy=multi-user.target

0 Kudos