VirtualBox

Ticket #20790 (new defect)

Opened 12 months ago

Last modified 12 months ago

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

comment:1 Changed 12 months ago by fth0

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 Changed 12 months ago by aleksey

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

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use