To change the IP address in debian we have to edit parameters in /etc/network/interfaces file.
So open the file
pstest:/home/palo# vim /etc/network/interfaces
add requested parameters for specified interface (here eth0)
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address 158.193.139.51 netmask 255.255.255.0 network 158.193.139.0 broadcast 158.193.139.255 gateway 158.193.139.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 158.193.152.2 dns-search ps.sip.uniza.sk
and do not forget restart the interface (under root rights)
ifdown eth0 ifup eth0