I have a windows Host, running Virtualbox 6.1. for an Ubuntu 20.04 Guest. On that physical machine I have two ethernet ports. One is wired to a modem, the other is wired to a switch. The goal is to have my ubuntu Guest act as a DHCP server for all machines connecting to that switch. Like the image below: (can't post it as a link)
i.ibb.co/RjJKmSJ/Screenshot-2021-07-15-135517.png
In the networktab I have enabled two adapters:
- adapter 1 is set to a Bridged Adapter using port X ==> Port X goes to the modem == enp0s3
- adapter 2 is set to a Bridged Adapter using port Y ==> Port Y goes to the switch == enp0s8
When I run that Virtual machine I see both network interfaces. enp0s3 and enp0s8. I have configured ICS DHCP to use interface enp0s8. I've done that in /etc/default/isc-dhcp-server/isc-dhcp-server by setting INTERFACES="enp0s8"
Now I have a switch set upwith a wired connection to a laptop.
journalctl -u dhcpd gives me no logs
journalctl -u isc-dhcp-server gave me error messages when I set up the system, yet after tripplechecking the config it claims to receive DHCPREQUESTS.
Code: Select all
timestamp serverhostname dhcpd[895]: DHCPREQUEST for 10.0.1.3 from macadres (hostnameOfConnectedPC) via enp0s8
timestamp serverhostname dhcpd[895]: DHPACK on 10.0.1.3 to macadres (hostnameOfConnectedPC) via enp0s8
timestamp serverhostname dhcpd[895]: reuse_lease: lease age 17 (secs) under 25% threshold, reply with unalter, exist>
On the connected laptop when I run ipconfig I can see the assigned 10.0.1.3 address.
my ipconfig for the ethernet port shows:
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . : intranetDOTmedusaDOTorg
IPv4 Address. . . . . . . . . . . : 10.0.1.3
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.1.1
When I log in on the guest machine and visit 10.0.1.1 I can
However
I can not ping 10.0.1.1 and when I look disconnect the wifi and look at the networkstatus; my wired connection is stuck on 'identifying' or 'Unidentified network'
The moment I disconnect the wire from the switch, my laptop correctly loses the Connection-specific DNS Suffix. Is there something wrong in my setup in VirtualBox, or do I relook my ISC DHCP configuration. I've checked the ISC DHCP knowledgebase, but I don't see any articles on Virtualbox. I'd also expect my gateway to be 10.0.0.1 as that is how ISC DHCP is configured. Is the windows HOST OS intervening somewhere? Also, what is the proper name for such a setup, so I know what to look for.
Many thanks in advance!