Create ubuntu_network.md
This commit is contained in:
parent
b120ffd60c
commit
0845c4e964
41
ubuntu_network.md
Normal file
41
ubuntu_network.md
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
# NetworkManager
|
||||||
|
|
||||||
|
- `nm-applet` to run old GUI and activate `Enable Networking`.
|
||||||
|
|
||||||
|
- `nm-connection-editor` to edit any weird configuration in the connections.
|
||||||
|
|
||||||
|
- You can also see what the **NetworkManager** is doing with these commands.
|
||||||
|
```bash
|
||||||
|
# Run one by one to see if anything is useful
|
||||||
|
nmcli device
|
||||||
|
|
||||||
|
nmcli
|
||||||
|
|
||||||
|
nmcli device show
|
||||||
|
```
|
||||||
|
|
||||||
|
if your network device says `unmanaged`, it means **NetworkManager** will not try to use that device to connect.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Netplan
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Create a config file
|
||||||
|
sudo nano /etc/netplan/ethernet.yaml
|
||||||
|
```
|
||||||
|
and enter this
|
||||||
|
```bash
|
||||||
|
network:
|
||||||
|
version: 2
|
||||||
|
renderer: networkd
|
||||||
|
ethernets:
|
||||||
|
eno1:
|
||||||
|
dhcp4: true
|
||||||
|
```
|
||||||
|
replace `eno1` with whatever your device is (mine was `ens33`).
|
||||||
|
To see your list of devices, run `ip addr`.
|
||||||
|
|
||||||
|
Finally apply the new configurations
|
||||||
|
|
||||||
|
sudo netplan apply
|
Loading…
Reference in New Issue
Block a user