Host Only Network management.
VBoxManage hostonlynet add <--name=netname> [--id=netid] <--netmask=mask> <--lower-ip=address> <--upper-ip=address> [ --enable | --disable ]
VBoxManage hostonlynet modify < --name=netname | --id=netid > [--lower-ip=address] [--upper-ip=address] [--netmask=mask] [ --enable | --disable ]
The hostonlynet commands enable you to control host-only networks.
The subcommands of hostonlynet all operate on an host-only network that can be identified via its name or uuid:
netnameThe host-only network name. You see it as VBoxNetworkName in the output from VBoxManage list hostonlynets.
netidThe host-only network uuid. If not specified when adding a new network, one will be generated automatically.
VBoxManage hostonlynet add <--name=netname> [--id=netid] <--netmask=mask> <--lower-ip=address> <--upper-ip=address> [ --enable | --disable ]
Adds a new host-only network.
Options configuring the host-only network:
--netmask=mask
The network mask. Typically 255.255.255.0.
--lower-ip=address, --upper-ip=addressThe IP address range for handing out via DHCP. The upper boundrary is inclusive while the lower one is not, so the upper address will be handed out to a client, while the lower address will be used by the host itself.
--enable, --disableWhether to enable the host-only network or disable it. If not specified, the network will be created in enabled state.