- VirtualBox: 7.0.9 r157689
- Host: macOS Ventura Version 13.4 (22F66)
- Host Network adapter: Ethernet
- Guest: Parrot OS (Debian-based. I have also tested this with Ubuntu, Debian, Fedora, CentOS 7, and Kali Linuxes)
Below is the DHCP configuration after it got created. You can see there's no `6/legacy:` in it.
Code: Select all
❯ VBoxManage list dhcpservers
NetworkName: NatNetwork
Dhcpd IP: 10.0.2.3
LowerIPAddress: 10.0.2.4
UpperIPAddress: 10.0.2.254
NetworkMask: 255.255.255.0
Enabled: Yes
Global Configuration:
minLeaseTime: default
defaultLeaseTime: default
maxLeaseTime: default
Forced options: None
Suppressed opts.: None
1/legacy: 255.255.255.0
3/legacy: 10.0.2.1
Groups: None
Individual Configs: None
Code: Select all
$nslookup [a website. It turned out I can’t pos url links that are external to this domain.]
;; communications error to ::1#53: connection refused
;; communications error to ::1#53: connection refused
;; communications error to ::1#53: connection refused
;; communications error to 127.0.0.1#53: connection refused
;; no servers could be reached
Code: Select all
$ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=56 time=3.15 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=56 time=3.16 ms
Code: Select all
$sudo nmap --script broadcast-dhcp-discover
Pre-scan script results:
| broadcast-dhcp-discover:
| Response 1 of 1:
| Interface: enp0s3
| IP Offered: 10.0.2.10
| Server Identifier: 10.0.2.3
| DHCP Message Type: DHCPOFFER
| Subnet Mask: 255.255.255.0
| Router: 10.0.2.1
|_ IP Address Lease Time: 10m00s
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 10.38 seconds
Code: Select all
❯ VBoxManage list dhcpservers
NetworkName: NatNetwork
Dhcpd IP: 10.0.2.3
LowerIPAddress: 10.0.2.4
UpperIPAddress: 10.0.2.254
NetworkMask: 255.255.255.0
Enabled: Yes
Global Configuration:
minLeaseTime: default
defaultLeaseTime: default
maxLeaseTime: default
Forced options: None
Suppressed opts.: None
1/legacy: 255.255.255.0
3/legacy: 10.0.2.1
6/legacy: 1.1.1.1,8.8.8.8
Groups: None
Individual Configs: None
Code: Select all
$cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 1.1.1.1
nameserver 8.8.8.8
Code: Select all
$sudo nmap --script broadcast-dhcp-discover
Pre-scan script results:
| broadcast-dhcp-discover:
| Response 1 of 1:
| Interface: enp0s3
| IP Offered: 10.0.2.10
| Server Identifier: 10.0.2.3
| DHCP Message Type: DHCPOFFER
| Subnet Mask: 255.255.255.0
| Router: 10.0.2.1
| Domain Name Server: 1.1.1.1, 8.8.8.8
|_ IP Address Lease Time: 10m00s
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 10.34 seconds
I have attached my VM logs for both cases (DHCP with `--set-opt` and without it) to this post.
I have also created this ticket #21714.
Thank you for your attention to this matter.