VirtualBox

Opened 2 years ago

Closed 8 months ago

#20790 closed defect (fixed)

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 (3)

comment:1 by fth0, 2 years ago

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

comment:2 by Aleksey Ilyushin, 2 years ago

The code in VBoxNetAdpCtl that was computing a broadcast address was incorrect. The fix will be included into the next maintenance build.

comment:3 by aeichner, 8 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use