Error during creating DHCP server inside intnet network [Linux] [v.6.0.14]

-1

I want to add specific network to my VM on NIC attached to Internal Network (intnet). I found CLI command that create this dhcp server with network, mask and scope, but after this I received error.

# VBoxManage dhcpserver add --netname intnet --ip 172.16.2.0 --netmask 255.255.255.0 --lowerip 172.16.2.10 --upperip 172.16.2.254 --enable
VBoxManage: error: Invalid server address
VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBoxWrap, interface IVirtualBox, callee nsISupports
VBoxManage: error: Context: "SetConfiguration ( Bstr(pIp).mutableRaw(), Bstr(pNetmask).mutableRaw(), Bstr(pLowerIp).mutableRaw(), Bstr(pUpperIp).mutableRaw())" at line 428 of file VBoxManageDHCPServer.cpp
VBoxManage: error: Failed to set configuration

If I list dhcp servers I see enabled only dhcp from Host-only adapter.

# VBoxManage list dhcpservers
NetworkName:    HostInterfaceNetworking-vboxnet0
IP:             192.168.56.100
NetworkMask:    255.255.255.0
lowerIPAddress: 192.168.56.101
upperIPAddress: 192.168.56.254
Enabled:        Yes
Global options:
   1:255.255.255.0

NetworkName:    intnet
IP:             0.0.0.0
NetworkMask:    0.0.0.0
lowerIPAddress: 0.0.0.0
upperIPAddress: 0.0.0.0
Enabled:        No
Global options:
   1:0.0.0.0

My network configuration on host:

# ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether e4:7f:b2:22:03:b1 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether ac:fd:ce:70:d5:c3 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.112/24 brd 192.168.0.255 scope global noprefixroute wlp2s0
       valid_lft forever preferred_lft forever
    inet6 fe80::9da8:2bb5:55d3:a7b3/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
4: wwp0s20u11c2i12: <BROADCAST,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether da:cc:b0:02:e9:4e brd ff:ff:ff:ff:ff:ff
5: vboxnet0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff

I don't know what is interface 4. Any ideas? Is there a kind of a conflict between any of these networks? I tried add with different network and scope but always the output was the same.

linux
networking
virtualbox
virtualization
lab
asked on Stack Overflow Nov 14, 2019 by AsterOps

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0