關掉系統定時啟用dhclient ? - Linux

By Dorothy
at 2018-03-17T18:11
at 2018-03-17T18:11
Table of Contents
我要手動設定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是在哪邊設定的?
我要怎麼把他關掉?
--
Tags:
Linux
All Comments

By Kristin
at 2018-03-21T10:06
at 2018-03-21T10:06

By Gary
at 2018-03-22T13:24
at 2018-03-22T13:24

By Lucy
at 2018-03-22T17:25
at 2018-03-22T17:25

By Eden
at 2018-03-25T07:25
at 2018-03-25T07:25

By Olivia
at 2018-03-25T21:09
at 2018-03-25T21:09

By William
at 2018-03-27T16:10
at 2018-03-27T16:10

By Audriana
at 2018-03-29T04:47
at 2018-03-29T04:47

By Edward Lewis
at 2018-03-29T11:38
at 2018-03-29T11:38

By Bethany
at 2018-04-03T07:14
at 2018-04-03T07:14

By Victoria
at 2018-04-04T16:33
at 2018-04-04T16:33

By Regina
at 2018-04-08T06:03
at 2018-04-08T06:03

By Selena
at 2018-04-11T18:48
at 2018-04-11T18:48

By Ingrid
at 2018-04-13T02:15
at 2018-04-13T02:15
Related Posts
ubuntu16因為root空間不足,現在只剩桌面

By Gilbert
at 2018-03-17T11:02
at 2018-03-17T11:02
高中大學物理化學示範實驗適合的LINUX??

By Edith
at 2018-03-17T02:50
at 2018-03-17T02:50
linux下可用line嗎?

By Quintina
at 2018-03-17T01:49
at 2018-03-17T01:49
MySQL 的 error log 問題?

By Kyle
at 2018-03-16T14:52
at 2018-03-16T14:52
WebSocket++ Makefile.txt error

By Noah
at 2018-03-16T14:14
at 2018-03-16T14:14