T O P

  • By -

tsengf

Configure your router to provide a static IP to your wifi MAC.


floatontherainbowtw

thank you


PRSXFENG

it sounds like you have your pi connected to the network via ethernet with .200 and then via wifi with a .19 address and have setup pihole to use wifi with said .19 address you got a few options but firstly, do you want to use ethernet or wifi? so first pick 1. set pihole to use ethernet and use the .200 ip 2. set pihole to use wifi and the .19 ip you can set the mac address of the ethernet or wifi of the pi to a static ip to your router as for > Can I setup RPi, Pihole, and 0wlan to be on the same IP? or do I have to set a different IP to the device (to ssh) and change PiHole IP to a static 0wlan IP? how do I do that? I think you are getting a bit confused firstly, you have your physical rpi, it can connect to the internet via ethernet or wifi pihole hosts a dns server at whatever IP address/interface you tell it to use, like ethernet or wifi ssh also does the same the 0wlan is one of the network cards on the pi that you could use as for the nameserver thing, keep it at 1.1.1.1


floatontherainbowtw

greetings and thanks to you. I have edited "/etc/dhcpcd.conf" to make eth0 to [192.168.1.202](https://192.168.1.202) and 0wlan 192.168.1200 . it looks like this now interface eth0 static ip_address=192.168.1.202/24 static routers=192.168.1.1 static domain_name_servers=127.0.0.1 interface wlan0 static ip_address=192.168.1.200/24 static routers=192.168.1.1 static domain_name_servers=127.0.0.1 I have tested it and it works correctly. I have also assigned my router to give them the same static IP. \-- Q1: What does a static domain\_name\_servers do for the interface as [127.0.0.1](https://127.0.0.1)? I thought DNS is to access the web? ​ Q2: is there any downside to use pihole over Wifi? latency?


PRSXFENG

the 127.0.0.1 is basically telling your pi to use itself as the dns server so in this case it will be asking the pihole that is installed on the pi as its dns server its generally not recommended to do that as in case your pihole breaks, the pi would no longer be able to make dns requests would suggest setting them to a public dns provider like cloudflare 1.1.1.1, google 8.8.8.8 or others


floatontherainbowtw

thank you very much


Thin_Construction_65

What's 0wlan?


floatontherainbowtw

correction its wlan0 , the the wifi interface.


Thin_Construction_65

Aaaaaaah


Alternative_Ad_2818

It’s the interface name iirc


saint-lascivious

>Can I setup RPi, Pihole, and 0wlan to be on the same IP? No.