knowledge/ubuntu network troubleshoot.md

48 lines
982 B
Markdown
Raw Normal View History

---
tags: tutorial, ubuntu, ubuntu 18, ubuntu 20, network, troubleshoot, english
---
2020-02-07 17:35:29 +01:00
# 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
```
2020-02-07 17:38:43 +01:00
`unmanaged` means **NetworkManager** will not manage that device.
2020-02-07 17:35:29 +01:00
2020-02-07 17:51:38 +01:00
### Documentation: https://help.ubuntu.com/community/NetworkManager
2020-02-07 17:35:29 +01:00
---
# 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
2020-02-07 17:51:38 +01:00
### Documentation: https://netplan.io/reference#examples