Add new data

This commit is contained in:
root
2024-03-02 02:54:33 +03:00
parent ed098b2e6c
commit 8c8a39aef2
17 changed files with 112 additions and 18 deletions

View File

@@ -1,10 +1,12 @@
# Connection start
# NMCli
## Connection start
```bash
nmcli con up ens18
```
# Connection modifity
## Connection modifity
```bash
ifc=eth0 \
nmcli con mod $ifc ipv4.addresses 172.16.23.56/24 && \
@@ -16,12 +18,12 @@ nmcli con up $ifc restart && \
true
```
# Disable IPv6 for all
## Disable IPv6 for all
```
nmcli con show | awk '{if(NR > 1) { print $1; system("nmcli con mod " $1 " ipv6.method disable"); } }'
```
# Connection event
## Connection event
```bash
#!/bin/bash