Ubuntu How to setup Multi Dhcp Server - Ask Ubuntu

PiHole 4.2.2 on Synology Docker - setup work for me

PiHole 4.2.2 on Synology Docker - setup work for me
I've setup Pihole on both Synology and Ubuntu with success (lucky me). While on Ubuntu was quite straightforward, on Synology needed some experiment.

I do not activate DHCP function on my Synology; my TPLink wifi router handles it without problem.

My Synology fixed IP is (yours could be different)

On Synology, thanks to this website, https://servicemax.com.au/tips/pi-hole-v4-on-synology-in-docker-the-easy-way/ which gave me 99% success.

Please find below broad steps in setting Pihole version 4.2.2 (latest as at this article) on Synology DSM 6.xx docker:
  1. search Docker registry for 'Pihole', and choose and download 'Pihole/Pihole' which is the official docker from Pihole.
  2. Launch the Pihole image, and use the Advanced setting option to change port mapping and add some environment variables; also check autostart option
  3. Only changes made to the default Pihole container settings:
  • In Port Settings tab, fixed the port mapping for container port 80, 433 to any local port number (I use 8181 and 8182, respectively). For container port 53 tcp and udp, do use 53 for both (local port number must not be duplicated with the same local port numbers being used by other Synology services)
  • In Environment tab, I did two things:
    • change ServerIP value to my Synology fixed IP ( for my synology)
    • add variable WEBPASSWORD and give your desired admin password (to override default Pihole password automatically)
  • To enter into the Pihole admin website, use this url:

They are all the set up I did on my Synology.

On main Wifi Router
The other setup to do is to change default DNS servers on my main wifi router (TPLink). My ISP assigns DNS1 and DNS2 IP for my router, but the router allows me to manually change them. I changed only the DNS1 value to be my Synology fixed IP address, which is; and left the second DNS remains same. From this setup, all devices in my home will be using Pihole services automatically (filter out Ad, porn websites, bitcoin mining....). You may add more blacklist urls under Setting in Pihole admin page.
If you don't want Pihole to filter ad for all your devices, you don't have to change the DNS on your main router. Instead, on the device you wish to have Pihole controlled, you can change the first DNS IP to be your Synology IP, mine is (yours could be different); and keeps the second DNS as is (mine is my main router IP which is

Once you completed the setup on both Synology and Router, log into Pihole admin page, see the statistics in Dashboard, it should display Total number of queries, queries blocked, etc... If no movement on these numbers, that means the setup was not right, you can check the Pihole container log on Synology (in DetailsLog tab).

Pihole container consumes only 0.1x% of my DS411+II Atom D525 CPU, and 300+/- MB ram (from 2GB total RAM). I also run full Calibre engine and content server docker without problem on it.

The Pihole on my Ubuntu will be my backup.

Ports mapping: change from Auto
Change ServerIP value and add variable WEBPASSWORD only
Enable auto-restart

Resources usage
submitted by europacafe to pihole [link] [comments]

My network is possessed... I am convinced.

Hello smart network people of reddit! I could use some direction as I am completely out of options on my end. Take a seat, this will be a story....
I have comcast (yes I know). We have been experiencing intermittent connectivity for 5+ years. However, just the past few months it has gotten much worse. We will experience small outages (about 2 to 4 minutes) approximately 4-9 times a day.
This is my setup currently...
Modem: Their XB3 modem in bridged mode
Router: D'link gaming router
switch: cisco 24 port 10/100/1000 switch
Almost everything in my home is hard wired. The only devices that are wireless are our phones, tablets, and one laptop on occasion. I also have another router set up as a wireless access point downstairs.
I also run a bitcoin miner on my computer (windows 10) and have a media server (ubuntu 14.04) running plex. During these "outages" i can ping my router and get a response. However, sometimes i can ping the modem and others I cant.
Sometimes my galaxy s5 gets an unable to resolve dns. I have it set to google dns through the router and However, while this was occurring the laptop was still able to browse reddit just fine both were connected to the same wifi access point.
The bitcoin miner will send me a report letting me know that my miners have gone from OK to Low several times a day. Sometimes during these outages I will ping away and not get a report from my bitcoin miner.
Just a few minutes ago my fiance was on my shared drive and coping a file. He lost access to my computer and these are hard wired connections. Again, I could ping the router but not the modem.
I know in theory my internal network should always remain up. We could not have a modem and still have a LAN Party and not lose connection.
We have had 6 different modems mailed out to us and with each I have tried using their modem as a modem/router and then put it in bridged mode. The intermittent connections still continue.
We got the basic cable because it was cheaper than internet alone and we noticed some hesitation while on a music channel. This turned in to periodic silence or a good remix.
We called comcast and had a technician come out and they verified all cables were good and the signal is fine coming to the house. In fact it was "above par".
We had the line coming to the house replaced and we are still getting intermittent connections. I did a speed test once right after a reconnect and had a lovely 6 mbps connection. We pay for 50 mbps. Alas, after 5 minutes it was back up to a reasonable speed of 75 mbps. I am at wits end. I have replaced everything including the switch. My router gives me some interesting logs which include some blocking of tcp and udp but no log entry of the disconnect. It will say that my status for being online will be renewed right after an outage.
Please share your infinite knowledge. I am tempted to turn my ubuntu server into a dhcp server as I just found another lan card floating around. Thank you for your time!
UPDATE: While looking in my router per u/ShagNasticator_ 's suggestion my connectivity timed out again. I was trying to download some logs that I found. Here are the logs:
2015/9/1 02:42:04 Notice [Dhcpc][2861]: erouter0 got new IP XX.XXX.XXX.XXX
2015/8/31 21:28:17 Notice [Dhcpc][8698]: erouter0 got new IP XX.XXX.XXX.XXX
2015/8/31 21:23:52 Critical [Docsis][527]: No Ranging Response received - T3 time-out
2015/8/31 21:23:52 Critical [Docsis][527]: No Ranging Response received - T3 time-out
2015/8/31 21:23:52 Critical [Docsis][527]: No Ranging Response received - T3 time-out
2015/8/31 21:23:52 Critical [Docsis][527]: No Ranging Response received - T3 time-out
2015/8/31 21:23:52 Critical [Docsis][527]: Unicast Ranging Received Abort Response - initializing MAC
2015/8/31 21:23:51 Critical [Docsis][527]: Unicast Ranging Received Abort Response - initializing MAC
2015/8/31 21:23:51 Critical [Docsis][527]: Unicast Ranging Received Abort Response - initializing MAC
2015/8/31 21:23:51 Critical [Docsis][527]: Unicast Ranging Received Abort Response - initializing MAC
2015/8/31 02:39:27 Notice [Dhcpc][1383]: erouter0 got new IP XX.XXX.XXX.XXX
While trying to download the logs the connectivity timed out. So I went to my router. This was what the router showed:
Please wait while we assess the network.
The modems page then looked like this:
This webpage is not available ERR_CONNECTION_TIMED_OUT
Then I went back to my router page and it showed this:
Connection Type: DHCP Client
QoS Engine : Active
Cable Status: Connected
Network Status : Established
Connection Up Time: 0 Day 0 Hour 00 Min 19 Sec
Now what I find interesting is that the cable modem shows that I got a new IP. But the router still reflects the old IP.
This is my new update..
submitted by mclassy3 to HomeNetworking [link] [comments]

Configure DHCP in ubuntu 12.04 Install and Configure a DHCP Server in Ubuntu 11.10 - YouTube Setting Up and Configuring a DHCP Server in Ubuntu 10.10 Maverick Meerkat - Part 1 How to Install and Configure DHCP Server on Ubuntu 16.04 LTS using VMware Workstation  Ubuntu DHCP How-to Configure Ubuntu as DHCP Server

How do I setup DHCP relay on my linux server given there are two NICs attached to it, one connects the linux server to the network appliance and the other connects the linux server to the client computers. EDIT. Router (DHCP) ----> [eth0] Linux Server (Relay agent) [eth1] -----> PC (network) I will be using the beta version of 18.04 since this is the future OS for the Ubuntu server, and I need to write this article for Ubuntu 18.04. I DO NOT suggest using a beta version for your mining computer, so it may be best to just wait until the official Ubuntu 18.04 server is released. I am just using the beta so I can write the tutorial ... Configure WiFi Connections. This section explains how to establish a WiFi connection. It covers creating and modifying connections as well as directly connecting. The first time running Bitcoin Core, ... After logging in, you want to search your router’s menus for options related to DHCP, the Dynamic Host Configuration Protocol. These options may also be called Address Reservation. ... Ubuntu also comes with its firewall disabled by default, but if you have enabled it, ... First, you need to connect your Antminer device to a DHCP network and turn it on. The Antminer device should get an IP address automatically from the DHCP server. Now, you need to discover the IP address that your Antminer device got. The easiest way to do it is to access the DHCP server and verify the IP address a device named Antminer.

[index] [28463] [11458] [12403] [15375] [12448] [8665] [21088] [2653] [17612] [24588]

Configure DHCP in ubuntu 12.04

In this video I will show how to install and configure DHCP Server on Ubuntu 16.04.4 LTS Server using VMware Workstation. Ubuntu 16.04.4 LTS Tutorials: 1) How to install Ubuntu 16.04.4 LTS in ... How to make DHCP server. this video will explain how to Install and Configure DHCP server. In this configurations I also applied as Server as Router running on Ubuntu Server 12.04/14.04 LTS. How to configure DHCP Server in Ubuntu Linux 18.04 ( Complete Server & client ) - Duration: 16:46. Android and Tech Solutions 53,686 views How To Install and configure ISC DHCP Server in Ubuntu 16.04,14.04,12.04. #dhcp #dhcpserver #dhcpubuntu #dhcplinux In this video i am going to show you step ... How to install and configure a DHCP server in Ubuntu 11.10. The demonstration is done with Ubuntu and Fedora VMware virtual machines and shows a successful s...