Why dhclient is still running when I choose static IP?

Posted by user276851 on Ask Ubuntu See other posts from Ask Ubuntu or by user276851
Published on 2014-05-01T20:09:55Z Indexed on 2014/08/19 4:32 UTC
Read the original article Hit count: 248

Filed under:
|

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.

© Ask Ubuntu or respective owner

Related posts about networking

Related posts about dhcp