From a645f2c1470a25d240e6415f7d095208ddd70246 Mon Sep 17 00:00:00 2001 From: Fabio Date: Sun, 10 Aug 2025 12:08:05 +0200 Subject: [PATCH] first commit --- README.md | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..254c603 --- /dev/null +++ b/README.md @@ -0,0 +1,68 @@ +# Network manager in Debian 12 + +```sh +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 +[link config NetworkManager](https://www.clearlinux.org/clear-linux-documentation/guides/network/assign-static-ip.html) + +Verificare le reti + +```sh +nmcli connection show +``` + +dall'output si evince che la rete è ***Supervisor enP3p49s0*** + +```sh +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 +```sh +ls /etc/NetworkManager/system-connections/ +``` + +con output +```sh +'Supervisor enP3p49s0.nmconnection' 'Supervisor enP4p65s0.nmconnection' +``` + +il file lo si può editare o visualizzare con + +```console +sudo nano /etc/NetworkManager/system-connections/'Supervisor enP3p49s0.nmconnection' +``` + +per modificare in IP statico con gateway and DNS usare + + + + ```sh +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 + +```sh +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 + +```sh +sudo reboot now +``` +