7

I am trying to setup a static IP for my Raspberry Pi 4 (Raspbian GNU/Linux 10 buster, connected to the router via an ethernet cable) that is running OMV (5.6.3-1) according to the "Conquer the Command Line" by Richard Smedley. It describes to modify the /etc/dhcpcd.conf file, but when I try to see the contents of the file with

cat /etc/dhcpcd.conf

I get an error saying that this file does not exist. Is there another way to setup a static IP (all the methods I have found on the Interner use this file)? Or am I looking in the wrong place?

justinian482
  • 175
  • 1
  • 1
  • 4

5 Answers5

4

The /etc/dhcpcd.conf file is a part of dhcpcd5 package, to solve your issue, you can install it:

sudo apt install dhcpcd5
GAD3R
  • 472
  • 3
  • 8
4

Configuration should be in /etc/dhcp/dhclient.conf

MatsK
  • 2,882
  • 3
  • 17
  • 22
colpanic73
  • 161
  • 1
  • 6
2

OMV uses systemd-networkd and removes dhcpcd on installation.

This should be used to configure the network including setting IP addresses and (from what I remember) has methods to facilitate this.

If you install another network manager the results will be unpredictable.

Milliways
  • 62,573
  • 32
  • 113
  • 225
0

I logged into the UI as admin then went to http://ipaddress/#/network/interfaces there was a plus + in upper left and added wlan, put in my ssid / password and set to dhcp and this worked.

Chris
  • 1
0

Credit for the following goes to "Luis Fernando Javier Velázquez Sosa" who posted a YouTube video titled: "Wifi Problems Raspberry Pi - dhcpcd not running".

The steps in his video solved the problem for me. Steps include turning power management off: Run on the command line: iwconfig Run on the command line: sudo iwconfig wlan0 power off dhcp should now be viewable!!!

TommyL
  • 1