You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Allow specifying vmnet network UUID to disable DHCP (on vmnet.host network only)
This commit introduces a new `--vmnet-network-uuid` command-line option to allow
setting the `vmnet_network_identifier_key` for vmnet.
This property is only applicable to a vmnet_interface in
VMNET_HOST_MODE.
If this property is set, the vmnet_interface is added to an isolated
network with the specified identifier.
No DHCP service is provided on this network.
This is useful for certain applications where the users need an isolated
network and are running their own dhcp to assign IPs in such network.
See issue [#139](#139)
```
❯ sudo ./socket_vmnet "/opt/homebrew/var/run/socket_vmnet" --vmnet-mode=host --vmnet-gateway=192.168.100.1 --vmnet-network-uuid=99eddb74-3193-48e3-bafb-b3ca99e949c1
Password: INFO | Initializing vmnet.framework (mode 1000)
INFO | * vmnet_write_max_packets: 256
INFO | * vmnet_read_max_packets: 256
INFO | * vmnet_subnet_mask: 0.0.0.0
INFO | * vmnet_mtu: 1500
INFO | * vmnet_end_address: 255.255.255.254
INFO | * vmnet_start_address: 0.0.0.0
INFO | * vmnet_interface_id: 0E21C1D4-43D9-4363-B767-A64FE591EA7D
INFO | * vmnet_max_packet_size: 1514
INFO | * vmnet_mac_address: 66:77:98:e1:52:9c
```
I could run my LAB vms, I saw no DHCP been handed over by MacOS/bootp,
my Lab runs a special VM with DHCPD and I saw that not colliding.
```
❯ sudo ./socket_vmnet "/opt/homebrew/var/run/socket_vmnet" --vmnet-gateway=192.168.100.1 --vmnet-network-uuid=99eddb74-3193-48e3-bafb-b3ca99e949c1
INFO | Initializing vmnet.framework (mode 1001)
INFO | * vmnet_write_max_packets: 256 INFO | * vmnet_read_max_packets: 256
INFO | * vmnet_subnet_mask: 255.255.255.0
INFO | * vmnet_mtu: 1500
INFO | * vmnet_end_address: 192.168.100.254
INFO | * vmnet_start_address: 192.168.100.1
INFO | * vmnet_interface_id: 99AC02F6-59D3-4192-820B-C8DAED0F2B81
INFO | * vmnet_max_packet_size: 1514
INFO | * vmnet_nat66_prefix: fd86:9a96:2682:1344::
INFO | * vmnet_mac_address: 3a:be:d4:0d:33:11
```
Signed-off-by: Angelo Failla <[email protected]>
0 commit comments