Debian from DHCP to Static

All you have to do is edit /etc/network/interfaces and change:

iface eth0 inet DHCP

to:

iface eth0 inet static
address 10.10.10.2
netmask 255.255.255.0
network 10.10.10.0
broadcast 10.10.10.255
gateway 10.10.10.1

Of course it is possible to uninstall dhclient, but I wouldn’t advise it because it can be useful in the future.


Comments are closed.

Bad Behavior has blocked 589 access attempts in the last 7 days.