Change router Pi Hole running on Ubuntu no internet and no filtering

The issue I am facing:
No internet on the computer running PiHole. And no filtering.

Details about my system:
I had Asus router(192.168.29.1/24). And now I have TP-Link (192.168.0.1.24).
Internet works for other devices as they don't have a connection to pihole.
However, the machine running pihole still points to old DNS.
So, it doesn't have internet. and obviously because of it no filtering.
I found couple of pages about needing to update entry in /etc/dhcpd.conf file.
However, it might be for raspbian. As I don't see that file on my ubuntu 20.04.
There's /etc/dhcp directory but there's no dhcpd.conf there.
There is however, /etc/dhcp/dhclient.conf. However, every line is commented out there.
So, not sure how to update DNS for it.
And since there's no internet, I can't even reconfigure it using pihole -r.

Could you please let me know which/where to update entries to re-configure pihole to new router?
Thanks,

Link to relevant page:

Run on your Pi-hole machine, what's the output of:

ip -4 address
1: lo:<LOOPBACK, UP, LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    inet 127.0.0.1/8 scope host lo
        valid_lft forever preferred_lft forever
2: eno1: <BROADCAST, MULTICAST, UP, LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    inet 192.168.0.130/24 brd 192.168.0.255 scope global dynamic noprefixroute eno1
        valid_lft 4459sec preferred_lft 4459sec
    inet 192.168.29.195/24 brd 192.168.29.255 scope global noprefixroute eno1
        valid_lft forever preferred_lft forever
3: virbr0 <NO-CARRIER, BROADCASE, MULTICAST, UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
        valid_lft forever preferred_lft forever

Please forgive typo errors. I had to type this since that computer is not connected to net right now.

If it's not connected, how did it acquire its 192.168.0.130 dynamic IP address?

Judging by that address, it was able to get a DHCP lease from your current TP-Link router at 192.168.0.1, while it still holds a static definition (forever) for 192.168.29.195.

I'm also curious about that virbr0 interface. What's its purpose, and how is it configured? Assuming it's a bridge, would it include en01?

Virbr0 is likely from the VM set up.

How do I fix/remove static definition for old ip(192.168.29.195)?
I know the computer got new ip. I think I did mention it initially.
However there’s no internet and filtering doesn’t work.

Please, Any idea on how to correct the settings?

Any suggestions on how to fix this?

Since a VM is somehow involved, you'd have to find out which IP addresses you really need. Sort your IP address issues and get rid of any extra addresses that aren't required by you.

Thank you for responding.
VM is not important. I created couple of VMs to experiment with few things.
We can get rid of those. I can always re-create vms if I need to.

I do need help with : removing the IP addresses.
I don't know how to. I looked up online but got confusing instructions.
We can get rid of all but 192.168.0.130 (new one). And even that we can get rid of if we need to (if it's easier to clean up everything). Router will just issue new one next time.
I even tried to remove the network profile from GUI (Ubuntu 20.04.1 LTS). But can't seem to clean the ips.
Could you please tell me how to get rid of the ips (old network config)?

I re-built the server. Network is fine now and so is P-Hole.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.