When I change network from dhcp to static, it will periodically change IP to the dhcp configuration and ignore the configuration of /etc/network/interface.
So I want to remove the dhcp-client, however when I remove it in Ubuntu, I encounter this problem. Can you give me some help ?
$ sudo apt-get remove dhcp-client Reading package lists... Done Building dependency tree Reading state information... Done **Virtual packages like 'dhcp-client' can't be removed** 0 upgraded, 0 newly installed, 0 to remove and 77 not upgraded.
this is my interface file content:
auto eth0 #iface eth0 inet dhcp iface eth0 inet static address 10.0.0.7 netmask 255.255.255.0 gateway 10.0.0.1 # This is an autoconfigured IPv6 interface iface eth0 inet6 auto