11-08-2023, 11:37 PM
(11-08-2023, 07:56 PM)Tim Curtis Wrote:(11-08-2023, 06:31 PM)Tim Curtis Wrote:(11-08-2023, 03:56 PM)TheOldPresbyope Wrote: There is no local DNS resolver running on my ISP-provided router. (The ISP is Comcast).
The LAN is 10.0.0.x, the router gateway is 10.0.0.1, and the router is running DHCP.
Here we see the hotspot has grabbed 10.42.0.x for its LAN. I imagine the subnet is user-definable but I haven't explored this.
Code:kreed@pi400:~ $ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.253 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 xxxx:xxx:xxxx::faa4 prefixlen 128 scopeid 0x0<global>
inet6 fe80::6655:9a1c:2c4e:76d6 prefixlen 64 scopeid 0x20<link>
inet6 xxxx:xxx:xxxx:xxxx:xxxx:xxxx:xxxx:e569 prefixlen 64 scopeid 0x0<global>
ether e4:5f:01:29:07:f7 txqueuelen 1000 (Ethernet)
RX packets 155 bytes 52781 (51.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 189 bytes 26374 (25.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 10287 bytes 898671 (877.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10287 bytes 898671 (877.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.42.0.1 netmask 255.255.255.0 broadcast 10.42.0.255
ether e4:5f:01:29:07:f8 txqueuelen 1000 (Ethernet)
RX packets 5869518 bytes 6426459127 (5.9 GiB)
RX errors 0 dropped 127 overruns 0 frame 0
TX packets 1724949 bytes 197714515 (188.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Code:kreed@pi400:~ $ cat /etc/resolv.conf
# Generated by NetworkManager
search hsd1.md.comcast.net
nameserver 75.75.75.75
nameserver 75.75.76.76
nameserver xxxx:xxx:xxxx::1
# NOTE: the libc resolver may not support more than 3 nameservers.
# The nameservers listed below may not be recognized.
nameserver xxxx:xxx:xxxx::2
nameserver xxxx:xxx:xxxx:xxxx:xxxx:xxxx:xxxx:74b8
Note that I have full IPv6 service from my ISP and I obscure IPv6 global addresses out of (what may be) an over-abundance of caution. Someday I need to get more familiar with IPv6 security. techniques Someday.
Regards,
Kent
Interesting. My network uses the 192.168.1 address space. I'll have to see what network the AP assigns.
Also prolly need to investigate how to assign a static address space for example 172.42.1.x if needed. I'm thinking it might not since lately it seems that pretty much everything supports mDNS or some sort of auto discovery.
Looks like it always assigns the same 10.42.0 network so no need for any static addressing.
inet 10.42.0.1 netmask 255.255.255.0 broadcast 10.42.0.255
- Connection hot switching works fine as long as you are first ssh'd in to the Ethernet address
- AP mode is fully bridged to the Ethernet side forming a true Hotspot.
It's a super nice simplification of networking. Things like dhcpcd, hostapd, bunch of config files etc don't appear to be needed anymore :-)
Btw, you can use PSK's generated by wpa_passphrase instead of plaintext passwords for the psk= param. Also to generate UUID's just cat /proc/sys/kernel/random/uuid
Turns out to be easy to assign the static network 172.24.1.1/24 to the AP. Just add another line to the [ipv4] section
Code:
[ipv4]
address1=172.24.1.1/24
method=shared
Now the AP comes up as 172.24.1.1 and, for example, my phone connected as 172.24.1.238.
There's so much to nmcli and some newer features---such as hotspot---have options that aren't documented as well as I'd hoped.

Regards,
Kent