I've been trying to install Void Linux lately and couldn't get my network working. I don't use DHCP, I have static IP connection so I need to input all the information manually. I couldn't connect to the network during installation, it said that the network is just inaccessible. After installation I was following the official Void Linux instructions to configure my Static IP connection with
/etc/dhcpcd.conf. I modified it with
vi appending the following lines to the end:
interface enp7s0 static ip_address=192.168.165.30 static routers=192.168.165.29 static domain_name_servers=18.104.22.168
# ln -s /etc/sv/dhcpcd /var/service/ command didn't help, since link had already been created. It all didn't help, I could not
ping any resource, there was 100% packet loss. I tried
ping google.com and
Trying to setup the network interface in the file
/etc/rc.local via commands from the
iproute package didn't allow me to use ping at all. I tried to modify it, appending the following lines:
ip link set dev enp7s0 up ip addr add 192.168.165.30/24 brd + dev enp7s0 ip route add default via 192.168.165.29
I tried to do some debugging following the Arch Linux wiki, but it wasn't useful too.
The netmask suggested by my provider is 255.255.255.252 so do I use /30 somewhere?
How do I actually set up the Internet connection in my system?