updated notes
This commit is contained in:
@@ -75,6 +75,17 @@
|
|||||||
nmtui # Network Manager Text User Interface
|
nmtui # Network Manager Text User Interface
|
||||||
|
|
||||||
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 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 down ethernet-ens160 # Bring down the ethernet interface
|
||||||
|
|
||||||
|
sudo nmcli connection delete id "ens160" # Delete the ethernet connection
|
||||||
|
|
||||||
|
sudo nmcli connection show # Show all connections
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user