I recently installed Arch linux and everything is working just fine, except for the internet. After booting I always have to enter the following commands to make it work:
sudo ip link set enp3s0 up sudo dhcpcd enp3s0
After that the internet connection works just fine.
I know I could just create a script that runs automatically after booting up, but I would like to know what the "nice" way is to fix this and why this is happening in the first place, maybe I did something wrong during the installation?
In case it's helpful, here's some info: (gathered after running said commands)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 05) Subsystem: Dell Device 0578 Flags: bus master, fast devsel, latency 0, IRQ 29 I/O ports at 2000 [size=256] Memory at f1404000 (64-bit, prefetchable) [size=4K] Memory at f1400000 (64-bit, prefetchable) [size=16K] Capabilities:  Power Management version 3 Capabilities:  MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities:  Express Endpoint, MSI 01 Capabilities: [b0] MSI-X: Enable- Count=4 Masked- Capabilities: [d0] Vital Product Data Capabilities:  Advanced Error Reporting Capabilities:  Virtual Channel Capabilities:  Device Serial Number 0e-00-00-00-36-4c-e0-00 Kernel driver in use: r8169 Kernel modules: r8169
and the relevant part of ip link
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000 link/ether 5c:f9:dd:62:dd:f0 brd ff:ff:ff:ff:ff:ff