Skip to content

Commit ef637e1

Browse files
committed
+ DHCP: step-by-step guide for test setup with Virtual Box
1 parent 9494b87 commit ef637e1

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

dhcpd/README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# DHCP server
2+
3+
Contents:
4+
* [Test setup with Virtual Box](#vbox)
5+
6+
<a id="vbox"></a>
7+
## Test setup with Virtual Box
8+
9+
To set up a test environment for DHCP server you need:
10+
11+
* Linux host machine
12+
* Virtual Box
13+
* Virtual machine (guest OS doesn't matter)
14+
15+
### Configure client
16+
17+
1. Install Virtual Box and run the following command to create a Host-Only network:
18+
19+
$ VBoxManage hostonlyif create
20+
21+
You can check its status by `ip a` command.
22+
23+
You can also set up Host-Only network using Virtual Box menu:
24+
25+
File -> Host Network Manager...
26+
27+
2. Create your virtual machine and set up its network:
28+
29+
VM Settings -> Network -> Host-only Adapter
30+
31+
3. Start your VM, install an OS. Configure your network interface to use DHCP and the OS should ask for a IP address from our DHCP server.
32+
33+
### Configure server
34+
35+
1. Edit server configuration file 'AdGuardHome.yaml', for example:
36+
37+
dhcp:
38+
enabled: true
39+
interface_name: vboxnet0
40+
gateway_ip: 192.168.56.1
41+
subnet_mask: 255.255.255.0
42+
range_start: 192.168.56.2
43+
range_end: 192.168.56.2
44+
lease_duration: 86400
45+
icmp_timeout_msec: 1000
46+
47+
2. Start the server
48+
49+
./AdGuardHome
50+
51+
There should be a message in log which shows that DHCP server is ready:
52+
53+
[info] DHCP: listening on 0.0.0.0:67

0 commit comments

Comments
 (0)