我要手動設定IP,本來是用
"ifconfig eth0 192.168.0.10 netmask 255.255.255.0"
可以改過去,可是系統會每隔大約幾分鐘就呼叫一次dhclient把我的IP改回去
https://goo.gl/y3SLLW
後來找到了這篇講的方法,
1. "ifdown eth0"
2. 改/etc/network/interfaces內容
3. "ifup eth0"
可是照著試的結果還是一樣,會被定時呼叫dhclient把我的IP改回去
查了./var/log/syslog
大約幾分鐘就會有像是下面這樣的log
----------------------------------------------------------
Mar 17 17:42:50 debian810x64 dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Mar 17 17:42:50 debian810x64 dhclient: DHCPACK from 192.168.0.1
Mar 17 17:42:50 debian810x64 dhclient: bound to 192.168.0.19 -- renewal in
248 seconds.
----------------------------------------------------------
想問一下這個定時呼叫dhclient是在哪邊設定的?
我要怎麼把他關掉?
--
"ifconfig eth0 192.168.0.10 netmask 255.255.255.0"
可以改過去,可是系統會每隔大約幾分鐘就呼叫一次dhclient把我的IP改回去
https://goo.gl/y3SLLW
後來找到了這篇講的方法,
1. "ifdown eth0"
2. 改/etc/network/interfaces內容
3. "ifup eth0"
可是照著試的結果還是一樣,會被定時呼叫dhclient把我的IP改回去
查了./var/log/syslog
大約幾分鐘就會有像是下面這樣的log
----------------------------------------------------------
Mar 17 17:42:50 debian810x64 dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Mar 17 17:42:50 debian810x64 dhclient: DHCPACK from 192.168.0.1
Mar 17 17:42:50 debian810x64 dhclient: bound to 192.168.0.19 -- renewal in
248 seconds.
----------------------------------------------------------
想問一下這個定時呼叫dhclient是在哪邊設定的?
我要怎麼把他關掉?
--
All Comments