tag:blogger.com,1999:blog-8038096487805715549.post8410915997044827845..comments2023-04-07T09:21:58.685-07:00Comments on The Accidental Administrator: How to Change an Ubuntu Server from DHCP-Assigned IP Address to Static IP AddressDon Crawleyhttp://www.blogger.com/profile/10327034212250251767noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8038096487805715549.post-58026808132146041692017-07-27T16:36:18.953-07:002017-07-27T16:36:18.953-07:00Hi Don,
Your post is great by pointing out the la...Hi Don,<br /><br />Your post is great by pointing out the last step: "disable dhclient" if desired. <br /><br />I followed your instructions and set eth0 to a static ip: 192.168.1.98 about 50 days ago on a Ubuntu 16.04 server. At that time I did not disable dhcp client. Today I can not ssh into the server anymore, then found the server's ip address changed to 192.168.1.103 which I do not understand why. I greped the /var/log/ and got:<br /><br />syslog.1:Jul 26 19:17:06 scens dhclient[1041]: DHCPREQUEST of 192.168.1.103 on eth0 to 255.255.255.255 port 67 (xid=0x46a59385)<br /><br />Does this mean if I had disabled dhclient, the static ip address should stay 192.168.1.98 FOREVER?<br /><br />Thanks,<br />-MikeMike2khttps://www.blogger.com/profile/08152483942775937499noreply@blogger.comtag:blogger.com,1999:blog-8038096487805715549.post-83781080263506021842014-11-07T06:49:23.171-08:002014-11-07T06:49:23.171-08:00Hans, thank you. Good catch. It's fixed now.Hans, thank you. Good catch. It's fixed now.Anonymoushttps://www.blogger.com/profile/16650693000883959254noreply@blogger.comtag:blogger.com,1999:blog-8038096487805715549.post-17236169568095953812014-11-07T06:31:49.398-08:002014-11-07T06:31:49.398-08:00Just a little textual change.
'Under primary n...Just a little textual change.<br />'Under primary network interface, change static to dhcp and add the '<br />should read<br />'Under primary network interface, change dhcp to static and add the '<br />Rgds<br />HansAnonymoushttps://www.blogger.com/profile/04278986558933176381noreply@blogger.com