Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4741

Advanced users • Rpi routerless LAN network with static IP or dnsmasq?

$
0
0
Hello, my rpi5 desktop 64-bit has no router and receives Internet from the phone hotspot.
I've connected a Wi-Fi AP (UAP-AC-LIte) via Ethernet to the rpi5 RJ45 port.
The Wi-Fi AP will be used for WLAN devices around the home for home automation.
There will be no cloud access to the WLAN devices.

I thought I might need to create a DHCP server on the rpi, so I've read through several dnsmasq manuals/guides.
I've realised the setup seems to only need a static IP set on the rpi and the AP. However I'm unsure if this static IP idea will work as there's no router and whether the phone hotspot will connect to the rpi with a static ip (perhaps the phone would also need a static ip)?

Currently the AP is looking for an IP, so due to no router or rpi dhcp server lease, the AP has defaulted to 192.168.1.20, which I cannot access.

Here's the terminal output if it helps?

Code:

raspberrypi5@raspberrypi:~ $ ip -c a1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00    inet 127.0.0.1/8 scope host lo       valid_lft forever preferred_lft forever    inet6 ::1/128 scope host noprefixroute        valid_lft forever preferred_lft forever2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000    link/ether 2c:cf:67:13:a3:da brd ff:ff:ff:ff:ff:ff3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000    link/ether 2c:cf:67:13:a3:db brd ff:ff:ff:ff:ff:ff    inet 172.20.10.9/28 brd 172.20.10.15 scope global dynamic noprefixroute wlan0       valid_lft 83622sec preferred_lft 83622sec    inet6 fe80::2845:ad69:3e36:5fa2/64 scope link noprefixroute        valid_lft forever preferred_lft foreverraspberrypi5@raspberrypi:~ $ dnsmasq --testdnsmasq: syntax check OK

Statistics: Posted by eiger3970 — Wed Jun 05, 2024 2:52 am



Viewing all articles
Browse latest Browse all 4741

Trending Articles