Discussion Locked

DHCP on Linux

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm running DHCP as a client on my linux workstation. It has been setup with a hostname of localhost and will dynamically build the /etc/resolv.conf file on each boot cycle.

1. When I change my hostname, it hoses the DHCP. How do I change my hostname without breaking the DHCP?

2. How do I keep modifications to the /etc/resolv.conf file between reboots?

8 replies

by marshallkeithusa

1. What is the DHCP server NT, Linux, Novell . . .

2. What do you mean it hosed DHCP, does it lock up the DHCP server or just drop the connection.

If it just drops the connection you can try the following:

/etc/init.d/network restart

by marshallkeithusa

1. What is the DHCP server NT, Linux, Novell . . .

2. What do you mean it hosed DHCP, does it lock up the DHCP server or just drop the connection.

If it just drops the connection you can try the following:

/etc/init.d/network restart

by woodwd234

DHCP server is NT
"that's not me fault, our CIO controlls it!"

If I change the hostname. On a reboot, it will hang on the network initialization.

by marshallkeithusa

You didn't say what the dhcp server was. I am running a redhat 7.1 the server is both a dhcp server for the workstations and a dhcp client for the internet and I don't have the problem you are having. If I knew what the dhcp server was I may be able to help more

by woodwd234

will try digging into the /etc/init.d/network scripts and the /etc/system/network* scripts.

This discussion is closed to new replies.