
dhclient
구성 파일( ) 에서 일부 구성을 편집한 후에는 /etc/dhcp/dhclient.conf
컴퓨터를 재부팅할 때까지 변경 사항이 적용되지 않는 것 같습니다. dhclient
은(는) 백그라운드에서 실행되므로 실제로 구성 파일을 다시 읽고 해당 변경 사항을 적용하려면 프로세스를 다시 시작해야 한다고 생각합니다 .
그것을 달성하는 가장 좋은 방법은 무엇입니까?
매뉴얼 페이지 에서 dhclient
다음 옵션을 찾았습니다.
-r Release the current lease and stop the running DHCP client as
previously recorded in the PID file. When shutdown via this
method dhclient-script will be executed with the specific reason
for calling the script set. The client normally doesn't release
the current lease as this is not required by the DHCP protocol
but some cable ISPs require their clients to notify the server
if they wish to release an assigned IP address.
내가 올바르게 이해했다면 이 옵션은 를 종료 dhclient
하여 임대를 해제하고 시작될 때 구성 파일을 다시 읽게 합니다(이것이 를 호출하는 것처럼 간단할지 확실하지 않습니다 dhclient &
).
dhclient
프로세스 트리 를 확인해보니 network-manager
. 새로운 구성으로 다시 시작 sudo service network-manager restart
하는 더 깔끔한 방법은 run입니까 ?dhclient
답변1
연결을 다시 활성화하십시오.
예를 들어 nmcli connection up $NAME
NetworkManager의 다른 클라이언트를 통해.
일반적으로 NetworkManager를 다시 시작하지 않습니다.