G
G
gigakun2014-08-12 14:57:42
DHCP
gigakun, 2014-08-12 14:57:42

How to request a parameter from a DHCP server using dhclient without having to restart the network?

You need to get a specific parameter from the DHCP server.
If I do "/sbin/dhclient -r" then the network will disconnect.
I suspect that something can be done in dhclient-script or dhclient.conf, but I don't really understand what.
I found the -R parameter for dhclient in mana on the Internet (used to request a user-defined parameter list). But in my case, dhclient does not have this key.
OS version: SUSE LINUX Release 11
dhclient version: isc-dhclient-V3.1-ESV

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
gigakun, 2014-08-12
@gigakun

I will describe in more detail:
Let's say I muddied my parameter on the DHCP server. The name of this parameter is "Parameter1". And then the moment came when I wanted to get this parameter from the DHCP server. I put it in the request section in the /etc/dhclient.conf file. I do / sbin / dhclient and get a network restart. How can I get my parameter without breaking the network connection.

C
Cool Admin, 2014-08-12
@ifaustrue

Do renew without release and there will be no restart of the network, since in fact this is a lease extension, not a lease change. You will have the same address, but new parameters if changed (for example, new dns or def gw)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question