File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments