Add new data
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user