I have installed Arch Linux on Virtual Box and am now in post installation setup, and I cannot establish my internet connection in order to download files using pacman, ping also does not work.
After reading the Wiki, I tried configuring a static ip for the ethernet interface, set up routing tables, and tried configuring /etc/systemd/network/enp0s3.network. Here are the outputs.
Set systemd-networkd according to the wiki
$ cat /etc/systemd/network/enp0s3.network [Match] Name=enp0s3 [Network] Address=192.168.4.44/24 Gateway=192.168.4.1 DNS=188.8.131.52 $ systemctl restart systemd-networkd $ systemctl enable systemd-networkd
I have set the static IP to be
192.168.4.44 for the network interface and set up routing tables for it, but not completely sure if it is correct.
Before setting these options, I would get
Temporary failure in name resolution right away. But after, it would take a while, then I would get the error.
I know that we can simply reattach the boot image, chroot from the live media and install the necessary utilities using
pacstrap. But I want to learn how to do this without tools like DHCP, Network Manager, Netcl, only using
ip and the tools already installed. So how can I configure my Arch Linux and set up a wired network connection properly?
P.S. The network for Virtual Box is
Attached to: NAT