Ask Your Question
1

Where can I find dhclient.conf on Fedora 26

asked 2017-09-03 19:47:11 -0500

newbei gravatar image

updated 2018-11-04 04:11:31 -0500

hhlp gravatar image

Hi There,

I am trying to find dhclient.conf on my fedora installation, however could not understand why its not in /etc/dhcp/.

If anyone can help me how to create one, as I tried doing "dhclient -cf" but to no success.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2017-09-04 00:15:08 -0500

villykruse gravatar image

updated 2017-09-04 00:17:24 -0500

According to man dhclient:

   -cf config-file
          Path to the client  configuration  file.   If  unspecified,  the
          default  /etc/dhcp/dhclient.conf  is used.  See dhclient.conf(5)
          for a description of this file.

When using NetworkManager the configuration file would be created in /var/lib/NetworkManager/, and NetworkManager would take care of everything.

edit flag offensive delete link more
0

answered 2017-09-03 20:35:54 -0500

sideburns gravatar image

Welcome to ask.fedora. I'm not running F 26, but in 25 it's in /usr/lib/dracut/modules/40network. As far as creating it, it's owned by root, with permissions -rw-r--r-- so you'd have to create it using sudo and set the permissions. To find out what belongs in it, use man dhclient.conf to make sure you're doing it right. Good luck, and keep us informed.

edit flag offensive delete link more

Comments

The file /usr/lib/dracut/modules.d/40network/dhclient.conf is not likely to be used unless you require network to become active before mounting the root file system, for example your root file system is a nfs file system. dracut is all about the initial ram disk used during the boot process.

villykruse gravatar imagevillykruse ( 2017-09-04 00:20:52 -0500 )edit
0

answered 2017-09-04 18:37:19 -0500

newbei gravatar image

I got it solved... Yeah!!! thanks all.. Below is what I did...

created a file /etc/dhcp/dhclient.conf

then did: dhclient -cf /etc/dhcp/dhclient.conf

then: service NetworkManager stop

service NetworkManager start.

and it solved my issue...

all was done as root.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2017-09-03 19:47:11 -0500

Seen: 977 times

Last updated: Sep 04 '17