updated notes
This commit is contained in:
+7
-1
@@ -71,11 +71,18 @@
|
|||||||
|
|
||||||
## Networking
|
## Networking
|
||||||
|
|
||||||
|
### nmtui
|
||||||
```bash
|
```bash
|
||||||
nmtui # Network Manager Text User Interface
|
nmtui # Network Manager Text User Interface
|
||||||
|
```
|
||||||
|
|
||||||
|
### ip
|
||||||
|
```bash
|
||||||
sudo ip addr add dev eth0 192.168.2.2/24 # Add an IP address to the interface eth0 Note: Not persistent, will be lost on reboot
|
sudo ip addr add dev eth0 192.168.2.2/24 # Add an IP address to the interface eth0 Note: Not persistent, will be lost on reboot
|
||||||
|
```
|
||||||
|
|
||||||
|
### nmcli
|
||||||
|
```bash
|
||||||
nmcli connection add connection.interface-name ens160 ipv4.addresses 192.168.100.1/24 ipv4.gateway 192.168.100.254 type ethernet # Persistant IP address
|
nmcli connection add connection.interface-name ens160 ipv4.addresses 192.168.100.1/24 ipv4.gateway 192.168.100.254 type ethernet # Persistant IP address
|
||||||
|
|
||||||
sudo nmcli connection up ethernet-ens160 # Bring up the ethernet interface
|
sudo nmcli connection up ethernet-ens160 # Bring up the ethernet interface
|
||||||
@@ -85,7 +92,6 @@ sudo nmcli connection down ethernet-ens160 # Bring down the ethernet interface
|
|||||||
sudo nmcli connection delete id "ens160" # Delete the ethernet connection
|
sudo nmcli connection delete id "ens160" # Delete the ethernet connection
|
||||||
|
|
||||||
sudo nmcli connection show # Show all connections
|
sudo nmcli connection show # Show all connections
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user