first commit
This commit is contained in:
commit
a645f2c147
1 changed files with 68 additions and 0 deletions
68
README.md
Normal file
68
README.md
Normal file
|
@ -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
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue