Opened 3 years ago
Last modified 3 years ago
#20790 new defect
vboxnetx adapters are having a wrong broadcast address
| Reported by: | gabrymark26 | Owned by: | |
|---|---|---|---|
| Component: | network/hostif | Version: | VirtualBox 6.1.32 |
| Keywords: | broadcast | Cc: | |
| Guest type: | Linux | Host type: | Linux |
Description
If I create a hostonly adapter (e.g. vboxnet2) having the following IPV4 parameters:
Address: 10.10.10.1 Netmask: 255.255.252.0
I expect the following result in my host: # ip addr 6: vboxnet2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 0a:00:27:00:00:02 brd ff:ff:ff:ff:ff:ff inet 10.10.10.1/22 brd 10.10.11.255 scope global vboxnet2
and NOT (see brd value)
6: vboxnet2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 0a:00:27:00:00:02 brd ff:ff:ff:ff:ff:ff inet 10.10.10.1/22 brd 10.10.10.255 scope global vboxnet2
It seems that there is an error creating the broadcast value on the HOST.
Change History (2)
comment:1 by , 3 years ago
comment:2 by , 3 years ago
The code in VBoxNetAdpCtl that was computing a broadcast address was incorrect. The fix will be included into the next maintenance build.


Depending on the DHCP server configuration, there could be two netmasks involved. Did you configure a DHCP server for the host-only adapter?