Could copy/paste text output instead of screenshots pls?
Is easier to copy/past, quote and to find for others with similar problems.
Yes true sorry, soo i get this :
pi@pihole4:~ $ nmcli -f ipv4.method con show "<Wired connection 1>"
Error: <Wired connection 1> - no such connection profile.
Edit ok worked
pi@pihole4:~ $ nmcli -f ipv4.method con show "Wired connection 1"
ipv4.method: manual
Try below:
It says manual now yesss : pi@pihole4:~ $ nmcli -f ipv4.method con show "Wired connection 1"
ipv4.method: manual
You're good to go!
EDIT: So now the DHCP lease wont expire after 12 or 24 hours or so.
Yep, thanks for letting me know, idk where you seen this awesome tutorial but it helped a lot and no one talk about it in forums
No tutorials.
Just trial and error plus the man pages:
man nmtui
man nmcli
Yep, normally all is okey, i will see this morning if my pi crash again or not with my box dhcp disabled and pi hole dhcp enabled
I didn't even knew that we could see manual of commands with man command, thanks, i start to love linux again after 3 years of not using it
Don't you think that i should disbale wifi on my pi hole ? Since i use ethernet only, or should i leave it lile that ?
I didnt know that lo is also a profile.
So that means I should change the command into:
nmcli -t -f name con show --active | xargs -n 1 nmcli -f ipv4.method con show
But cant test
Yes disable.
Same, why its not wlan0 ? On pc builds it was always wlan0
Below one shows names for interfaces detected by the kernel:
ip -br l
Also see:
man systemd.net-naming-scheme
Wait what's lo is for then since i have eth0, wlan0 and lo, for wlan0 it says down while when i use sudo nmtui i can see the list of wifi networks even if im not connected to any of them
Good to know, thanks for the manual btw
Btw disabling wifi and bt is done with : sudo nano /boot/firmware/config.txt then we should add these two lines:
dtoverlay=disable-wifi
dtoverlay=disable-bt
Just as long as the wlan0 interface doesnt try to acquire an IP via DHCP.
Or else you get messages in Pi-hole that a hostname failed to register bc the name is already registered from the /etc/hosts file.
$ man dnsmasq
[..]
-h, --no-hosts
Don't read the hostnames in /etc/hosts.