我的Ubuntu機器正在從DNS服務器接收7000秒的更新時間。我想通過dhclient.conf在ubuntu機器上更改這個長度。我無法更改dhcp服務器。DHClient覆蓋更新時間
但是,我嘗試的所有示例似乎都不是正確的語法。例如,如果我在.conf的頂部添加要求6000的租約時間,我沒有任何變化。我也試過
min-lease-time infinite;
max-lease-time infinite;
作爲全局變量。
#send host-name "andare.fugue.com";
#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
send dhcp-lease-time 6000;
#supersede domain-name "fugue.com home.vix.com";
#prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, host-name,
netbios-name-servers, netbios-scope;
#require subnet-mask, domain-name-servers;
#timeout 60;
#retry 60;
#reboot 10;
#select-timeout 5;
#initial-interval 2;
#script "/etc/dhcp3/dhclient-script";
#media "-link0 -link1 -link2", "link0 link1";
#reject 192.33.137.209;
任何想法,似乎應該很容易做到?
TIA