> For the complete documentation index, see [llms.txt](https://www.devops.buzz/public/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.devops.buzz/public/arch-linux/network.md).

# Network

## Quickly connect to internet

```
dhclient
```

## Connect to internet on boot

```
systemctl enable systemd-networkd.service
```

List your interfaces.

```
ip addr
```

Create a config file.

```
nano /etc/systemd/network/20-wired.network
```

With the following content (example).

```
[Match]
Name=enp1s0

[Network]
DHCP=ipv4
```

Reboot.

```
reboot
```

### References

<https://wiki.archlinux.org/index.php/Systemd-networkd>
