New answers tagged

1

Another possibility is to move the /etc/dhcpcd.conf file to the boot partition and then symlinking to it from the /etc directory by issuing # mv /etc/dhcpcd.conf /boot/dhcpcd.conf # ln -s /boot/dhcpcd.conf /etc/dhcpcd.conf Then you have the config file laying around in the boot partition and can access it from e.g. a Windows computer.


1

My question have been solved following the excellent guide/answer from @Milliways to the question here: How do I set up networking/WiFi/static IP address?. I used the dhcpcd method. Both the static IP address on my RPi 4 and connecting to it from my desktop via VNC is now working.


1

SD card for raspibian OS has two partitions /boot and /rootfs. Using SD card reader, I mounted the partitions onto my system with ubuntu OS. For setting up static IP address edit the file dhcpcd.conf with root privileges. $ sudo nano ~/rootfs/etc/dhcpcd.conf Add the static IP details in the file. interface eth0 static ip_address = 10.0.0.100 ...


0

It is usually set by commands such as ifconfig: ifconfig eth0 xxx.xxx.xxx.xxx netmask 255.255.255.0 up


0

It looks like I got it working. My /etc/network/interfaces file now looks like this auto lo iface lo inet loopback auto eth0 allow-hotplug eth0 iface eth0 inet static address 192.168.0.10 netmask 255.255.255.0 # gateway 192.168.2.14 dns-nameservers 192.168.2.1 auto wlan0 allow-hotplug wlan0 iface wlan0 inet static wpa-ssid "XXXXX"...


0

To configure your network (wlan0) if you did remove dhcpcd, takes those few steps : edit the interfaces file sudo vi /etc/network/interfaces # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback # Wired or wireless interfaces iface eth0 inet manual allow-hotplug wlan0 iface ...


Top 50 recent answers are included