Is Linux using DHCP?

Friday, March 9th, 2018

I have been working on other things which are not Linux related so obvious things have reached the area of “oh….the answer is……”

A question was raised about a Linux virtual machine using DHCP. I remembered it wasn’t but I blanked on where to look for the answer.

Simply look in the file: /etc/sysconfig/network-scripts/ifcfg-eth0

Look for:

BOOTPROTO=dhcp
ONBOOT=yes

That shows DHCP is in use.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: