Why dhclient is still running when I choose static IP?
- by user276851
I modify dhcp to static in /etc/network/interfaces (like below).
# The primary network interface
auto eth0
iface eth0 inet static
netmask 255.255.0.0
address 10.10.130.128
gateway 10.10.1.1
Then restart the interface.
$ sudo ifdown eth0; sudo ifup eth0
...
$ ifconfig
eth0 Link encap:Ethernet
inet addr:10.10.130.128 Bcast:10.10.255.255 Mask:255.255.0.0
So the new address kicks in.
But DHCP is still there?
$ ps aux | grep dhc
root ... dhclient3 -e IF_METRIC=100 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -1 eth0
Is that normal? If not, how to restart interface in static IP while stop DHCP at the same time?
Thanks a lot.