No description
README.md |
Network manager in Debian 12
sudo apt update
sudo apt install network-manager
Start and enable Network Manager as below.
sudo systemctl start NetworkManager.service
sudo systemctl enable NetworkManager.service
Configurare fix IP address
Verificare le reti
nmcli connection show
dall'output si evince che la rete è Supervisor enP3p49s0
NAME UUID TYPE DEVICE
Supervisor enP3p49s0 0111eaa1-5253-3749-ab37-68306880a309 ethernet enP3p49s0
lo cbd10d14-2994-4875-9f30-78d1435b7da9 loopback lo
Supervisor enP4p65s0 330c6b90-ab43-3eba-a849-a86908742d58 ethernet --
si possono vedere i file di configurazioni delle reti anche con un list
ls /etc/NetworkManager/system-connections/
con output
'Supervisor enP3p49s0.nmconnection' 'Supervisor enP4p65s0.nmconnection'
il file lo si può editare o visualizzare con
sudo nano /etc/NetworkManager/system-connections/'Supervisor enP3p49s0.nmconnection'
per modificare in IP statico con gateway and DNS usare
sudo nmcli connection modify "[CONNECTION_NAME]" \
ipv4.method "manual" \
ipv4.addresses "[IP_ADDRESS]/[CIDR_NETMASK]" \
ipv4.gateway "[GATEWAY_IP_ADDRESS]" \
ipv4.dns "[PRIMARY_DNS_IP],[SECONDARY_DNS_IP]"
quindi nel nostro caso
sudo nmcli con mod "Supervisor enP3p49s0" ipv4.method manual ipv4.addresses 192.168.1.4/24 ipv4.gateway 192.168.1.1 ipv4.dns 8.8.8.8,8.8.4.4
poi fare il rebbot di sistema
sudo reboot now